diff --git app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php
index 2e33750..fde58be 100644
--- app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php
+++ app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php
@@ -736,6 +736,9 @@ class Mage_Adminhtml_Catalog_ProductController extends Mage_Adminhtml_Controller
         else {
             $this->_redirect('*/*/', array('store'=>$storeId));
         }
+        if (!isset($stockData['is_decimal_divided']) || $stockData['is_qty_decimal'] == 0) {
+            $stockData['is_decimal_divided'] = 0;
+        }
     }
 
     /**
diff --git app/code/core/Mage/Catalog/Model/Product/Attribute/Source/Countryofmanufacture.php app/code/core/Mage/Catalog/Model/Product/Attribute/Source/Countryofmanufacture.php
new file mode 100644
index 0000000..73b1c8f
--- /dev/null
+++ app/code/core/Mage/Catalog/Model/Product/Attribute/Source/Countryofmanufacture.php
@@ -0,0 +1,58 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Catalog product country attribute source
+ *
+ * @category   Mage
+ * @package    Mage_Catalog
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Catalog_Model_Product_Attribute_Source_Countryofmanufacture
+    extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
+{
+    /**
+     * Get list of all available countries
+     *
+     * @return mixed
+     */
+    public function getAllOptions()
+    {
+        $cacheKey = 'DIRECTORY_COUNTRY_SELECT_STORE_'.Mage::app()->getStore()->getCode();
+        if (Mage::app()->useCache('config') && $cache = Mage::app()->loadCache($cacheKey)) {
+            $options = unserialize($cache);
+        }
+        else {
+            $collection = Mage::getModel('directory/country')->getResourceCollection()
+                ->loadByStore();
+            $options = $collection->toOptionArray();
+            if (Mage::app()->useCache('config')) {
+                Mage::app()->saveCache(serialize($options), $cacheKey, array('config'));
+            }
+        }
+        return $options;
+    }
+}
diff --git app/code/core/Mage/Catalog/etc/config.xml app/code/core/Mage/Catalog/etc/config.xml
index 0caa010..a5edcce 100644
--- app/code/core/Mage/Catalog/etc/config.xml
+++ app/code/core/Mage/Catalog/etc/config.xml
@@ -28,7 +28,7 @@
 <config>
     <modules>
         <Mage_Catalog>
-            <version>1.4.0.0.44</version>
+            <version>1.4.0.0.44.1.2</version>
         </Mage_Catalog>
     </modules>
 
@@ -59,6 +59,13 @@
                         <virtual />
                     </product_type>
                 </is_qty_decimal>
+                <is_decimal_divided>
+                    <inventory>1</inventory>
+                    <product_type>
+                        <simple/>
+                        <virtual/>
+                    </product_type>
+                </is_decimal_divided>
                 <backorders>
                     <inventory>1</inventory>
                     <use_config>1</use_config>
diff --git app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.4.0.0.44.1.1-1.4.0.0.44.1.2.php app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.4.0.0.44.1.1-1.4.0.0.44.1.2.php
new file mode 100644
index 0000000..0ceab30
--- /dev/null
+++ app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.4.0.0.44.1.1-1.4.0.0.44.1.2.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+$installer = $this;
+$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'country_of_manufacture', array(
+    'group'             => 'General',
+    'type'              => 'varchar',
+    'backend'           => '',
+    'frontend'          => '',
+    'label'             => 'Country of Manufacture',
+    'input'             => 'select',
+    'class'             => '',
+    'source'            => 'catalog/product_attribute_source_countryofmanufacture',
+    'global'            => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
+    'visible'           => true,
+    'required'          => false,
+    'user_defined'      => false,
+    'searchable'        => false,
+    'filterable'        => false,
+    'comparable'        => false,
+    'visible_on_front'  => false,
+    'unique'            => false,
+    'apply_to'          => 'simple,configurable,bundle,grouped',
+    'is_configurable'   => false,
+));
diff --git app/code/core/Mage/CatalogInventory/Helper/Data.php app/code/core/Mage/CatalogInventory/Helper/Data.php
index 5e14ab6..314f196 100644
--- app/code/core/Mage/CatalogInventory/Helper/Data.php
+++ app/code/core/Mage/CatalogInventory/Helper/Data.php
@@ -97,6 +97,7 @@ class Mage_CatalogInventory_Helper_Data extends Mage_Core_Helper_Abstract
             'manage_stock',
             'enable_qty_increments',
             'qty_increments',
+            'is_decimal_divided',
         );
     }
 
diff --git app/code/core/Mage/CatalogInventory/Model/Stock/Item.php app/code/core/Mage/CatalogInventory/Model/Stock/Item.php
index 3c40c9e..b7aba7c 100644
--- app/code/core/Mage/CatalogInventory/Model/Stock/Item.php
+++ app/code/core/Mage/CatalogInventory/Model/Stock/Item.php
@@ -589,7 +589,7 @@ class Mage_CatalogInventory_Model_Stock_Item extends Mage_Core_Model_Abstract
         }
 
         $qtyIncrements = $this->getQtyIncrements();
-        if ($qtyIncrements && ($qty % $qtyIncrements != 0)) {
+        if ($qtyIncrements && (Mage::helper('core')->getExactDivision($qty, $qtyIncrements) != 0)) {
             $result->setHasError(true)
                 ->setQuoteMessage(Mage::helper('cataloginventory')->__('Some of the products cannot be ordered in the requested quantity.'))
                 ->setQuoteMessageIndex('qty');
diff --git app/code/core/Mage/CatalogInventory/etc/config.xml app/code/core/Mage/CatalogInventory/etc/config.xml
index 9ae7c81..bf0a1ea 100644
--- app/code/core/Mage/CatalogInventory/etc/config.xml
+++ app/code/core/Mage/CatalogInventory/etc/config.xml
@@ -28,7 +28,7 @@
 <config>
     <modules>
         <Mage_CatalogInventory>
-            <version>0.7.8</version>
+            <version>0.7.8.1.2</version>
         </Mage_CatalogInventory>
     </modules>
     <global>
diff --git app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.8.1.1-0.7.8.1.2.php app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.8.1.1-0.7.8.1.2.php
new file mode 100644
index 0000000..78c80b5
--- /dev/null
+++ app/code/core/Mage/CatalogInventory/sql/cataloginventory_setup/mysql4-upgrade-0.7.8.1.1-0.7.8.1.2.php
@@ -0,0 +1,38 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/** @var $installer Mage_Eav_Model_Entity_Setup */
+$installer = $this;
+
+/**
+ * Add new field to 'cataloginventory/stock_item'
+ */
+$installer->getConnection()
+    ->addColumn(
+        $installer->getTable('cataloginventory/stock_item'),
+        'is_decimal_divided',
+        "smallint(5) unsigned NOT NULL default '0' COMMENT 'Is Divided into Multiple Boxes for Shipping'"
+    );
diff --git app/code/core/Mage/Checkout/Block/Cart/Shipping.php app/code/core/Mage/Checkout/Block/Cart/Shipping.php
index 2424271..0093ad5 100644
--- app/code/core/Mage/Checkout/Block/Cart/Shipping.php
+++ app/code/core/Mage/Checkout/Block/Cart/Shipping.php
@@ -27,10 +27,30 @@
 
 class Mage_Checkout_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Abstract
 {
+    /**
+     * Available Carriers Instances
+     * @var null|array
+     */
     protected $_carriers = null;
+
+    /**
+     * Estimate Rates
+     * @var array
+     */
     protected $_rates = array();
+
+    /**
+     * Address Model
+     *
+     * @var array
+     */
     protected $_address = array();
 
+    /**
+     * Get Estimate Rates
+     *
+     * @return array
+     */
     public function getEstimateRates()
     {
         if (empty($this->_rates)) {
@@ -41,7 +61,7 @@ class Mage_Checkout_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Abstrac
     }
 
     /**
-     * Get address model
+     * Get Address Model
      *
      * @return Mage_Sales_Model_Quote_Address
      */
@@ -53,6 +73,12 @@ class Mage_Checkout_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Abstrac
         return $this->_address;
     }
 
+    /**
+     * Get Carrier Name
+     *
+     * @param string $carrierCode
+     * @return mixed
+     */
     public function getCarrierName($carrierCode)
     {
         if ($name = Mage::getStoreConfig('carriers/'.$carrierCode.'/title')) {
@@ -61,51 +87,107 @@ class Mage_Checkout_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Abstrac
         return $carrierCode;
     }
 
+    /**
+     * Get Shipping Method
+     *
+     * @return string
+     */
     public function getAddressShippingMethod()
     {
         return $this->getAddress()->getShippingMethod();
     }
 
+    /**
+     * Get Estimate Country Id
+     *
+     * @return string
+     */
     public function getEstimateCountryId()
     {
         return $this->getAddress()->getCountryId();
     }
 
+    /**
+     * Get Estimate Postcode
+     *
+     * @return string
+     */
     public function getEstimatePostcode()
     {
         return $this->getAddress()->getPostcode();
     }
 
+    /**
+     * Get Estimate City
+     *
+     * @return string
+     */
     public function getEstimateCity()
     {
         return $this->getAddress()->getCity();
     }
 
+    /**
+     * Get Estimate Region Id
+     *
+     * @return mixed
+     */
     public function getEstimateRegionId()
     {
         return $this->getAddress()->getRegionId();
     }
 
+    /**
+     * Get Estimate Region
+     *
+     * @return string
+     */
     public function getEstimateRegion()
     {
         return $this->getAddress()->getRegion();
     }
 
+    /**
+     * Show City in Shipping Estimation
+     *
+     * @return bool
+     */
     public function getCityActive()
     {
-        return (bool)Mage::getStoreConfig('carriers/dhl/active');
+        return (bool)Mage::getStoreConfig('carriers/dhl/active')
+            || (bool)Mage::getStoreConfig('carriers/dhlint/active');
     }
 
+    /**
+     * Show State in Shipping Estimation
+     *
+     * @return bool
+     */
     public function getStateActive()
     {
-        return (bool)Mage::getStoreConfig('carriers/dhl/active') || (bool)Mage::getStoreConfig('carriers/tablerate/active');
+        return (bool)Mage::getStoreConfig('carriers/dhl/active')
+            || (bool)Mage::getStoreConfig('carriers/tablerate/active')
+            || (bool)Mage::getStoreConfig('carriers/dhlint/active');
     }
 
+    /**
+     * Convert price from default currency to current currency
+     *
+     * @param float $price
+     * @return float
+     */
     public function formatPrice($price)
     {
         return $this->getQuote()->getStore()->convertPrice($price, true);
     }
 
+    /**
+     * Get Shipping Price
+     *
+     * @param float $price
+     * @param bool $flag
+     * @return float
+     */
     public function getShippingPrice($price, $flag)
     {
         return $this->formatPrice($this->helper('tax')->getShippingPrice(
@@ -175,7 +257,7 @@ class Mage_Checkout_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Abstrac
     public function isZipCodeRequired()
     {
         foreach ($this->getCarriers() as $carrier) {
-            if ($carrier->isZipCodeRequired()) {
+            if ($carrier->isZipCodeRequired($this->getEstimateCountryId())) {
                 return true;
             }
         }
diff --git app/code/core/Mage/Core/Helper/Data.php app/code/core/Mage/Core/Helper/Data.php
index 2d959e9..6ec2bb1 100644
--- app/code/core/Mage/Core/Helper/Data.php
+++ app/code/core/Mage/Core/Helper/Data.php
@@ -36,6 +36,11 @@ class Mage_Core_Helper_Data extends Mage_Core_Helper_Abstract
     const XML_PATH_PUBLIC_FILES_VALID_PATHS     = 'general/file/public_files_valid_paths';
 
     /**
+     * Const for correct dividing decimal values
+     */
+    const DIVIDE_EPSILON = 10000;
+
+    /**
      * @var Mage_Core_Model_Encryption
      */
     protected $_encryptor = null;
@@ -788,4 +793,23 @@ XML;
         }
         return true;
     }
+
+    /**
+     * Returns the floating point remainder (modulo) of the division of the arguments
+     *
+     * @param float|int $dividend
+     * @param float|int $divisor
+     * @return float|int
+     */
+    public function getExactDivision($dividend, $divisor)
+    {
+        $epsilon = $divisor / self::DIVIDE_EPSILON;
+
+        $remainder = fmod($dividend, $divisor);
+        if (abs($remainder - $divisor) < $epsilon || abs($remainder) < $epsilon) {
+            $remainder = 0;
+        }
+
+        return $remainder;
+    }
 }
diff --git app/code/core/Mage/Core/Model/Store.php app/code/core/Mage/Core/Model/Store.php
index d944b2c0..bf77639 100644
--- app/code/core/Mage/Core/Model/Store.php
+++ app/code/core/Mage/Core/Model/Store.php
@@ -36,6 +36,8 @@ class Mage_Core_Model_Store extends Mage_Core_Model_Abstract
 {
     const ENTITY = 'core_store';
 
+    const XML_PATH_STORE_STORE_NAME   = 'general/store_information/name';
+
     const XML_PATH_STORE_IN_URL           = 'web/url/use_store';
     const XML_PATH_USE_REWRITES           = 'web/seo/use_rewrites';
     const XML_PATH_UNSECURE_BASE_URL      = 'web/unsecure/base_url';
diff --git app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php
index 4202021..a12a559 100644
--- app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php
+++ app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php
@@ -1240,6 +1240,7 @@ class Mage_ImportExport_Model_Import_Entity_Product extends Mage_ImportExport_Mo
             'is_in_stock'                        => 0,
             'low_stock_date'                     => null,
             'stock_status_changed_automatically' => 0
+            'is_decimal_divided'                 => 0
         );
 
         $entityTable = Mage::getResourceModel('cataloginventory/stock_item')->getMainTable();
diff --git app/code/core/Mage/Sales/Model/Order.php app/code/core/Mage/Sales/Model/Order.php
index dd920bd..cc70ad2 100644
--- app/code/core/Mage/Sales/Model/Order.php
+++ app/code/core/Mage/Sales/Model/Order.php
@@ -864,6 +864,11 @@ class Mage_Sales_Model_Order extends Mage_Sales_Model_Abstract
         return array();
     }
 
+    /**
+     * Return model of shipping carrier
+     *
+     * @return bool|float|Mage_Shipping_Model_Carrier_Abstract
+     */
     public function getShippingCarrier()
     {
         $carrierModel = $this->getData('shipping_carrier');
@@ -872,10 +877,9 @@ class Mage_Sales_Model_Order extends Mage_Sales_Model_Abstract
             /**
              * $method - carrier_method
              */
-            if ($method = $this->getShippingMethod()) {
-                $data = explode('_', $method);
-                $carrierCode = $data[0];
-                $className = Mage::getStoreConfig('carriers/'.$carrierCode.'/model');
+            $method = $this->getShippingMethod(true);
+            if ($method instanceof Varien_Object) {
+                $className = Mage::getStoreConfig('carriers/' . $method->getCarrierCode() . '/model');
                 if ($className) {
                     $carrierModel = Mage::getModel($className);
                 }
@@ -886,6 +890,26 @@ class Mage_Sales_Model_Order extends Mage_Sales_Model_Abstract
     }
 
     /**
+     * Retrieve shipping method
+     *
+     * @param bool $asObject return carrier code and shipping method data as object
+     * @return string|Varien_Object
+     */
+    public function getShippingMethod($asObject = false)
+    {
+        $shippingMethod = parent::getShippingMethod();
+        if (!$asObject) {
+            return $shippingMethod;
+        } else {
+            list($carrierCode, $method) = explode('_', $shippingMethod, 2);
+            return new Varien_Object(array(
+                'carrier_code' => $carrierCode,
+                'method'       => $method
+            ));
+        }
+    }
+
+    /**
      * Send email with order data
      *
      * @return Mage_Sales_Model_Order
diff --git app/code/core/Mage/Sales/Model/Quote/Address.php app/code/core/Mage/Sales/Model/Quote/Address.php
index 3e482d0..a9a0aa7 100644
--- app/code/core/Mage/Sales/Model/Quote/Address.php
+++ app/code/core/Mage/Sales/Model/Quote/Address.php
@@ -758,6 +758,8 @@ class Mage_Sales_Model_Quote_Address extends Mage_Customer_Model_Address_Abstrac
         $request->setPackageCurrency($this->getQuote()->getStore()->getCurrentCurrency());
         $request->setLimitCarrier($this->getLimitCarrier());
 
+        $request->setBaseSubtotalInclTax($this->getBaseSubtotalInclTax());
+
         $result = Mage::getModel('shipping/shipping')->collectRates($request)->getResult();
 
         $found = false;
diff --git app/code/core/Mage/Shipping/Model/Carrier/Abstract.php app/code/core/Mage/Shipping/Model/Carrier/Abstract.php
index e16530c..83772ba 100644
--- app/code/core/Mage/Shipping/Model/Carrier/Abstract.php
+++ app/code/core/Mage/Shipping/Model/Carrier/Abstract.php
@@ -27,17 +27,52 @@
 
 abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
 {
+    /**
+     * Carrier's code
+     *
+     * @var string
+     */
     protected $_code;
+
+    /**
+     * Rates result
+     *
+     * @var array
+     */
     protected $_rates = null;
+
+    /**
+     * Number of boxes in package
+     *
+     * @var int
+     */
     protected $_numBoxes = 1;
 
     /**
+     * Free Method config path
+     *
+     * @var string
+     */
+    protected $_freeMethod = 'free_method';
+
+    /**
      * Whether this carrier has fixed rates calculation
      *
      * @var bool
      */
     protected $_isFixed = false;
 
+    /**
+     * Container types that could be customized
+     *
+     * @var array
+     */
+    protected $_customizableContainerTypes = array();
+
+    const USA_COUNTRY_ID = 'US';
+    const CANADA_COUNTRY_ID = 'CA';
+    const MEXICO_COUNTRY_ID = 'MX';
+
     const HANDLING_TYPE_PERCENT = 'P';
     const HANDLING_TYPE_FIXED = 'F';
 
@@ -51,11 +86,6 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
      */
     protected $_debugReplacePrivateDataKeys = array();
 
-    public function __construct()
-    {
-
-    }
-
     /**
      * Retrieve information from carrier configuration
      *
@@ -71,6 +101,12 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         return Mage::getStoreConfig($path, $this->getStore());
     }
 
+    /**
+     * Retrieve config flag for store by field
+     *
+     * @param string $field
+     * @return bool
+     */
     public function getConfigFlag($field)
     {
         if (empty($this->_code)) {
@@ -80,28 +116,146 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         return Mage::getStoreConfigFlag($path, $this->getStore());
     }
 
+    /**
+     * Collect and get rates
+     *
+     * @abstract
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Shipping_Model_Rate_Result|bool|null
+     */
     abstract public function collectRates(Mage_Shipping_Model_Rate_Request $request);
 
+    /**
+     * Do request to shipment
+     * Implementation must be in overridden method
+     *
+     * @param Mage_Shipping_Model_Shipment_Request $request
+     * @return Varien_Object
+     */
+    public function requestToShipment(Mage_Shipping_Model_Shipment_Request $request)
+    {
+        return new Varien_Object();
+    }
+
+    /**
+     * Do return of shipment
+     * Implementation must be in overridden method
+     *
+     * @param $request
+     * @return Varien_Object
+     */
+    public function returnOfShipment($request)
+    {
+        return new Varien_Object();
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        return array();
+    }
+
+    /**
+     * Get allowed containers of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    protected function _getAllowedContainers(Varien_Object $params = null)
+    {
+        $containersAll = $this->getContainerTypesAll();
+        if (empty($containersAll)) {
+            return array();
+        }
+        if (empty($params)) {
+            return $containersAll;
+        }
+        $containersFilter   = $this->getContainerTypesFilter();
+        $containersFiltered = array();
+        $method             = $params->getMethod();
+        $countryShipper     = $params->getCountryShipper();
+        $countryRecipient   = $params->getCountryRecipient();
+
+        if (empty($containersFilter)) {
+            return $containersAll;
+        }
+        if (!$params || !$method || !$countryShipper || !$countryRecipient) {
+            return $containersAll;
+        }
+
+        if ($countryShipper == self::USA_COUNTRY_ID && $countryRecipient == self::USA_COUNTRY_ID) {
+            $direction = 'within_us';
+        } else if ($countryShipper == self::USA_COUNTRY_ID && $countryRecipient != self::USA_COUNTRY_ID) {
+            $direction = 'from_us';
+        } else {
+            return $containersAll;
+        }
+
+        foreach ($containersFilter as $dataItem) {
+            $containers = $dataItem['containers'];
+            $filters = $dataItem['filters'];
+            if (!empty($filters[$direction]['method'])
+                && in_array($method, $filters[$direction]['method'])
+            ) {
+                foreach ($containers as $container) {
+                    if (!empty($containersAll[$container])) {
+                        $containersFiltered[$container] = $containersAll[$container];
+                    }
+                }
+            }
+        }
+
+        return !empty($containersFiltered) ? $containersFiltered : $containersAll;
+    }
+
+    /**
+     * Get Container Types, that could be customized
+     *
+     * @return array
+     */
+    public function getCustomizableContainerTypes()
+    {
+        return $this->_customizableContainerTypes;
+    }
+
+    /**
+     * Return delivery confirmation types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array
+     */
+    public function getDeliveryConfirmationTypes(Varien_Object $params = null)
+    {
+        return array();
+    }
+
     public function checkAvailableShipCountries(Mage_Shipping_Model_Rate_Request $request)
     {
         $speCountriesAllow = $this->getConfigData('sallowspecific');
         /*
         * for specific countries, the flag will be 1
         */
-        if($speCountriesAllow && $speCountriesAllow==1){
+        if ($speCountriesAllow && $speCountriesAllow == 1){
              $showMethod = $this->getConfigData('showmethod');
              $availableCountries = array();
-             if( $this->getConfigData('specificcountry') ) {
+             if($this->getConfigData('specificcountry')) {
                 $availableCountries = explode(',',$this->getConfigData('specificcountry'));
              }
              if ($availableCountries && in_array($request->getDestCountryId(), $availableCountries)) {
                  return $this;
-             } elseif ($showMethod && (!$availableCountries || ($availableCountries && !in_array($request->getDestCountryId(), $availableCountries)))){
+             } elseif ($showMethod && (!$availableCountries || ($availableCountries
+                 && !in_array($request->getDestCountryId(), $availableCountries)))
+             ){
                    $error = Mage::getModel('shipping/rate_result_error');
                    $error->setCarrier($this->_code);
                    $error->setCarrierTitle($this->getConfigData('title'));
                    $errorMsg = $this->getConfigData('specificerrmsg');
-                   $error->setErrorMessage($errorMsg?$errorMsg:Mage::helper('shipping')->__('The shipping module is not available for selected delivery country.'));
+                   $error->setErrorMessage($errorMsg ? $errorMsg : Mage::helper('shipping')->__('The shipping module is not available for selected delivery country.'));
                    return $error;
              } else {
                  /*
@@ -125,6 +279,11 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         return $this;
     }
 
+    /**
+     * Determine whether current carrier enabled for activity
+     *
+     * @return bool
+     */
     public function isActive()
     {
         $active = $this->getConfigData('active');
@@ -151,6 +310,21 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         return false;
     }
 
+    /**
+     * Check if carrier has shipping label option available
+     *
+     * @return boolean
+     */
+    public function isShippingLabelsAvailable()
+    {
+        return false;
+    }
+
+    /**
+     *  Retrieve sort order of current carrier
+     *
+     * @return mixed
+     */
     public function getSortOrder()
     {
         return $this->getConfigData('sort_order');
@@ -158,34 +332,34 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
 
     /**
      * @param Mage_Shipping_Model_Rate_Request $request
-     * @return void
+     * @return null
      */
     protected function _updateFreeMethodQuote($request)
     {
-        if ($request->getFreeMethodWeight()==$request->getPackageWeight()
-            || !$request->hasFreeMethodWeight()) {
+        if ($request->getFreeMethodWeight() == $request->getPackageWeight() || !$request->hasFreeMethodWeight()) {
             return;
         }
 
-        if (!$freeMethod = $this->getConfigData('free_method')) {
+        $freeMethod = $this->getConfigData($this->_freeMethod);
+        if (!$freeMethod) {
             return;
         }
         $freeRateId = false;
 
         if (is_object($this->_result)) {
             foreach ($this->_result->getAllRates() as $i=>$item) {
-                if ($item->getMethod()==$freeMethod) {
+                if ($item->getMethod() == $freeMethod) {
                     $freeRateId = $i;
                     break;
                 }
             }
         }
 
-        if ($freeRateId===false) {
+        if ($freeRateId === false) {
             return;
         }
         $price = null;
-        if ($request->getFreeMethodWeight()>0) {
+        if ($request->getFreeMethodWeight() > 0) {
             $this->_setFreeMethodRequest($freeMethod);
 
             $result = $this->_getQuotes();
@@ -195,7 +369,9 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
                 }
                 if (count($rates) > 1) {
                     foreach ($rates as $rate) {
-                        if ($rate instanceof Mage_Shipping_Model_Rate_Result_Method && $rate->getMethod() == $freeMethod) {
+                        if ($rate instanceof Mage_Shipping_Model_Rate_Result_Method
+                            && $rate->getMethod() == $freeMethod
+                        ) {
                             $price = $rate->getPrice();
                         }
                     }
@@ -217,12 +393,18 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         }
     }
 
+    /**
+     * Calculate price considering free shipping and handling fee
+     *
+     * @param string $cost
+     * @param string $method
+     * @return string
+     */
     public function getMethodPrice($cost, $method='')
     {
-        if ($method == $this->getConfigData('free_method') &&
-            $this->getConfigData('free_shipping_enable') &&
-            $this->getConfigData('free_shipping_subtotal') <= $this->_rawRequest->getValueWithDiscount())
-        {
+        if ($method == $this->getConfigData($this->_freeMethod) && $this->getConfigData('free_shipping_enable')
+            && $this->getConfigData('free_shipping_subtotal') <= $this->_rawRequest->getBaseSubtotalInclTax()
+        ) {
             $price = '0.00';
         } else {
             $price = $this->getFinalPriceWithHandlingFee($cost);
@@ -230,15 +412,15 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         return $price;
     }
 
-   /**
+    /**
      * get the handling fee for the shipping + cost
      *
-     * @return final price for shipping emthod
+     * @param float $cost
+     * @return float final price for shipping method
      */
     public function getFinalPriceWithHandlingFee($cost)
     {
         $handlingFee = $this->getConfigData('handling_fee');
-        $finalMethodPrice = 0;
         $handlingType = $this->getConfigData('handling_type');
         if (!$handlingType) {
             $handlingType = self::HANDLING_TYPE_FIXED;
@@ -248,29 +430,50 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
             $handlingAction = self::HANDLING_ACTION_PERORDER;
         }
 
-        if($handlingAction == self::HANDLING_ACTION_PERPACKAGE)
-        {
-            if ($handlingType == self::HANDLING_TYPE_PERCENT) {
-                $finalMethodPrice = ($cost + ($cost * $handlingFee/100)) * $this->_numBoxes;
-            } else {
-                $finalMethodPrice = ($cost + $handlingFee) * $this->_numBoxes;
-            }
-        } else {
-            if ($handlingType == self::HANDLING_TYPE_PERCENT) {
-                $finalMethodPrice = ($cost * $this->_numBoxes) + ($cost * $this->_numBoxes * $handlingFee/100);
-            } else {
-                $finalMethodPrice = ($cost * $this->_numBoxes) + $handlingFee;
-            }
+        return ($handlingAction == self::HANDLING_ACTION_PERPACKAGE)
+            ? $this->_getPerpackagePrice($cost, $handlingType, $handlingFee)
+            : $this->_getPerorderPrice($cost, $handlingType, $handlingFee);
+    }
 
+    /**
+     * Get final price for shipping method with handling fee per package
+     *
+     * @param float $cost
+     * @param string $handlingType
+     * @param float $handlingFee
+     * @return float
+     */
+    protected function _getPerpackagePrice($cost, $handlingType, $handlingFee)
+    {
+        if ($handlingType == self::HANDLING_TYPE_PERCENT) {
+            return ($cost + ($cost * $handlingFee/100)) * $this->_numBoxes;
         }
-        return $finalMethodPrice;
+
+        return ($cost + $handlingFee) * $this->_numBoxes;
+    }
+
+    /**
+     * Get final price for shipping method with handling fee per order
+     *
+     * @param float $cost
+     * @param string $handlingType
+     * @param float $handlingFee
+     * @return float
+     */
+    protected function _getPerorderPrice($cost, $handlingType, $handlingFee)
+    {
+        if ($handlingType == self::HANDLING_TYPE_PERCENT) {
+            return ($cost * $this->_numBoxes) + ($cost * $this->_numBoxes * $handlingFee / 100);
+        }
+
+        return ($cost * $this->_numBoxes) + $handlingFee;
     }
 
     /**
      *  Return weight in pounds
      *
-     *  @param    integer Weight in someone measure
-     *  @return	  float Weight in pounds
+     *  @param integer Weight in someone measure
+     *  @return float Weight in pounds
      */
     public function convertWeightToLbs($weight)
     {
@@ -290,24 +493,40 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
         $this->_numBoxes = 1;
         $weight = $this->convertWeightToLbs($weight);
         $maxPackageWeight = $this->getConfigData('max_package_weight');
-        if($weight > $maxPackageWeight && $maxPackageWeight != 0) {
+        if ($weight > $maxPackageWeight && $maxPackageWeight != 0) {
             $this->_numBoxes = ceil($weight/$maxPackageWeight);
             $weight = $weight/$this->_numBoxes;
         }
         return $weight;
     }
 
+    /**
+     * Is state province required
+     *
+     * @return bool
+     */
     public function isStateProvinceRequired()
     {
         return false;
     }
 
+    /**
+     * Check if city option required
+     *
+     * @return boolean
+     */
     public function isCityRequired()
     {
         return false;
     }
 
-    public function isZipCodeRequired()
+    /**
+     * Determine whether zip-code is required for the country of destination
+     *
+     * @param string|null $countryId
+     * @return bool
+     */
+    public function isZipCodeRequired($countryId = null)
     {
         return false;
     }
@@ -355,4 +574,15 @@ abstract class Mage_Shipping_Model_Carrier_Abstract extends Varien_Object
     {
         return $this->_code;
     }
+
+    /**
+     * Return content types of package
+     *
+     * @param Varien_Object $params
+     * @return array
+     */
+    public function getContentTypes(Varien_Object $params)
+    {
+        return array();
+    }
 }
diff --git app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php
index 4b2bb1e..3dc5210 100644
--- app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php
+++ app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php
@@ -53,14 +53,12 @@ class Mage_Shipping_Model_Carrier_Freeshipping
         }
 
         $result = Mage::getModel('shipping/rate_result');
-        $packageValue = $request->getPackageValue();
 
         $this->_updateFreeMethodQuote($request);
 
-        $allow = ($request->getFreeShipping())
-            || ($packageValue >= $this->getConfigData('free_shipping_subtotal'));
-
-        if ($allow) {
+        if (($request->getFreeShipping())
+            || ($request->getBaseSubtotalInclTax() >= $this->getConfigData('free_shipping_subtotal'))
+        ) {
             $method = Mage::getModel('shipping/rate_result_method');
 
             $method->setCarrier('freeshipping');
diff --git app/code/core/Mage/Shipping/Model/Config.php app/code/core/Mage/Shipping/Model/Config.php
index d0459b8..e3abdc3 100644
--- app/code/core/Mage/Shipping/Model/Config.php
+++ app/code/core/Mage/Shipping/Model/Config.php
@@ -103,13 +103,8 @@ class Mage_Shipping_Model_Config extends Varien_Object
      */
     protected function _getCarrier($code, $config, $store = null)
     {
-/*
-        if (isset(self::$_carriers[$code])) {
-            return self::$_carriers[$code];
-        }
-*/
         if (!isset($config['model'])) {
-            throw Mage::exception('Mage_Shipping', 'Invalid model for shipping method: '.$code);
+            return false;
         }
         $modelName = $config['model'];
 
diff --git app/code/core/Mage/Shipping/Model/Info.php app/code/core/Mage/Shipping/Model/Info.php
index 6022ddd..c2e14c5 100644
--- app/code/core/Mage/Shipping/Model/Info.php
+++ app/code/core/Mage/Shipping/Model/Info.php
@@ -49,9 +49,9 @@ class Mage_Shipping_Model_Info extends Varien_Object
             $this->setData($data['key'], $data['id']);
             $this->setProtectCode($data['hash']);
 
-            if ($this->getOrderId()>0) {
+            if ($this->getOrderId() > 0) {
                 $this->getTrackingInfoByOrder();
-            } elseif($this->getShipId()>0) {
+            } elseif($this->getShipId() > 0) {
                 $this->getTrackingInfoByShip();
             } else {
                 $this->getTrackingInfoByTrackId();
@@ -73,7 +73,7 @@ class Mage_Shipping_Model_Info extends Varien_Object
     /**
      * Instantiate order model
      *
-     * @return Mage_Sales_Model_Order || false
+     * @return Mage_Sales_Model_Order|bool
      */
     protected function _initOrder()
     {
@@ -89,7 +89,7 @@ class Mage_Shipping_Model_Info extends Varien_Object
     /**
      * Instantiate ship model
      *
-     * @return Mage_Sales_Model_Order_Shipment || false
+     * @return Mage_Sales_Model_Order_Shipment|bool
      */
     protected function _initShipment()
     {
@@ -111,7 +111,8 @@ class Mage_Shipping_Model_Info extends Varien_Object
     public function getTrackingInfoByOrder()
     {
         $shipTrack = array();
-        if ($order = $this->_initOrder()) {
+        $order = $this->_initOrder();
+        if ($order) {
             $shipments = $order->getShipmentsCollection();
             foreach ($shipments as $shipment){
                 $increment_id = $shipment->getIncrementId();
@@ -136,7 +137,8 @@ class Mage_Shipping_Model_Info extends Varien_Object
     public function getTrackingInfoByShip()
     {
         $shipTrack = array();
-        if ($shipment = $this->_initShipment()) {
+        $shipment = $this->_initShipment();
+        if ($shipment) {
             $increment_id = $shipment->getIncrementId();
             $tracks = $shipment->getTracksCollection();
 
diff --git app/code/core/Mage/Shipping/Model/Rate/Result.php app/code/core/Mage/Shipping/Model/Rate/Result.php
index d9a1b07..96d0381 100644
--- app/code/core/Mage/Shipping/Model/Rate/Result.php
+++ app/code/core/Mage/Shipping/Model/Rate/Result.php
@@ -27,11 +27,24 @@
 
 class Mage_Shipping_Model_Rate_Result
 {
+    /**
+     * Shippin method rates
+     *
+     * @var array
+     */
     protected $_rates = array();
+
+    /**
+     * Shipping errors
+     *
+     * @var null|bool
+     */
     protected $_error = null;
 
     /**
      * Reset result
+     *
+     * @return Mage_Shipping_Model_Rate_Result
      */
     public function reset()
     {
@@ -39,11 +52,22 @@ class Mage_Shipping_Model_Rate_Result
         return $this;
     }
 
+    /**
+     * Set Error
+     *
+     * @param bool $error
+     * @return void
+     */
     public function setError($error)
     {
         $this->_error = $error;
     }
 
+    /**
+     * Get Error
+     *
+     * @return null|bool;
+     */
     public function getError()
     {
         return $this->_error;
@@ -53,6 +77,7 @@ class Mage_Shipping_Model_Rate_Result
      * Add a rate to the result
      *
      * @param Mage_Shipping_Model_Rate_Result_Abstract|Mage_Shipping_Model_Rate_Result $result
+     * @return Mage_Shipping_Model_Rate_Result
      */
     public function append($result)
     {
@@ -73,6 +98,8 @@ class Mage_Shipping_Model_Rate_Result
 
     /**
      * Return all quotes in the result
+     *
+     * @return array
      */
     public function getAllRates()
     {
@@ -81,6 +108,9 @@ class Mage_Shipping_Model_Rate_Result
 
     /**
      * Return rate by id in array
+     *
+     * @param int $id
+     * @return Mage_Shipping_Model_Rate_Result_Method|null
      */
     public function getRateById($id)
     {
@@ -90,19 +120,25 @@ class Mage_Shipping_Model_Rate_Result
     /**
      * Return quotes for specified type
      *
-     * @param string $type
+     * @param string $carrier
+     * @return array
      */
     public function getRatesByCarrier($carrier)
     {
         $result = array();
         foreach ($this->_rates as $rate) {
-            if ($rate->getCarrier()===$carrier) {
+            if ($rate->getCarrier() === $carrier) {
                 $result[] = $rate;
             }
         }
         return $result;
     }
 
+    /**
+     * Converts object to array
+     *
+     * @return array
+     */
     public function asArray()
     {
         $currencyFilter = Mage::app()->getStore()->getPriceFilter();
@@ -111,20 +147,25 @@ class Mage_Shipping_Model_Rate_Result
         foreach ($allRates as $rate) {
             $rates[$rate->getCarrier()]['title'] = $rate->getCarrierTitle();
             $rates[$rate->getCarrier()]['methods'][$rate->getMethod()] = array(
-                'title'=>$rate->getMethodTitle(),
-                'price'=>$rate->getPrice(),
-                'price_formatted'=>$currencyFilter->filter($rate->getPrice()),
+                'title' => $rate->getMethodTitle(),
+                'price' => $rate->getPrice(),
+                'price_formatted' => $currencyFilter->filter($rate->getPrice()),
             );
         }
         return $rates;
     }
 
+    /**
+     * Get cheapest rate
+     *
+     * @return null|Mage_Shipping_Model_Rate_Result_Method
+     */
     public function getCheapestRate()
     {
         $cheapest = null;
         $minPrice = 100000;
         foreach ($this->getAllRates() as $rate) {
-            if (is_numeric($rate->getPrice()) && $rate->getPrice()<$minPrice) {
+            if (is_numeric($rate->getPrice()) && $rate->getPrice() < $minPrice) {
                 $cheapest = $rate;
                 $minPrice = $rate->getPrice();
             }
@@ -133,11 +174,11 @@ class Mage_Shipping_Model_Rate_Result
     }
 
     /**
-     *  Sort rates by price from min to max
+     * Sort rates by price from min to max
      *
-     *  @return	  Mage_Shipping_Model_Rate_Result
+     * @return Mage_Shipping_Model_Rate_Result
      */
-    public function sortRatesByPrice ()
+    public function sortRatesByPrice()
     {
         if (!is_array($this->_rates) || !count($this->_rates)) {
             return $this;
@@ -157,4 +198,21 @@ class Mage_Shipping_Model_Rate_Result
         $this->_rates = $result;
         return $this;
     }
+
+    /**
+     * Set price for each rate according to count of packages
+     *
+     * @param int $packageCount
+     * @return Mage_Shipping_Model_Rate_Result
+     */
+    public function updateRatePrice($packageCount)
+    {
+        if ($packageCount > 1) {
+            foreach ($this->_rates as $rate) {
+                $rate->setPrice($rate->getPrice() * $packageCount);
+            }
+        }
+
+        return $this;
+    }
 }
diff --git app/code/core/Mage/Shipping/Model/Shipment/Request.php app/code/core/Mage/Shipping/Model/Shipment/Request.php
new file mode 100644
index 0000000..2bee4e0
--- /dev/null
+++ app/code/core/Mage/Shipping/Model/Shipment/Request.php
@@ -0,0 +1,89 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * @method Mage_Shipping_Model_Shipment_Request setOrderShipment(Mage_Sales_Model_Order_Shipment $orderShipment)
+ * @method Mage_Sales_Model_Order_Shipment getOrderShipment()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonName(string $value)
+ * @method string getShipperContactPersonName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonFirstName(string $value)
+ * @method string getShipperContactPersonFirstName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonLastName(string $value)
+ * @method string getShipperContactPersonLastName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactCompanyName(string $value)
+ * @method string getShipperContactCompanyName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPhoneNumber(int $value)
+ * @method int getShipperContactPhoneNumber()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet(string $value)
+ * @method string getShipperAddressStreet()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet1(string $value)
+ * @method string getShipperAddressStreet1()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet2(string $value)
+ * @method string getShipperAddressStreet2()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressCity(string $value)
+ * @method string getShipperAddressCity()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStateOrProvinceCode(string $value)
+ * @method string getShipperAddressStateOrProvinceCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressPostalCode(int $value)
+ * @method int getShipperAddressPostalCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressCountryCode(string $value)
+ * @method string getShipperAddressCountryCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonName(string $value)
+ * @method string getRecipientContactPersonName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonFirstName(string $value)
+ * @method string getRecipientContactPersonFirstName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonLastName(string $value)
+ * @method string getRecipientContactPersonLastName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactCompanyName(string $value)
+ * @method string getRecipientContactCompanyName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPhoneNumber(int $value)
+ * @method int getRecipientContactPhoneNumber()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet(string $value)
+ * @method string getRecipientAddressStreet()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet1(string $value)
+ * @method string getRecipientAddressStreet1()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet2(string $value)
+ * @method string getRecipientAddressStreet2()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressCity(string $value)
+ * @method string getRecipientAddressCity()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStateOrProvinceCode(string $value)
+ * @method string getRecipientAddressStateOrProvinceCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressPostalCode(int $value)
+ * @method int getRecipientAddressPostalCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressCountryCode(string $value)
+ * @method string getRecipientAddressCountryCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShippingMethod(string $value)
+ * @method string getShippingMethod()
+ * @method Mage_Shipping_Model_Shipment_Request setPackageWeight(float $value)
+ * @method float getPackageWeight()
+ *
+ * @category    Mage
+ * @package     Mage_Shipping
+ * @author      Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Shipping_Model_Shipment_Request extends Varien_Object
+{
+}
diff --git app/code/core/Mage/Shipping/Model/Shipment/Return.php app/code/core/Mage/Shipping/Model/Shipment/Return.php
new file mode 100644
index 0000000..46f5e62
--- /dev/null
+++ app/code/core/Mage/Shipping/Model/Shipment/Return.php
@@ -0,0 +1,89 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * @method Mage_Shipping_Model_Shipment_Request setOrderShipment(Mage_Sales_Model_Order_Shipment $orderShipment)
+ * @method Mage_Sales_Model_Order_Shipment getOrderShipment()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonName(string $value)
+ * @method string getShipperContactPersonName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonFirstName(string $value)
+ * @method string getShipperContactPersonFirstName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPersonLastName(string $value)
+ * @method string getShipperContactPersonLastName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactCompanyName(string $value)
+ * @method string getShipperContactCompanyName()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperContactPhoneNumber(int $value)
+ * @method int getShipperContactPhoneNumber()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet(string $value)
+ * @method string getShipperAddressStreet()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet1(string $value)
+ * @method string getShipperAddressStreet1()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStreet2(string $value)
+ * @method string getShipperAddressStreet2()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressCity(string $value)
+ * @method string getShipperAddressCity()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressStateOrProvinceCode(string $value)
+ * @method string getShipperAddressStateOrProvinceCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressPostalCode(int $value)
+ * @method int getShipperAddressPostalCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShipperAddressCountryCode(string $value)
+ * @method string getShipperAddressCountryCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonName(string $value)
+ * @method string getRecipientContactPersonName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonFirstName(string $value)
+ * @method string getRecipientContactPersonFirstName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPersonLastName(string $value)
+ * @method string getRecipientContactPersonLastName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactCompanyName(string $value)
+ * @method string getRecipientContactCompanyName()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientContactPhoneNumber(int $value)
+ * @method int getRecipientContactPhoneNumber()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet(string $value)
+ * @method string getRecipientAddressStreet()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet1(string $value)
+ * @method string getRecipientAddressStreet1()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStreet2(string $value)
+ * @method string getRecipientAddressStreet2()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressCity(string $value)
+ * @method string getRecipientAddressCity()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressStateOrProvinceCode(string $value)
+ * @method string getRecipientAddressStateOrProvinceCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressPostalCode(int $value)
+ * @method int getRecipientAddressPostalCode()
+ * @method Mage_Shipping_Model_Shipment_Request setRecipientAddressCountryCode(string $value)
+ * @method string getRecipientAddressCountryCode()
+ * @method Mage_Shipping_Model_Shipment_Request setShippingMethod(string $value)
+ * @method string getShippingMethod()
+ * @method Mage_Shipping_Model_Shipment_Request setPackageWeight(float $value)
+ * @method float getPackageWeight()
+ *
+ * @category    Mage
+ * @package     Mage_Shipping
+ * @author      Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Shipping_Model_Shipment_Return extends Varien_Object
+{
+}
diff --git app/code/core/Mage/Shipping/Model/Shipping.php app/code/core/Mage/Shipping/Model/Shipping.php
index c7d3ca9..3adc13c 100644
--- app/code/core/Mage/Shipping/Model/Shipping.php
+++ app/code/core/Mage/Shipping/Model/Shipping.php
@@ -28,6 +28,16 @@
 class Mage_Shipping_Model_Shipping
 {
     /**
+     * Store address
+     */
+    const XML_PATH_STORE_ADDRESS1     = 'shipping/origin/street_line1';
+    const XML_PATH_STORE_ADDRESS2     = 'shipping/origin/street_line2';
+    const XML_PATH_STORE_CITY         = 'shipping/origin/city';
+    const XML_PATH_STORE_REGION_ID    = 'shipping/origin/region_id';
+    const XML_PATH_STORE_ZIP          = 'shipping/origin/postcode';
+    const XML_PATH_STORE_COUNTRY_ID   = 'shipping/origin/country_id';
+
+    /**
      * Default shipping orig for requests
      *
      * @var array
@@ -41,6 +51,12 @@ class Mage_Shipping_Model_Shipping
      */
     protected $_result = null;
 
+    /**
+     * Part of carrier xml config path
+     *
+     * @var string
+     */
+    protected $_availabilityConfigField = 'active';
 
     /**
      * Get shipping rate result model
@@ -57,6 +73,9 @@ class Mage_Shipping_Model_Shipping
 
     /**
      * Set shipping orig data
+     *
+     * @param array $data
+     * @return null
      */
     public function setOrigData($data)
     {
@@ -65,6 +84,8 @@ class Mage_Shipping_Model_Shipping
 
     /**
      * Reset cached result
+     *
+     * @return Mage_Shipping_Model_Shipping
      */
     public function resetResult()
     {
@@ -94,10 +115,10 @@ class Mage_Shipping_Model_Shipping
         $storeId = $request->getStoreId();
         if (!$request->getOrig()) {
             $request
-                ->setCountryId(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_COUNTRY_ID, $storeId))
-                ->setRegionId(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_REGION_ID, $storeId))
-                ->setCity(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_CITY, $storeId))
-                ->setPostcode(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_POSTCODE, $storeId));
+                ->setCountryId(Mage::getStoreConfig(self::XML_PATH_STORE_COUNTRY_ID, $request->getStore()))
+                ->setRegionId(Mage::getStoreConfig(self::XML_PATH_STORE_REGION_ID, $request->getStore()))
+                ->setCity(Mage::getStoreConfig(self::XML_PATH_STORE_CITY, $request->getStore()))
+                ->setPostcode(Mage::getStoreConfig(self::XML_PATH_STORE_ZIP, $request->getStore()));
         }
 
         $limitCarrier = $request->getLimitCarrier();
@@ -123,23 +144,68 @@ class Mage_Shipping_Model_Shipping
         return $this;
     }
 
+    /**
+     * Collect rates of given carrier
+     *
+     * @param string                           $carrierCode
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Shipping_Model_Shipping
+     */
     public function collectCarrierRates($carrierCode, $request)
     {
+        /* @var $carrier Mage_Shipping_Model_Carrier_Abstract */
         $carrier = $this->getCarrierByCode($carrierCode, $request->getStoreId());
         if (!$carrier) {
             return $this;
         }
+        $carrier->setActiveFlag($this->_availabilityConfigField);
         $result = $carrier->checkAvailableShipCountries($request);
         if (false !== $result && !($result instanceof Mage_Shipping_Model_Rate_Result_Error)) {
             $result = $carrier->proccessAdditionalValidation($request);
         }
         /*
         * Result will be false if the admin set not to show the shipping module
-        * if the devliery country is not within specific countries
+        * if the delivery country is not within specific countries
         */
         if (false !== $result){
             if (!$result instanceof Mage_Shipping_Model_Rate_Result_Error) {
-                $result = $carrier->collectRates($request);
+                if ($carrier->getConfigData('shipment_requesttype')) {
+                    $packages = $this->composePackagesForCarrier($carrier, $request);
+                    if (!empty($packages)) {
+                        $sumResults = array();
+                        foreach ($packages as $weight => $packageCount) {
+                            $request->setPackageWeight($weight);
+                            $result = $carrier->collectRates($request);
+                            if (!$result) {
+                                return $this;
+                            } else {
+                                $result->updateRatePrice($packageCount);
+                            }
+                            $sumResults[] = $result;
+                        }
+                        if (!empty($sumResults) && count($sumResults) > 1) {
+                            $result = array();
+                            foreach ($sumResults as $res) {
+                                if (empty($result)) {
+                                    $result = $res;
+                                    continue;
+                                }
+                                foreach ($res->getAllRates() as $method) {
+                                    foreach ($result->getAllRates() as $resultMethod) {
+                                        if ($method->getMethod() == $resultMethod->getMethod()) {
+                                            $resultMethod->setPrice($method->getPrice() + $resultMethod->getPrice());
+                                            continue;
+                                        }
+                                    }
+                                }
+                            }
+                        }
+                    } else {
+                        $result = $carrier->collectRates($request);
+                    }
+                } else {
+                    $result = $carrier->collectRates($request);
+                }
                 if (!$result) {
                     return $this;
                 }
@@ -156,7 +222,149 @@ class Mage_Shipping_Model_Shipping
         return $this;
     }
 
-    public function collectRatesByAddress(Varien_Object $address, $limitCarrier=null)
+    /**
+     * Compose Packages For Carrier.
+     * Devides order into items and items into parts if it's neccesary
+     *
+     * @param Mage_Shipping_Model_Carrier_Abstract $carrier
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return array [int, float]
+     */
+    public function composePackagesForCarrier($carrier, $request)
+    {
+        $allItems   = $request->getAllItems();
+        $fullItems  = array();
+
+        $maxWeight  = (float) $carrier->getConfigData('max_package_weight');
+
+        foreach ($allItems as $item) {
+            if ($item->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE
+                && $item->getProduct()->getShipmentType()
+            ) {
+                continue;
+            }
+
+            $qty            = $item->getQty();
+            $changeQty      = true;
+            $checkWeight    = true;
+            $decimalItems   = array();
+
+            if ($item->getParentItem()) {
+                if (!$item->getParentItem()->getProduct()->getShipmentType()) {
+                    continue;
+                }
+                $qty = $item->getIsQtyDecimal()
+                    ? $item->getParentItem()->getQty()
+                    : $item->getParentItem()->getQty() * $item->getQty();
+            }
+
+            $itemWeight = $item->getWeight();
+            if ($item->getIsQtyDecimal() && $item->getProductType() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
+                $stockItem = $item->getProduct()->getStockItem();
+                if ($stockItem->getIsDecimalDivided()) {
+                   if ($stockItem->getEnableQtyIncrements() && $stockItem->getQtyIncrements()) {
+                        $itemWeight = $itemWeight * $stockItem->getQtyIncrements();
+                        $qty        = round(($item->getWeight() / $itemWeight) * $qty);
+                        $changeQty  = false;
+                   } else {
+                       $itemWeight = $itemWeight * $item->getQty();
+                       if ($itemWeight > $maxWeight) {
+                           $qtyItem = floor($itemWeight / $maxWeight);
+                           $decimalItems[] = array('weight' => $maxWeight, 'qty' => $qtyItem);
+                           $weightItem = Mage::helper('core')->getExactDivision($itemWeight, $maxWeight);
+                           if ($weightItem) {
+                               $decimalItems[] = array('weight' => $weightItem, 'qty' => 1);
+                           }
+                           $checkWeight = false;
+                       } else {
+                           $itemWeight = $itemWeight * $item->getQty();
+                       }
+                   }
+                } else {
+                    $itemWeight = $itemWeight * $item->getQty();
+                }
+            }
+
+            if ($checkWeight && $maxWeight && $itemWeight > $maxWeight) {
+                return array();
+            }
+
+            if ($changeQty && !$item->getParentItem() && $item->getIsQtyDecimal()
+                && $item->getProductType() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE
+            ) {
+                $qty = 1;
+            }
+
+            if (!empty($decimalItems)) {
+                foreach ($decimalItems as $decimalItem) {
+                    $fullItems = array_merge($fullItems,
+                        array_fill(0, $decimalItem['qty'] * $qty, $decimalItem['weight'])
+                    );
+                }
+            } else {
+                $fullItems = array_merge($fullItems, array_fill(0, $qty, $itemWeight));
+            }
+        }
+        sort($fullItems);
+
+        return $this->_makePieces($fullItems, $maxWeight);
+    }
+
+    /**
+     * Make pieces
+     * Compose packeges list based on given items, so that each package is as heavy as possible
+     *
+     * @param array $items
+     * @param float $maxWeight
+     * @return array
+     */
+    protected function _makePieces($items, $maxWeight)
+    {
+        $pieces = array();
+        if (!empty($items)) {
+            $sumWeight = 0;
+
+            $reverseOrderItems = $items;
+            arsort($reverseOrderItems);
+
+            foreach ($reverseOrderItems as $key => $weight) {
+                if (!isset($items[$key])) {
+                    continue;
+                }
+                unset($items[$key]);
+                $sumWeight = $weight;
+                foreach ($items as $key => $weight) {
+                    if (($sumWeight + $weight) < $maxWeight) {
+                        unset($items[$key]);
+                        $sumWeight += $weight;
+                    } elseif (($sumWeight + $weight) > $maxWeight) {
+                        $pieces[] = (string)(float)$sumWeight;
+                        break;
+                    } else {
+                        unset($items[$key]);
+                        $pieces[] = (string)(float)($sumWeight + $weight);
+                        $sumWeight = 0;
+                        break;
+                    }
+                }
+            }
+            if ($sumWeight > 0) {
+                $pieces[] = (string)(float)$sumWeight;
+            }
+            $pieces = array_count_values($pieces);
+        }
+
+        return $pieces;
+    }
+
+    /**
+     * Collect rates by address
+     *
+     * @param Varien_Object $address
+     * @param null|bool|array $limitCarrier
+     * @return Mage_Shipping_Model_Shipping
+     */
+    public function collectRatesByAddress(Varien_Object $address, $limitCarrier = null)
     {
         /** @var $request Mage_Shipping_Model_Rate_Request */
         $request = Mage::getModel('shipping/rate_request');
@@ -175,18 +383,38 @@ class Mage_Shipping_Model_Shipping
         $request->setPackageCurrency(Mage::app()->getStore()->getCurrentCurrency());
         $request->setLimitCarrier($limitCarrier);
 
+        $request->setBaseSubtotalInclTax($address->getBaseSubtotalInclTax());
+
         return $this->collectRates($request);
     }
 
+    /**
+     * Set part of carrier xml config path
+     *
+     * @param string $code
+     * @return Mage_Shipping_Model_Shipping
+     */
+    public function setCarrierAvailabilityConfigField($code = 'active')
+    {
+        $this->_availabilityConfigField = $code;
+        return $this;
+    }
+
+    /**
+     * Get carrier by its code
+     *
+     * @param string $carrierCode
+     * @param null|int $storeId
+     * @return bool|Mage_Core_Model_Abstract
+     */
     public function getCarrierByCode($carrierCode, $storeId = null)
     {
-        if (!Mage::getStoreConfigFlag('carriers/'.$carrierCode.'/active', $storeId)) {
+        if (!Mage::getStoreConfigFlag('carriers/'.$carrierCode.'/'.$this->_availabilityConfigField, $storeId)) {
             return false;
         }
         $className = Mage::getStoreConfig('carriers/'.$carrierCode.'/model', $storeId);
         if (!$className) {
             return false;
-            #Mage::throwException('Invalid carrier: '.$carrierCode);
         }
         $obj = Mage::getModel($className);
         if ($storeId) {
@@ -195,4 +423,81 @@ class Mage_Shipping_Model_Shipping
         return $obj;
     }
 
+    /**
+     * Prepare and do request to shipment
+     *
+     * @param Mage_Sales_Model_Order_Shipment $orderShipment
+     * @return Varien_Object
+     */
+    public function requestToShipment(Mage_Sales_Model_Order_Shipment $orderShipment)
+    {
+        $admin = Mage::getSingleton('admin/session')->getUser();
+        $order = $orderShipment->getOrder();
+        $address = $order->getShippingAddress();
+        $shippingMethod = $order->getShippingMethod(true);
+        $shipmentStoreId = $orderShipment->getStoreId();
+        $shipmentCarrier = $order->getShippingCarrier();
+        $baseCurrencyCode = Mage::app()->getStore($shipmentStoreId)->getBaseCurrencyCode();
+        if (!$shipmentCarrier) {
+            Mage::throwException('Invalid carrier: ' . $shippingMethod->getCarrierCode());
+        }
+        $shipperRegionCode = Mage::getStoreConfig(self::XML_PATH_STORE_REGION_ID, $shipmentStoreId);
+        if (is_numeric($shipperRegionCode)) {
+            $shipperRegionCode = Mage::getModel('directory/region')->load($shipperRegionCode)->getCode();
+        }
+
+        $recipientRegionCode = Mage::getModel('directory/region')->load($address->getRegionId())->getCode();
+
+        $originStreet1 = Mage::getStoreConfig(self::XML_PATH_STORE_ADDRESS1, $shipmentStoreId);
+        $originStreet2 = Mage::getStoreConfig(self::XML_PATH_STORE_ADDRESS2, $shipmentStoreId);
+        $storeInfo = new Varien_Object(Mage::getStoreConfig('general/store_information', $shipmentStoreId));
+
+        if (!$admin->getFirstname() || !$admin->getLastname() || !$storeInfo->getName() || !$storeInfo->getPhone()
+            || !$originStreet1 || !Mage::getStoreConfig(self::XML_PATH_STORE_CITY, $shipmentStoreId)
+            || !$shipperRegionCode || !Mage::getStoreConfig(self::XML_PATH_STORE_ZIP, $shipmentStoreId)
+            || !Mage::getStoreConfig(self::XML_PATH_STORE_COUNTRY_ID, $shipmentStoreId)
+        ) {
+            Mage::throwException(
+                Mage::helper('sales')->__('Insufficient information to create shipping label(s). Please verify your Store Information and Shipping Settings.')
+            );
+        }
+
+        /** @var $request Mage_Shipping_Model_Shipment_Request */
+        $request = Mage::getModel('shipping/shipment_request');
+        $request->setOrderShipment($orderShipment);
+        $request->setShipperContactPersonName($admin->getName());
+        $request->setShipperContactPersonFirstName($admin->getFirstname());
+        $request->setShipperContactPersonLastName($admin->getLastname());
+        $request->setShipperContactCompanyName($storeInfo->getName());
+        $request->setShipperContactPhoneNumber($storeInfo->getPhone());
+        $request->setShipperEmail($admin->getEmail());
+        $request->setShipperAddressStreet(trim($originStreet1 . ' ' . $originStreet2));
+        $request->setShipperAddressStreet1($originStreet1);
+        $request->setShipperAddressStreet2($originStreet2);
+        $request->setShipperAddressCity(Mage::getStoreConfig(self::XML_PATH_STORE_CITY, $shipmentStoreId));
+        $request->setShipperAddressStateOrProvinceCode($shipperRegionCode);
+        $request->setShipperAddressPostalCode(Mage::getStoreConfig(self::XML_PATH_STORE_ZIP, $shipmentStoreId));
+        $request->setShipperAddressCountryCode(Mage::getStoreConfig(self::XML_PATH_STORE_COUNTRY_ID, $shipmentStoreId));
+        $request->setRecipientContactPersonName(trim($address->getFirstname() . ' ' . $address->getLastname()));
+        $request->setRecipientContactPersonFirstName($address->getFirstname());
+        $request->setRecipientContactPersonLastName($address->getLastname());
+        $request->setRecipientContactCompanyName($address->getCompany());
+        $request->setRecipientContactPhoneNumber($address->getTelephone());
+        $request->setRecipientEmail($address->getEmail());
+        $request->setRecipientAddressStreet(trim($address->getStreet1() . ' ' . $address->getStreet2()));
+        $request->setRecipientAddressStreet1($address->getStreet1());
+        $request->setRecipientAddressStreet2($address->getStreet2());
+        $request->setRecipientAddressCity($address->getCity());
+        $request->setRecipientAddressStateOrProvinceCode($address->getRegionCode());
+        $request->setRecipientAddressRegionCode($recipientRegionCode);
+        $request->setRecipientAddressPostalCode($address->getPostcode());
+        $request->setRecipientAddressCountryCode($address->getCountryId());
+        $request->setShippingMethod($shippingMethod->getMethod());
+        $request->setPackageWeight($order->getWeight());
+        $request->setPackages($orderShipment->getPackages());
+        $request->setBaseCurrencyCode($baseCurrencyCode);
+        $request->setStoreId($shipmentStoreId);
+
+        return $shipmentCarrier->requestToShipment($request);
+    }
 }
diff --git app/code/core/Mage/Shipping/etc/system.xml app/code/core/Mage/Shipping/etc/system.xml
index bad6fa6..0eec924 100644
--- app/code/core/Mage/Shipping/etc/system.xml
+++ app/code/core/Mage/Shipping/etc/system.xml
@@ -56,6 +56,7 @@
                         <checkout_multiple_maximum_qty translate="label">
                             <label>Maximum Qty Allowed for Shipping to Multiple Addresses</label>
                             <frontend_type>text</frontend_type>
+                            <validate>validate-number</validate>
                             <sort_order>2</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -105,6 +106,22 @@
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </city>
+                        <street_line1 translate="label">
+                            <label>Street Address</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>50</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </street_line1>
+                        <street_line2 translate="label">
+                            <label>Street Address Line 2</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>60</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </street_line2>
                     </fields>
                 </origin>
             </groups>
@@ -146,6 +163,7 @@
                         <price translate="label">
                             <label>Price</label>
                             <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
                             <sort_order>5</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -163,6 +181,7 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
                             <sort_order>8</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -252,6 +271,7 @@
                         <free_shipping_subtotal translate="label">
                             <label>Minimum Order Amount</label>
                             <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
                             <sort_order>4</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -340,6 +360,7 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
                             <sort_order>8</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
diff --git app/code/core/Mage/Usa/Block/Adminhtml/Dhl/Unitofmeasure.php app/code/core/Mage/Usa/Block/Adminhtml/Dhl/Unitofmeasure.php
new file mode 100644
index 0000000..43bce83
--- /dev/null
+++ app/code/core/Mage/Usa/Block/Adminhtml/Dhl/Unitofmeasure.php
@@ -0,0 +1,82 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Frontend model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Block_Adminhtml_Dhl_Unitofmeasure extends Mage_Adminhtml_Block_System_Config_Form_Field
+{
+
+    /**
+     * Define params and variables
+     *
+     * @return void
+     */
+    public function _construct()
+    {
+        parent::_construct();
+
+        $carrierModel = Mage::getSingleton('usa/shipping_carrier_dhl_international');
+
+        $this->setInch($this->jsQuoteEscape($carrierModel->getCode('unit_of_dimension_cut', 'I')));
+        $this->setCm($this->jsQuoteEscape($carrierModel->getCode('unit_of_dimension_cut', 'C')));
+
+        $this->setHeight($this->jsQuoteEscape($carrierModel->getCode('dimensions', 'height')));
+        $this->setDepth($this->jsQuoteEscape($carrierModel->getCode('dimensions', 'depth')));
+        $this->setWidth($this->jsQuoteEscape($carrierModel->getCode('dimensions', 'width')));
+
+        $kgWeight = 70;
+
+        $this->setDivideOrderWeightNoteKg(
+            $this->jsQuoteEscape($this->__('Allows breaking total order weight into smaller pieces if it exeeds %s %s to ensure accurate calculation of shipping charges.', $kgWeight, 'kg'))
+        );
+
+        $weight = round(
+            Mage::helper('usa')->convertMeasureWeight(
+                $kgWeight, Zend_Measure_Weight::KILOGRAM, Zend_Measure_Weight::POUND), 3);
+
+        $this->setDivideOrderWeightNoteLbp(
+            $this->jsQuoteEscape($this->__('Allows breaking total order weight into smaller pieces if it exeeds %s %s to ensure accurate calculation of shipping charges.', $weight, 'pounds'))
+        );
+
+        $this->setTemplate('usa/dhl/unitofmeasure.phtml');
+    }
+
+    /**
+     * Retrieve Element HTML fragment
+     *
+     * @param Varien_Data_Form_Element_Abstract $element
+     * @return string
+     */
+    protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
+    {
+        return parent::_getElementHtml($element) . $this->renderView();
+    }
+}
diff --git app/code/core/Mage/Usa/Helper/Data.php app/code/core/Mage/Usa/Helper/Data.php
index 3720eb7..175fb81 100644
--- app/code/core/Mage/Usa/Helper/Data.php
+++ app/code/core/Mage/Usa/Helper/Data.php
@@ -20,16 +20,119 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
- 
+
 /**
- * Catalog data helper
+ * Usa data helper
  *
  * @author      Magento Core Team <core@magentocommerce.com>
  */
 class Mage_Usa_Helper_Data extends Mage_Core_Helper_Abstract
 {
+    /**
+     * Convert weight in different measure types
+     *
+     * @param  mixed $value
+     * @param  string $sourceWeightMeasure
+     * @param  string $toWeightMeasure
+     * @return int|null|string
+     */
+    public function convertMeasureWeight($value, $sourceWeightMeasure, $toWeightMeasure)
+    {
+        if ($value) {
+            $locale = Mage::app()->getLocale()->getLocale();
+            $unitWeight = new Zend_Measure_Weight($value, $sourceWeightMeasure, $locale);
+            $unitWeight->setType($toWeightMeasure);
+            return $unitWeight->getValue();
+        }
+        return null;
+    }
+
+    /**
+     * Convert dimensions in different measure types
+     *
+     * @param  mixed $value
+     * @param  string $sourceDimensionMeasure
+     * @param  string $toDimensionMeasure
+     * @return int|null|string
+     */
+    public function convertMeasureDimension($value, $sourceDimensionMeasure, $toDimensionMeasure)
+    {
+        if ($value) {
+            $locale = Mage::app()->getLocale()->getLocale();
+            $unitDimension = new Zend_Measure_Length($value, $sourceDimensionMeasure, $locale);
+            $unitDimension->setType($toDimensionMeasure);
+            return $unitDimension->getValue();
+        }
+        return null;
+    }
+
+    /**
+     * Get name of measure by its type
+     *
+     * @param  $key
+     * @return string
+     */
+    public function getMeasureWeightName($key)
+    {
+        $weight = new Zend_Measure_Weight(0);
+        $conversionList = $weight->getConversionList();
+        if (!empty($conversionList[$key]) && !empty($conversionList[$key][1])) {
+            return $conversionList[$key][1];
+        }
+        return '';
+    }
+
+    /**
+     * Get name of measure by its type
+     *
+     * @param  $key
+     * @return string
+     */
+    public function getMeasureDimensionName($key)
+    {
+        $weight = new Zend_Measure_Length(0);
+        $conversionList = $weight->getConversionList();
+        if (!empty($conversionList[$key]) && !empty($conversionList[$key][1])) {
+            return $conversionList[$key][1];
+        }
+        return '';
+    }
 
+    /**
+     * Define if we need girth parameter in the package window
+     *
+     * @param string $shippingMethod
+     * @return bool
+     */
+    public function displayGirthValue($shippingMethod)
+    {
+        if (in_array($shippingMethod, array(
+            'usps_Priority Mail International',
+            'usps_Priority Mail International Small Flat Rate Box',
+            'usps_Priority Mail International Medium Flat Rate Box',
+            'usps_Priority Mail International Large Flat Rate Box',
+            'usps_Priority Mail International Flat Rate Envelope',
+            'usps_Express Mail International Flat Rate Envelope',
+            'usps_Express Mail Hold For Pickup',
+            'usps_Express Mail International',
+            'usps_First-Class Mail International Package',
+            'usps_First-Class Mail International Parcel',
+            'usps_First-Class Mail International Large Envelope',
+            'usps_First-Class Mail International',
+            'usps_Global Express Guaranteed (GXG)',
+            'usps_USPS GXG Envelopes',
+            'usps_Global Express Guaranteed Non-Document Non-Rectangular',
+            'usps_Media Mail',
+            'usps_Parcel Post',
+            'usps_Express Mail',
+            'usps_Priority Mail'
+        ))) {
+            return true;
+        } else {
+            return false;
+        }
+    }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract.php
index 5935aae..7a7cc8f 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
@@ -39,6 +39,35 @@ abstract class Mage_Usa_Model_Shipping_Carrier_Abstract extends Mage_Shipping_Mo
 
     protected static $_quotesCache = array();
 
+    /**
+     * Flag for check carriers for activity
+     *
+     * @var string
+     */
+    protected $_activeFlag = 'active';
+
+    /**
+     * Set flag for check carriers for activity
+     *
+     * @param string $code
+     * @return Mage_Usa_Model_Shipping_Carrier_Abstract
+     */
+    public function setActiveFlag($code = 'active')
+    {
+        $this->_activeFlag = $code;
+        return $this;
+    }
+
+    /**
+     * Return code of carrier
+     *
+     * @return string
+     */
+    public function getCarrierCode()
+    {
+        return isset($this->_code) ? $this->_code : null;
+    }
+
     public function getTrackingInfo($tracking)
     {
         $info = array();
@@ -68,18 +97,76 @@ abstract class Mage_Usa_Model_Shipping_Carrier_Abstract extends Mage_Shipping_Mo
         return true;
     }
 
+    /**
+     * Check if city option required
+     *
+     * @return boolean
+     */
     public function isCityRequired()
     {
         return true;
     }
 
-    public function isZipCodeRequired()
+    /**
+     * Determine whether zip-code is required for the country of destination
+     *
+     * @param string|null $countryId
+     * @return bool
+     */
+    public function isZipCodeRequired($countryId = null)
     {
+        if ($countryId != null) {
+            return !Mage::helper('directory')->isZipCodeOptional($countryId);
+        }
         return true;
     }
 
     /**
-     * Processing additional validation to check is carrier applicable.
+     * Check if carrier has shipping label option available
+     *
+     * @return boolean
+     */
+    public function isShippingLabelsAvailable()
+    {
+        return true;
+    }
+
+    /**
+     * 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)
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return array
+     */
+    public function getAllItems(Mage_Shipping_Model_Rate_Request $request)
+    {
+        $items = array();
+        if ($request->getAllItems()) {
+            foreach ($request->getAllItems() as $item) {
+                /* @var $item Mage_Sales_Model_Quote_Item */
+                if ($item->getProduct()->isVirtual() || $item->getParentItem()) {
+                    // Don't process children here - we will process (or already have processed) them below
+                    continue;
+                }
+
+                if ($item->getHasChildren() && $item->isShipSeparately()) {
+                    foreach ($item->getChildren() as $child) {
+                        if (!$child->getFreeShipping() && !$child->getProduct()->isVirtual()) {
+                            $items[] = $child;
+                        }
+                    }
+                } else {
+                    // Ship together - count compound item as one solid
+                    $items[] = $item;
+                }
+            }
+        }
+        return $items;
+    }
+
+    /**
+     * Processing additional validation to check if carrier applicable.
      *
      * @param Mage_Shipping_Model_Rate_Request $request
      * @return Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
@@ -87,26 +174,40 @@ abstract class Mage_Usa_Model_Shipping_Carrier_Abstract extends Mage_Shipping_Mo
     public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
     {
         //Skip by item validation if there is no items in request
-        if(!count($request->getAllItems())) {
+        if(!count($this->getAllItems($request))) {
             return $this;
         }
 
-        $maxAllowedWeight = (float) $this->getConfigData('max_package_weight');
-        $errorMsg = '';
-        $configErrorMsg = $this->getConfigData('specificerrmsg');
-        $defaultErrorMsg = Mage::helper('shipping')->__('The shipping module is not available.');
-        $showMethod = $this->getConfigData('showmethod');
+        $maxAllowedWeight   = (float) $this->getConfigData('max_package_weight');
+        $errorMsg           = '';
+        $configErrorMsg     = $this->getConfigData('specificerrmsg');
+        $defaultErrorMsg    = Mage::helper('shipping')->__('The shipping module is not available.');
+        $showMethod         = $this->getConfigData('showmethod');
 
-        foreach ($request->getAllItems() as $item) {
+        foreach ($this->getAllItems($request) as $item) {
             if ($item->getProduct() && $item->getProduct()->getId()) {
-                if ($item->getProduct()->getWeight() > $maxAllowedWeight) {
+                $weight         = $item->getProduct()->getWeight();
+                $stockItem      = $item->getProduct()->getStockItem();
+                $doValidation   = true;
+
+                if ($stockItem->getIsQtyDecimal() && $stockItem->getIsDecimalDivided()) {
+                    if ($stockItem->getEnableQtyIncrements() && $stockItem->getQtyIncrements()) {
+                        $weight = $weight * $stockItem->getQtyIncrements();
+                    } else {
+                        $doValidation = false;
+                    }
+                } elseif ($stockItem->getIsQtyDecimal() && !$stockItem->getIsDecimalDivided()) {
+                    $weight = $weight * $item->getQty();
+                }
+
+                if ($doValidation && $weight > $maxAllowedWeight) {
                     $errorMsg = ($configErrorMsg) ? $configErrorMsg : $defaultErrorMsg;
                     break;
                 }
             }
         }
 
-        if (!$errorMsg && !$request->getDestPostcode() && $this->isZipCodeRequired()) {
+        if (!$errorMsg && !$request->getDestPostcode() && $this->isZipCodeRequired($request->getDestCountryId())) {
             $errorMsg = Mage::helper('shipping')->__('This shipping method is not available, please specify ZIP-code');
         }
 
@@ -131,7 +232,11 @@ abstract class Mage_Usa_Model_Shipping_Carrier_Abstract extends Mage_Shipping_Mo
     protected function _getQuotesCacheKey($requestParams)
     {
         if (is_array($requestParams)) {
-            $requestParams = implode(',', array_merge(array($this->getCarrierCode()), array_keys($requestParams), $requestParams));
+            $requestParams = implode(',', array_merge(
+                array($this->getCarrierCode()),
+                array_keys($requestParams),
+                $requestParams)
+            );
         }
         return crc32($requestParams);
     }
@@ -164,4 +269,185 @@ abstract class Mage_Usa_Model_Shipping_Carrier_Abstract extends Mage_Shipping_Mo
         self::$_quotesCache[$key] = $response;
         return $this;
     }
+
+    /**
+     * Prepare service name. Strip tags and entities from name
+     *
+     * @param string|object $name  service name or object with implemented __toString() method
+     * @return string              prepared service name
+     */
+    protected function _prepareServiceName($name)
+    {
+        $name = html_entity_decode((string)$name);
+        $name = strip_tags(preg_replace('#&\w+;#', '', $name));
+        return trim($name);
+    }
+
+    /**
+     * Prepare shipment request.
+     * Validate and correct request information
+     *
+     * @param Varien_Object $request
+     *
+     */
+    protected function _prepareShipmentRequest(Varien_Object $request)
+    {
+        $phonePattern = '/[\s\_\-\(\)]+/';
+        $phoneNumber = $request->getShipperContactPhoneNumber();
+        $phoneNumber = preg_replace($phonePattern, '', $phoneNumber);
+        $request->setShipperContactPhoneNumber($phoneNumber);
+        $phoneNumber = $request->getRecipientContactPhoneNumber();
+        $phoneNumber = preg_replace($phonePattern, '', $phoneNumber);
+        $request->setRecipientContactPhoneNumber($phoneNumber);
+    }
+
+    /**
+     * Do request to shipment
+     *
+     * @param Mage_Shipping_Model_Shipment_Request $request
+     * @return array
+     */
+    public function requestToShipment(Mage_Shipping_Model_Shipment_Request $request)
+    {
+        $packages = $request->getPackages();
+        if (!is_array($packages) || !$packages) {
+            Mage::throwException(Mage::helper('usa')->__('No packages for request'));
+        }
+        if ($request->getStoreId() != null) {
+            $this->setStore($request->getStoreId());
+        }
+        $data = array();
+        foreach ($packages as $packageId => $package) {
+            $request->setPackageId($packageId);
+            $request->setPackagingType($package['params']['container']);
+            $request->setPackageWeight($package['params']['weight']);
+            $request->setPackageParams(new Varien_Object($package['params']));
+            $request->setPackageItems($package['items']);
+            $result = $this->_doShipmentRequest($request);
+
+            if ($result->hasErrors()) {
+                $this->rollBack($data);
+                break;
+            } else {
+                $data[] = array(
+                    'tracking_number' => $result->getTrackingNumber(),
+                    'label_content'   => $result->getShippingLabelContent()
+                );
+            }
+            if (!isset($isFirstRequest)) {
+                $request->setMasterTrackingId($result->getTrackingNumber());
+                $isFirstRequest = false;
+            }
+        }
+
+        $response = new Varien_Object(array(
+            'info'   => $data
+        ));
+        if ($result->getErrors()) {
+            $response->setErrors($result->getErrors());
+        }
+        return $response;
+    }
+
+    /**
+     * Do request to RMA shipment
+     *
+     * @param $request
+     * @return array
+     */
+    public function returnOfShipment($request)
+    {
+        $request->setIsReturn(true);
+        $packages = $request->getPackages();
+        if (!is_array($packages) || !$packages) {
+            Mage::throwException(Mage::helper('usa')->__('No packages for request'));
+        }
+        if ($request->getStoreId() != null) {
+            $this->setStore($request->getStoreId());
+        }
+        $data = array();
+        foreach ($packages as $packageId => $package) {
+            $request->setPackageId($packageId);
+            $request->setPackagingType($package['params']['container']);
+            $request->setPackageWeight($package['params']['weight']);
+            $request->setPackageParams(new Varien_Object($package['params']));
+            $request->setPackageItems($package['items']);
+            $result = $this->_doShipmentRequest($request);
+
+            if ($result->hasErrors()) {
+                $this->rollBack($data);
+                break;
+            } else {
+                $data[] = array(
+                    'tracking_number' => $result->getTrackingNumber(),
+                    'label_content'   => $result->getShippingLabelContent()
+                );
+            }
+            if (!isset($isFirstRequest)) {
+                $request->setMasterTrackingId($result->getTrackingNumber());
+                $isFirstRequest = false;
+            }
+        }
+
+        $response = new Varien_Object(array(
+            'info'   => $data
+        ));
+        if ($result->getErrors()) {
+            $response->setErrors($result->getErrors());
+        }
+        return $response;
+    }
+
+    /**
+     * For multi package shipments. Delete requested shipments if the current shipment
+     * request is failed
+     *
+     * @todo implement rollback logic
+     * @param array $data
+     * @return bool
+     */
+    public function rollBack($data)
+    {
+        return true;
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    abstract protected function _doShipmentRequest(Varien_Object $request);
+
+    /**
+     * Check is Country U.S. Possessions and Trust Territories
+     *
+     * @param string $countyId
+     * @return boolean
+     */
+    protected function _isUSCountry($countyId)
+    {
+        switch ($countyId) {
+            case 'AS': // Samoa American
+            case 'GU': // Guam
+            case 'MP': // Northern Mariana Islands
+            case 'PW': // Palau
+            case 'PR': // Puerto Rico
+            case 'VI': // Virgin Islands US
+            case 'US'; // United States
+                return true;
+        }
+
+        return false;
+    }
+
+    /**
+     * Check whether girth is allowed for the carrier
+     *
+     * @param null|string $countyDest
+     * @return bool
+     */
+    public function isGirthAllowed($countyDest = null) {
+        return false;
+    }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Mode.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Mode.php
new file mode 100644
index 0000000..18b97b9
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Mode.php
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Shippers Modesource model
+ *
+ * @category Mage
+ * @package Mage_Usa
+ * @author Magento Core Team <core@magentocommerce.com>
+ */
+
+class Mage_Usa_Model_Shipping_Carrier_Abstract_Source_Mode
+{
+    /**
+     * Returns array to be used in packages request type on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        return array(
+            array('value' => '0', 'label' => Mage::helper('usa')->__('Development')),
+            array('value' => '1', 'label' => Mage::helper('usa')->__('Live')),
+        );
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Requesttype.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Requesttype.php
new file mode 100644
index 0000000..ce5bd74
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Abstract/Source/Requesttype.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for Shippers Request Type
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Abstract_Source_Requesttype
+{
+    /**
+     * Returns array to be used in packages request type on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        return array(
+            array('value' => 0, 'label' => Mage::helper('shipping')->__('Divide to equal weight (one request)')),
+            array('value' => 1, 'label' => Mage::helper('shipping')->__('Use origin weight (few requests)')),
+        );
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php
index 0186fad..1612648 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl.php
@@ -20,13 +20,13 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
 
 /**
- * DHL shipping rates estimation
+ * DHL shipping implementation
  *
  * @category   Mage
  * @package    Mage_Usa
@@ -37,19 +37,71 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
     implements Mage_Shipping_Model_Carrier_Interface
 {
 
-    protected $_code = 'dhl';
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    const CODE = 'dhl';
+
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    protected $_code = self::CODE;
 
+    /**
+     * Rate request data
+     *
+     * @var Mage_Shipping_Model_Rate_Request|null
+     */
     protected $_request = null;
 
+    /**
+     * Raw rate request data
+     *
+     * @var Varien_Object|null
+     */
+    protected $_rawRequest = null;
+
+    /**
+     * Rate result data
+     *
+     * @var Mage_Shipping_Model_Rate_Result|null
+     */
     protected $_result = null;
 
+    /**
+     * Errors placeholder
+     *
+     * @var array
+     */
     protected $_errors = array();
 
+    /**
+     * Dhl rates result
+     *
+     * @var array
+     */
     protected $_dhlRates = array();
 
+    /**
+     * Default gateway url
+     *
+     * @var string
+     */
     protected $_defaultGatewayUrl = 'https://eCommerce.airborne.com/ApiLandingTest.asp';
 
+    /**
+     * Container types that could be customized
+     *
+     * @var array
+     */
+    protected $_customizableContainerTypes = array('P');
+
     const SUCCESS_CODE = 203;
+    const SUCCESS_LABEL_CODE = 100;
 
     const ADDITIONAL_PROTECTION_ASSET = 'AP';
     const ADDITIONAL_PROTECTION_NOT_REQUIRED = 'NR';
@@ -62,28 +114,87 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
     const ADDITIONAL_PROTECTION_ROUNDING_CEIL = 1;
     const ADDITIONAL_PROTECTION_ROUNDING_ROUND = 2;
 
-
+    /**
+     * Collect and get rates
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return bool|Mage_Shipping_Model_Rate_Result|null
+     */
     public function collectRates(Mage_Shipping_Model_Rate_Request $request)
     {
-        if (!$this->getConfigFlag('active')) {
+        if (!$this->getConfigFlag($this->_activeFlag)) {
             return false;
         }
 
-        $this->setRequest($request);
+        $requestDhl = clone $request;
+        $origCompanyName = $requestDhl->getOrigCompanyName();
+        if (!$origCompanyName) {
+            $origCompanyName = Mage::getStoreConfig(
+                Mage_Core_Model_Store::XML_PATH_STORE_STORE_NAME,
+                $requestDhl->getStoreId()
+            );
+        }
 
-        $this->_result = $this->_getQuotes();
+        $origCountryId = $requestDhl->getOrigCountryId();
+        if (!$origCountryId) {
+            $origCountryId = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $requestDhl->getStoreId()
+            );
+        }
+        $origState = $requestDhl->getOrigState();
+        if (!$origState) {
+            $origState = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_REGION_ID,
+                $requestDhl->getStoreId()
+            );
+        }
+        $origCity = $requestDhl->getOrigCity();
+        if (!$origCity) {
+            $origCity = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_CITY,
+                $requestDhl->getStoreId()
+            );
+        }
 
+        $origPostcode = $requestDhl->getOrigPostcode();
+        if (!$origPostcode) {
+            $origPostcode = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_ZIP,
+                $requestDhl->getStoreId()
+            );
+        }
+        $requestDhl->setOrigCompanyName($origCompanyName)
+            ->setCountryId($origCountryId)
+            ->setOrigState($origState)
+            ->setOrigCity($origCity)
+            ->setOrigPostal($origPostcode);
+        $this->setRequest($requestDhl);
+        $this->_result = $this->_getQuotes();
         $this->_updateFreeMethodQuote($request);
 
         return $this->getResult();
     }
 
-    public function setRequest(Mage_Shipping_Model_Rate_Request $request)
+    /**
+     * Prepare and set request in property of current instance
+     *
+     * @param Varien_Object $request
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl
+     */
+    public function setRequest(Varien_Object $request)
     {
         $this->_request = $request;
 
         $r = new Varien_Object();
 
+        if ($request->getAction() == 'GenerateLabel') {
+            $r->setAction('GenerateLabel');
+        } else {
+            $r->setAction('RateEstimate');
+        }
+        $r->setIsGenerateLabelReturn($request->getIsGenerateLabelReturn());
+
         $r->setStoreId($request->getStoreId());
 
         if ($request->getLimitMethod()) {
@@ -132,24 +243,24 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         }
         $r->setShipmentType($shipmentType);
 
-        if($request->getDhlDutiable()){
+        if ($request->getDhlDutiable()) {
             $shipmentDutible = $request->getDhlDutiable();
-        }else{
+        } else {
             $shipmentDutible = $this->getConfigData('dutiable');
         }
         $r->setDutiable($shipmentDutible);
 
-        if($request->getDhlDutyPaymentType()){
+        if ($request->getDhlDutyPaymentType()) {
             $dutypaytype = $request->getDhlDutyPaymentType();
-        }else{
-          $dutypaytype = $this->getConfigData('dutypaymenttype');
+        } else {
+            $dutypaytype = $this->getConfigData('dutypaymenttype');
         }
         $r->setDutyPaymentType($dutypaytype);
 
-        if($request->getDhlContentDesc()){
-           $contentdesc = $request->getDhlContentDesc();
-        }else{
-          $contentdesc = $this->getConfigData('contentdesc');
+        if ($request->getDhlContentDesc()) {
+            $contentdesc = $request->getDhlContentDesc();
+        } else {
+            $contentdesc = $this->getConfigData('contentdesc');
         }
         $r->setContentDesc($contentdesc);
 
@@ -160,20 +271,89 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         if ($request->getOrigCountry()) {
             $origCountry = $request->getOrigCountry();
         } else {
-            $origCountry = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_COUNTRY_ID, $this->getStore());
+            $origCountry = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $r->getStoreId()
+            );
         }
         $r->setOrigCountry($origCountry);
 
-        /*
-        * DHL only accepts weight as a whole number. Maximum length is 3 digits.
-        */
-        $weight = $this->getTotalNumOfBoxes($request->getPackageWeight());
-        $shippingWeight = round(max(1, $weight),0);
+        if ($request->getOrigCountryId()) {
+            $origCountryId = $request->getOrigCountryId();
+        } else {
+            $origCountryId = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $r->getStoreId()
+            );
+        }
+        $r->setOrigCountryId($origCountryId);
+
+        if ($request->getAction() == 'GenerateLabel') {
+            $packageParams = $request->getPackageParams();
+            $shippingWeight = $request->getPackageWeight();
+            if ($packageParams->getWeightUnits() != Zend_Measure_Weight::POUND) {
+                $shippingWeight = round(Mage::helper('usa')->convertMeasureWeight(
+                    $request->getPackageWeight(),
+                    $packageParams->getWeightUnits(),
+                    Zend_Measure_Weight::POUND
+                ));
+            }
+            if ($packageParams->getDimensionUnits() != Zend_Measure_Length::INCH) {
+                $packageParams->setLength(round(Mage::helper('usa')->convertMeasureDimension(
+                    $packageParams->getLength(),
+                    $packageParams->getDimensionUnits(),
+                    Zend_Measure_Length::INCH
+                )));
+                $packageParams->setWidth(round(Mage::helper('usa')->convertMeasureDimension(
+                    $packageParams->getWidth(),
+                    $packageParams->getDimensionUnits(),
+                    Zend_Measure_Length::INCH
+                )));
+                $packageParams->setHeight(round(Mage::helper('usa')->convertMeasureDimension(
+                    $packageParams->getHeight(),
+                    $packageParams->getDimensionUnits(),
+                    Zend_Measure_Length::INCH
+                )));
+            }
+            $r->setPackageParams($packageParams);
+        } else {
+            /*
+            * DHL only accepts weight as a whole number. Maximum length is 3 digits.
+            */
+            $shippingWeight = $request->getPackageWeight();
+            if ($shipmentType != 'L') {
+                $weight = $this->getTotalNumOfBoxes($shippingWeight);
+                $shippingWeight = round(max(1, $weight), 0);
+            }
+        }
 
-        $r->setValue(round($request->getPackageValue(),2));
+        $r->setValue(round($request->getPackageValue(), 2));
         $r->setValueWithDiscount($request->getPackageValueWithDiscount());
-        $r->setDestStreet(Mage::helper('core/string')->substr($request->getDestStreet(), 0, 35));
+        $r->setCustomsValue($request->getPackageCustomsValue());
+        $r->setDestStreet(Mage::helper('core/string')->substr(str_replace("\n", '', $request->getDestStreet()), 0, 35));
+        $r->setDestStreetLine2($request->getDestStreetLine2());
         $r->setDestCity($request->getDestCity());
+        $r->setOrigCompanyName($request->getOrigCompanyName());
+        $r->setOrigCity($request->getOrigCity());
+        $r->setOrigPhoneNumber($request->getOrigPhoneNumber());
+        $r->setOrigPersonName($request->getOrigPersonName());
+        $r->setOrigEmail(Mage::getStoreConfig('trans_email/ident_general/email', $r->getStoreId()));
+        $r->setOrigCity($request->getOrigCity());
+        $r->setOrigPostal($request->getOrigPostal());
+        $originStreet1 = Mage::getStoreConfig(Mage_Shipping_Model_Shipping::XML_PATH_STORE_ADDRESS1,$r->getStoreId());
+        $originStreet2 = Mage::getStoreConfig(Mage_Shipping_Model_Shipping::XML_PATH_STORE_ADDRESS2, $r->getStoreId());
+        $r->setOrigStreet($request->getOrigStreet() ? $request->getOrigStreet() : $originStreet2);
+        $r->setOrigStreetLine2($request->getOrigStreetLine2());
+        $r->setDestPhoneNumber($request->getDestPhoneNumber());
+        $r->setDestPersonName($request->getDestPersonName());
+        $r->setDestCompanyName($request->getDestCompanyName());
+
+
+        if (is_numeric($request->getOrigState())) {
+            $r->setOrigState(Mage::getModel('directory/region')->load($request->getOrigState())->getCode());
+        } else {
+            $r->setOrigState($request->getOrigState());
+        }
 
         if ($request->getDestCountryId()) {
             $destCountry = $request->getDestCountryId();
@@ -183,110 +363,74 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
 
         //for DHL, puero rico state for US will assume as puerto rico country
         //for puerto rico, dhl will ship as international
-        if ($destCountry==self::USA_COUNTRY_ID && ($request->getDestPostcode()=='00912' || $request->getDestRegionCode()==self::PUERTORICO_COUNTRY_ID)) {
+        if ($destCountry == self::USA_COUNTRY_ID && ($request->getDestPostcode() == '00912'
+                                                     || $request->getDestRegionCode() == self::PUERTORICO_COUNTRY_ID)
+        ) {
             $destCountry = self::PUERTORICO_COUNTRY_ID;
         }
 
         $r->setDestCountryId($destCountry);
-        $r->setDestState( $request->getDestRegionCode());
-
-       $r->setWeight($shippingWeight);
-       $r->setFreeMethodWeight($request->getFreeMethodWeight());
-       $this->_rawRequest = $r;
-//        $methods = explode(',', $this->getConfigData('allowed_methods'));
-//
-//        $freeMethod = $this->getConfigData('free_method');
-//
-//        $internationcode = $this->getCode('international_searvice');
-
-
-
-//        $minOrderAmount = $this->getConfigData('cutoff_cost') ? $this->getConfigData('cutoff_cost') : 0;
-//        if ($shippingWeight>0) {
-//             $this->_rawRequest->setWeight($shippingWeight);
-//             $this->_getQuotes();
-//            foreach ($methods as $method) {
-//                if(($method==$internationcode && ($r->getDestCountryId() != self::USA_COUNTRY_ID)) ||
-//                ($method!=$internationcode && ($r->getDestCountryId() == self::USA_COUNTRY_ID)))
-//                {
-//                    $weight = $freeMethod==$method && $this->getConfigData('cutoff_cost') <= $r->getValue() ? 0 : $shippingWeight;
-//                    if ($weight>0) {
-//                        $this->_rawRequest->setWeight($weight);
-//                	    $this->_rawRequest->setService($method);
-//                        $this->_getQuotes();
-//                    } else {
-//                        $this->_dhlRates[$method] = array(
-//                            'term' => $this->getCode('service', $method),
-//                            'price_total' => 0,
-//                        );
-//                    }
-//                }
-//            }
-//        } else {
-//           $this->_errors[] = Mage::helper('usa')->__('Please enter the package weight');
-//        }
+        $r->setDestState($request->getDestRegionCode());
+
+        $r->setWeight($shippingWeight);
+        $r->setFreeMethodWeight($request->getFreeMethodWeight());
+
+        $r->setOrderShipment($request->getOrderShipment());
+
+        if ($request->getPackageId()) {
+            $r->setPackageId($request->getPackageId());
+        }
+
+        $r->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
 
+        $this->_rawRequest = $r;
         return $this;
     }
 
+    /**
+     * Get result of request
+     *
+     * @return mixed
+     */
     public function getResult()
     {
         return $this->_result;
-//        $result = Mage::getModel('shipping/rate_result');
-//
-//        foreach ($this->_errors as $errorText) {
-//        	$error = Mage::getModel('shipping/rate_result_error');
-//            $error->setCarrier('dhl');
-//            $error->setCarrierTitle($this->getConfigData('title'));
-//            $error->setErrorMessage($errorText);
-//            $result->append($error);
-//        }
-//
-//        foreach($this->_dhlRates as $method => $data) {
-//            $rate = Mage::getModel('shipping/rate_result_method');
-//            $rate->setCarrier('dhl');
-//            $rate->setCarrierTitle($this->getConfigData('title'));
-//            $rate->setMethod($method);
-//            $rate->setMethodTitle($data['term']);
-//            $rate->setCost($data['price_total']);
-//            $rate->setPrice($data['price_total']);
-//            $result->append($rate);
-//        }
-//
-//       return $result;
     }
 
+    /**
+     * Get quotes
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getQuotes()
     {
         return $this->_getXmlQuotes();
     }
 
+    /**
+     * Set free method request
+     *
+     * @param  $freeMethod
+     * @return void
+     */
     protected function _setFreeMethodRequest($freeMethod)
     {
         $r = $this->_rawRequest;
 
         $r->setFreeMethodRequest(true);
         $weight = $this->getTotalNumOfBoxes($r->getFreeMethodWeight());
-        $freeWeight = round(max(1, $weight),0);
+        $freeWeight = round(max(1, $weight), 0);
         $r->setWeight($freeWeight);
         $r->setService($freeMethod);
     }
 
-//    protected function _getShipDate($includeSaturday=true)
-//    {
-//        $i = 0;
-//        $weekday = date('w');
-//        /*
-//        * need to omit saturday and sunday
-//        * dhl will not work on sunday
-//        * 0 (for Sunday) through 6 (for Saturday)
-//        */
-//        if (!$weekday || $weekday===0) $i += 1;
-//        elseif (!$includeSaturday && $weekday==6) $i += 2;
-//        return date('Y-m-d', strtotime("+$i day"));
-//    }
-
-    protected function _getShipDate($domestic=true)
+    /**
+     * Get shipping date
+     *
+     * @param bool $domestic
+     * @return string
+     */
+    protected function _getShipDate($domestic = true)
     {
         if ($domestic) {
             $days = explode(',', $this->getConfigData('shipment_days'));
@@ -298,9 +442,9 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
             return date('Y-m-d');
         }
 
-        $i=0;
+        $i = 0;
         $weekday = date('w');
-        while(!in_array($weekday, $days) && $i < 10) {
+        while (!in_array($weekday, $days) && $i < 10) {
             $i++;
             $weekday = date('w', strtotime("+$i day"));
         }
@@ -308,8 +452,23 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         return date('Y-m-d', strtotime("+$i day"));
     }
 
+    /**
+     * Get xml quotes
+     *
+     * @return Mage_Core_Model_Abstract|Varien_Object
+     */
     protected function _getXmlQuotes()
     {
+        return $this->_doRequest();
+    }
+
+    /**
+     * Do rate request and handle errors
+     *
+     * @return Mage_Shipping_Model_Rate_Result|Varien_Object
+     */
+    protected function _doRequest()
+    {
         $r = $this->_rawRequest;
 
         $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><eCommerce/>');
@@ -317,8 +476,8 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         $xml->addAttribute('version', '1.1');
 
         $requestor = $xml->addChild('Requestor');
-            $requestor->addChild('ID', $r->getId());
-            $requestor->addChild('Password', $r->getPassword());
+        $requestor->addChild('ID', $r->getId());
+        $requestor->addChild('Password', $r->getPassword());
 
         $methods = explode(',', $this->getConfigData('allowed_methods'));
         $internationcode = $this->getCode('international_searvice');
@@ -328,23 +487,28 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
 
         if ($r->hasService() && $r->getFreeMethodRequest()) {
             if ($r->getDestCountryId() == self::USA_COUNTRY_ID) {
-                 $shipment = $xml->addChild('Shipment');
-                 $shipKey=$r->getShippingKey();
-                 $r->setShipDate($shipDate);
+                $shipment = $xml->addChild('Shipment');
+                $shipKey = $r->getShippingKey();
+                $r->setShipDate($shipDate);
             } else {
-                 $shipment = $xml->addChild('IntlShipment');
-                 $shipKey=$r->getShippingIntlKey();
-                 $r->setShipDate($this->_getShipDate(false));
-                 /*
-                 * For internation shippingment customsvalue must be posted
-                 */
-                 $shippingDuty = $shipment->addChild('Dutiable');
-                    $shippingDuty->addChild('DutiableFlag',($r->getDutiable()?'Y':'N'));
-                    $shippingDuty->addChild('CustomsValue',$r->getValue());
+                $shipment = $xml->addChild('IntlShipment');
+                $shipKey = $r->getShippingIntlKey();
+                $r->setShipDate($this->_getShipDate(false));
+                /*
+                * For internation shippingment customsvalue must be posted
+                */
+                $shippingDuty = $shipment->addChild('Dutiable');
+                $shippingDuty->addChild('DutiableFlag', ($r->getDutiable() ? 'Y' : 'N'));
+                $shippingDuty->addChild('CustomsValue', $r->getValue());
+                $shippingDuty->addChild('IsSEDReqd', 'N');
             }
             $hasShipCode = true;
-            $this->_createShipmentXml($shipment,$shipKey);
+            $this->_createShipmentXml($shipment, $shipKey);
         } else {
+            if ($r->getAction() == 'GenerateLabel') {
+                $methods = array($r->getService());
+            }
+
             foreach ($methods as $method) {
                 $shipment = false;
                 if (in_array($method, array_keys($this->getCode('special_express')))) {
@@ -354,25 +518,32 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                     $r->setService($method);
                     $r->setExtendedService(null);
                 }
-                if ($r->getDestCountryId() == self::USA_COUNTRY_ID && $method!=$internationcode) {
+                if ($r->getDestCountryId() == self::USA_COUNTRY_ID && $method != $internationcode) {
                     $shipment = $xml->addChild('Shipment');
-                    $shipKey=$r->getShippingKey();
+                    $shipKey = $r->getShippingKey();
                     $r->setShipDate($shipDate);
-                }elseif($r->getDestCountryId() != self::USA_COUNTRY_ID && $method==$internationcode){
+                } elseif ($r->getDestCountryId() != self::USA_COUNTRY_ID && $method == $internationcode) {
                     $shipment = $xml->addChild('IntlShipment');
-                    $shipKey=$r->getShippingIntlKey();
+                    $shipKey = $r->getShippingIntlKey();
+                    if ($r->getCustomsValue() != null && $r->getCustomsValue() != '') {
+                        $customsValue =  $r->getCustomsValue();
+                    } else {
+                        $customsValue =  $r->getValue();
+                    }
+
                     $r->setShipDate($this->_getShipDate(false));
 
                     /*
                     * For internation shippingment customsvalue must be posted
                     */
                     $shippingDuty = $shipment->addChild('Dutiable');
-                        $shippingDuty->addChild('DutiableFlag',($r->getDutiable()?'Y':'N'));
-                        $shippingDuty->addChild('CustomsValue',$r->getValue());
+                    $shippingDuty->addChild('DutiableFlag', ($r->getDutiable() ? 'Y' : 'N'));
+                    $shippingDuty->addChild('CustomsValue', $customsValue);
+                    $shippingDuty->addChild('IsSEDReqd', 'N');
                 }
-                if ($shipment!==false) {
+                if ($shipment !== false) {
                     $hasShipCode = true;
-                    $this->_createShipmentXml($shipment,$shipKey);
+                    $this->_createShipmentXml($shipment, $shipKey);
                 }
             }
         }
@@ -383,6 +554,7 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         }
 
         $request = $xml->asXML();
+        $request = utf8_encode($request);
         $responseBody = $this->_getCachedQuotes($request);
         if ($responseBody === null) {
             $debugData = array('request' => $request);
@@ -398,7 +570,7 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
                 curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
                 $responseBody = curl_exec($ch);
-                curl_close ($ch);
+                curl_close($ch);
 
                 $debugData['result'] = $responseBody;
                 $this->_setCachedQuotes($request, $responseBody);
@@ -413,7 +585,14 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         return $this->_parseXmlResponse($responseBody);
     }
 
-    protected function _createShipmentXml($shipment,$shipKey)
+    /**
+     * Create shipment xml
+     *
+     * @param  $shipment
+     * @param  $shipKey
+     * @return void
+     */
+    protected function _createShipmentXml($shipment, $shipKey)
     {
         $r = $this->_rawRequest;
 
@@ -424,14 +603,21 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         $_subtotal = $r->getValue();
         $_subtotalWithDiscount = $r->getValueWithDiscount();
 
-        $_width = max(0, (double) $this->getConfigData('default_width'));
-        $_height = max(0, (double) $this->getConfigData('default_height'));
-        $_length = max(0, (double) $this->getConfigData('default_length'));
+        $_width = max(0, (double)$this->getConfigData('default_width'));
+        $_height = max(0, (double)$this->getConfigData('default_height'));
+        $_length = max(0, (double)$this->getConfigData('default_length'));
+
+        $packageParams = $r->getPackageParams();
+        if ($packageParams) {
+            $_length = $packageParams->getLength();
+            $_width = $packageParams->getWidth();
+            $_height = $packageParams->getHeight();
+        }
 
         $_apEnabled = $this->getConfigFlag('additional_protection_enabled');
         $_apUseSubtotal = $this->getConfigData('additional_protection_use_subtotal');
-        $_apConfigValue = max(0, (double) $this->getConfigData('additional_protection_value'));
-        $_apMinValue = max(0, (double) $this->getConfigData('additional_protection_min_value'));
+        $_apConfigValue = max(0, (double)$this->getConfigData('additional_protection_value'));
+        $_apMinValue = max(0, (double)$this->getConfigData('additional_protection_min_value'));
         $_apValueRounding = $this->getConfigData('additional_protection_rounding');
 
         $apValue = 0;
@@ -471,79 +657,122 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
             }
         }
 
-        $shipment->addAttribute('action', 'RateEstimate');
-            $shipment->addAttribute('version', '1.0');
+        if ($r->getAction() == 'GenerateLabel') {
+            $shipment->addAttribute('action', 'GenerateLabel');
+        } else {
+            $shipment->addAttribute('action', 'RateEstimate');
+        }
+        $shipment->addAttribute('version', '1.0');
 
         $shippingCredentials = $shipment->addChild('ShippingCredentials');
-            $shippingCredentials->addChild('ShippingKey',$shipKey);
-            $shippingCredentials->addChild('AccountNbr', $r->getAccountNbr());
+        $shippingCredentials->addChild('ShippingKey', $shipKey);
+        $shippingCredentials->addChild('AccountNbr', $r->getAccountNbr());
 
         $shipmentDetail = $shipment->addChild('ShipmentDetail');
-            $shipmentDetail->addChild('ShipDate', $r->getShipDate());
-            $shipmentDetail->addChild('Service')->addChild('Code', $r->getService());
-            $shipmentDetail->addChild('ShipmentType')->addChild('Code', $r->getShipmentType());
-            $shipmentDetail->addChild('Weight', $r->getWeight());
-            $shipmentDetail->addChild('ContentDesc', $r->getContentDesc());
-            $additionalProtection = $shipmentDetail->addChild('AdditionalProtection');
-                $additionalProtection->addChild('Code', $apCode);
-                $additionalProtection->addChild('Value', floor($apValue));
-
-            if ($_width && $_height && $_length) {
-                $dimensions = $shipmentDetail->addChild('Dimensions');
-                    $dimensions->addChild('Length', $_length);
-                    $dimensions->addChild('Width', $_width);
-                    $dimensions->addChild('Height', $_height);
+        if ($r->getAction() == 'GenerateLabel') {
+            if ($this->_request->getReferenceData()) {
+                $referenceData = $this->_request->getReferenceData() . $this->_request->getPackageId();
+            } else {
+                $referenceData = 'Order #'
+                                 . $r->getOrderShipment()->getOrder()->getIncrementId()
+                                 . ' P'
+                                 . $r->getPackageId();
             }
 
-            if ($_haz || ($r->getExtendedService())) {
-                $specialServices = $shipmentDetail->addChild('SpecialServices');
-            }
+            $shipmentDetail->addChild('ShipperReference', $referenceData);
+        }
+        $shipmentDetail->addChild('ShipDate', $r->getShipDate());
+        $shipmentDetail->addChild('Service')->addChild('Code', $r->getService());
+        $shipmentDetail->addChild('ShipmentType')->addChild('Code', $r->getShipmentType());
+        $shipmentDetail->addChild('Weight', $r->getWeight());
+        $shipmentDetail->addChild('ContentDesc', $r->getContentDesc());
+        $additionalProtection = $shipmentDetail->addChild('AdditionalProtection');
+        $additionalProtection->addChild('Code', $apCode);
+        $additionalProtection->addChild('Value', floor($apValue));
+
+        if ($_width || $_height || $_length) {
+            $dimensions = $shipmentDetail->addChild('Dimensions');
+            $dimensions->addChild('Length', $_length);
+            $dimensions->addChild('Width', $_width);
+            $dimensions->addChild('Height', $_height);
+        }
 
-            if ($_haz) {
-                $hazardousMaterials = $specialServices->addChild('SpecialService');
-                $hazardousMaterials->addChild('Code', 'HAZ');
-            }
+        if ($_haz || ($r->getExtendedService())) {
+            $specialServices = $shipmentDetail->addChild('SpecialServices');
+        }
 
-            if ($r->getExtendedService()) {
-                $extendedService = $specialServices->addChild('SpecialService');
-                $extendedService->addChild('Code', $r->getExtendedService());
-            }
+        if ($_haz) {
+            $hazardousMaterials = $specialServices->addChild('SpecialService');
+            $hazardousMaterials->addChild('Code', 'HAZ');
+        }
 
+        if ($r->getExtendedService()) {
+            $extendedService = $specialServices->addChild('SpecialService');
+            $extendedService->addChild('Code', $r->getExtendedService());
+        }
 
-         /*
-         * R = Receiver (if receiver, need AccountNbr)
-         * S = Sender
-         * 3 = Third Party (if third party, need AccountNbr)
-         */
-         $billing = $shipment->addChild('Billing');
-            $billing->addChild('Party')->addChild('Code', 'S');
-            $billing->addChild('DutyPaymentType',$r->getDutyPaymentType());
 
-            /*
-            $cod = $billing->addChild('CODPayment');
-                $cod->addChild('Code', 'P');
-                $cod->addChild('Value', 100);
-                */
+        /*
+        * R = Receiver (if receiver, need AccountNbr)
+        * S = Sender
+        * 3 = Third Party (if third party, need AccountNbr)
+        */
+        $billing = $shipment->addChild('Billing');
+        $billing->addChild('Party')->addChild('Code', $r->getIsGenerateLabelReturn() ? 'R' : 'S');
+        $billing->addChild('DutyPaymentType', $r->getDutyPaymentType());
+        if ($r->getIsGenerateLabelReturn()) {
+            $billing->addChild('AccountNbr', $r->getAccountNbr());
+        }
 
+        $sender = $shipment->addChild('Sender');
+        $sender->addChild('SentBy', ($r->getOrigPersonName()));
+        $sender->addChild('PhoneNbr', $r->getOrigPhoneNumber());
+        $sender->addChild('Email', $r->getOrigEmail());
 
-        $receiverAddress = $shipment->addChild('Receiver')->addChild('Address');
-            $receiverAddress->addChild('Street', htmlspecialchars($r->getDestStreet()?$r->getDestStreet():'NA'));
-            $receiverAddress->addChild('City', htmlspecialchars($r->getDestCity()));
-            $receiverAddress->addChild('State', htmlspecialchars($r->getDestState()));
-            /*
-            * DHL xml service is using UK for united kingdom instead of GB which is a standard ISO country code
-            */
-            $receiverAddress->addChild('Country', ($r->getDestCountryId()=='GB'?'UK':$r->getDestCountryId()));
-            $receiverAddress->addChild('PostalCode', $r->getDestPostal());
+        $senderAddress = $sender->addChild('Address');
+        $senderAddress->addChild('Street', htmlspecialchars($r->getOrigStreet() ? $r->getOrigStreet() : 'N/A'));
+        $senderAddress->addChild('City', htmlspecialchars($r->getOrigCity()));
+        $senderAddress->addChild('State', htmlspecialchars($r->getOrigState()));
+        $senderAddress->addChild('CompanyName', htmlspecialchars($r->getOrigCompanyName()));
         /*
-        $special_service=$this->getCode('special_service');
-        if(array_key_exists($r->getService(),$special_service)){
-             $specialService = $shipment->addChild('SpecialServices')->addChild('SpecialService');
-             $specialService->addChild('Code',$special_service[$r->getService()]);
-        }
+        * DHL xml service is using UK for united kingdom instead of GB which is a standard ISO country code
+        */
+        $senderAddress->addChild('Country', ($r->getOrigCountryId() == 'GB' ? 'UK' : $r->getOrigCountryId()));
+        $senderAddress->addChild('PostalCode', $r->getOrigPostal());
+
+        $receiver = $shipment->addChild('Receiver');
+        $receiver->addChild('AttnTo', $r->getDestPersonName());
+        $receiver->addChild('PhoneNbr', $r->getDestPhoneNumber());
+
+        $receiverAddress = $receiver->addChild('Address');
+        $receiverAddress->addChild('Street', htmlspecialchars($r->getDestStreet() ? $r->getDestStreet() : 'N/A'));
+        $receiverAddress->addChild('StreetLine2',
+                                   htmlspecialchars($r->getDestStreetLine2() ? $r->getDestStreetLine2() : 'N/A')
+        );
+        $receiverAddress->addChild('City', htmlspecialchars($r->getDestCity()));
+        $receiverAddress->addChild('State', htmlspecialchars($r->getDestState()));
+        $receiverAddress->addChild('CompanyName',
+                                   htmlspecialchars($r->getDestCompanyName() ? $r->getDestCompanyName() : 'N/A')
+        );
+
+        /*
+        * DHL xml service is using UK for united kingdom instead of GB which is a standard ISO country code
         */
+        $receiverAddress->addChild('Country', ($r->getDestCountryId() == 'GB' ? 'UK' : $r->getDestCountryId()));
+        $receiverAddress->addChild('PostalCode', $r->getDestPostal());
+
+        if ($r->getAction() == 'GenerateLabel') {
+            $label = $shipment->addChild('ShipmentProcessingInstructions')->addChild('Label');
+            $label->addChild('ImageType', 'PNG');
+        }
     }
 
+    /**
+     * Parse xml response and return result
+     *
+     * @param string $response
+     * @return Mage_Shipping_Model_Rate_Result|Varien_Object
+     */
     protected function _parseXmlResponse($response)
     {
         $r = $this->_rawRequest;
@@ -555,8 +784,8 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         unset($tr['<'], $tr['>'], $tr['"']);
         $response = str_replace(array_keys($tr), array_values($tr), $response);
 
-        if (strlen(trim($response))>0) {
-            if (strpos(trim($response), '<?xml')===0) {
+        if (strlen(trim($response)) > 0) {
+            if (strpos(trim($response), '<?xml') === 0) {
                 $xml = simplexml_load_string($response);
                 if (is_object($xml)) {
                     if (
@@ -565,7 +794,7 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                         && is_object($xml->Faults->Fault->Code)
                         && is_object($xml->Faults->Fault->Description)
                         && is_object($xml->Faults->Fault->Context)
-                       ) {
+                    ) {
                         $code = (string)$xml->Faults->Fault->Code;
                         $description = $xml->Faults->Fault->Description;
                         $context = $xml->Faults->Fault->Context;
@@ -573,17 +802,20 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                     } else {
                         if ($r->getDestCountryId() == self::USA_COUNTRY_ID) {
                             if ($xml->Shipment) {
-                                foreach($xml->Shipment  as $shipXml){
-                                   $this->_parseXmlObject($shipXml);
+                                foreach ($xml->Shipment as $shipXml) {
+                                    $this->_parseXmlObject($shipXml);
                                 }
                             } else {
-                              $this->_errors[] = Mage::helper('usa')->__('Shipment is not available.');
+                                $this->_errors[] = Mage::helper('usa')->__('Shipment is not available.');
                             }
                         } else {
                             $shipXml = $xml->IntlShipment;
                             $this->_parseXmlObject($shipXml);
                         }
-                        $shipXml=(($r->getDestCountryId() == self::USA_COUNTRY_ID)?$xml->Shipment:$xml->IntlShipment);
+                        $shipXml = (($r->getDestCountryId() == self::USA_COUNTRY_ID)
+                            ? $xml->Shipment
+                            : $xml->IntlShipment
+                        );
                     }
                 }
             } else {
@@ -591,214 +823,96 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
             }
         }
 
-        $result = Mage::getModel('shipping/rate_result');
-
-        foreach ($this->_errors as $errorText) {
-            $error = Mage::getModel('shipping/rate_result_error');
-            $error->setCarrier('dhl');
-            $error->setCarrierTitle($this->getConfigData('title'));
-            //$error->setErrorMessage($errorText);
-            $error->setErrorMessage($this->getConfigData('specificerrmsg'));
-            $result->append($error);
-        }
-
-        foreach($this->_dhlRates as $rate) {
-            $method = $rate['service'];
-            $data = $rate['data'];
-            $rate = Mage::getModel('shipping/rate_result_method');
-            $rate->setCarrier('dhl');
-            $rate->setCarrierTitle($this->getConfigData('title'));
-            $rate->setMethod($method);
-            $rate->setMethodTitle($data['term']);
-            $rate->setCost($data['price_total']);
-            $rate->setPrice($data['price_total']);
-            $result->append($rate);
+        if ($this->_rawRequest->getAction() == 'GenerateLabel') {
+            $result = new Varien_Object();
+            if (!empty($this->_errors)) {
+                $result->setErrors(implode($this->_errors, '; '));
+            } else {
+                if ($xml !== false) {
+                    if ($r->getDestCountryId() == self::USA_COUNTRY_ID) {
+                        $shippingLabelContent = base64_decode((string)$xml->Shipment->Label->Image);
+                        $trackingNumber = (string)$xml->Shipment->ShipmentDetail->AirbillNbr;
+                    } else {
+                        $shippingLabelContent = base64_decode((string)$xml->IntlShipment->Label->Image);
+                        $trackingNumber = (string)$xml->IntlShipment->ShipmentDetail->AirbillNbr;
+                    }
+                }
+                $result->setShippingLabelContent($shippingLabelContent);
+                $result->setTrackingNumber($trackingNumber);
+            }
+            return $result;
+        } else {
+            $result = Mage::getModel('shipping/rate_result');
+            if ($this->_dhlRates) {
+                foreach ($this->_dhlRates as $rate) {
+                    $method = $rate['service'];
+                    $data = $rate['data'];
+                    $rate = Mage::getModel('shipping/rate_result_method');
+                    $rate->setCarrier('dhl');
+                    $rate->setCarrierTitle($this->getConfigData('title'));
+                    $rate->setMethod($method);
+                    $rate->setMethodTitle($data['term']);
+                    $rate->setCost($data['price_total']);
+                    $rate->setPrice($data['price_total']);
+                    $result->append($rate);
+                }
+            } else if (!empty($this->_errors)) {
+                $error = Mage::getModel('shipping/rate_result_error');
+                $error->setCarrier('dhl');
+                $error->setCarrierTitle($this->getConfigData('title'));
+                $error->setErrorMessage($this->getConfigData('specificerrmsg'));
+                $result->append($error);
+            }
+            return $result;
         }
-       return $result;
-
     }
 
+    /**
+     * Parse xml object
+     *
+     * @param mixed $shipXml
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl
+     */
     protected function _parseXmlObject($shipXml)
     {
-        if(
+        if (
             is_object($shipXml->Faults)
             && is_object($shipXml->Faults->Fault)
             && is_object($shipXml->Faults->Fault->Desc)
             && intval($shipXml->Faults->Fault->Code) != self::SUCCESS_CODE
-           ) {
-               $code = (string)$shipXml->Faults->Fault->Code;
-               $description = $shipXml->Faults->Fault->Desc;
-               $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
-        } elseif(
+            && intval($shipXml->Faults->Fault->Code) != self::SUCCESS_LABEL_CODE
+        ) {
+            $code = (string)$shipXml->Faults->Fault->Code;
+            $description = $shipXml->Faults->Fault->Desc;
+            $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
+        } elseif (
             is_object($shipXml->Faults)
             && is_object($shipXml->Result->Code)
             && is_object($shipXml->Result->Desc)
             && intval($shipXml->Result->Code) != self::SUCCESS_CODE
-           ) {
-               $code = (string)$shipXml->Result->Code;
-               $description = $shipXml->Result->Desc;
-               $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
-        }else {
+            && intval($shipXml->Result->Code) != self::SUCCESS_LABEL_CODE
+        ) {
+            $code = (string)$shipXml->Result->Code;
+            $description = $shipXml->Result->Desc;
+            $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
+        } else {
             $this->_addRate($shipXml);
         }
         return $this;
     }
 
-//    protected function _getXmlQuotes()
-//    {
-//        $r = $this->_rawRequest;
-//
-//        $xml = new SimpleXMLElement('<eCommerce/>');
-//        $xml->addAttribute('action', 'Request');
-//        $xml->addAttribute('version', '1.1');
-//
-//        $requestor = $xml->addChild('Requestor');
-//            $requestor->addChild('ID', $r->getId());
-//            $requestor->addChild('Password', $r->getPassword());
-//
-//
-//        if ($r->getDestCountryId() == self::USA_COUNTRY_ID) {
-//            $shipment = $xml->addChild('Shipment');
-//            $shipKey=$r->getShippingKey();
-//        }else{
-//             $shipment = $xml->addChild('IntlShipment');
-//             $shipKey=$r->getShippingIntlKey();
-//
-//             /*
-//             * For internation shippingment customsvalue must be posted
-//             */
-//             $shippingDuty = $shipment->addChild('Dutiable');
-//                $shippingDuty->addChild('DutiableFlag',($r->getDutiable()?'Y':'N'));
-//                $shippingDuty->addChild('CustomsValue',$r->getValue());
-//        }
-//
-//            $shipment->addAttribute('action', 'RateEstimate');
-//            $shipment->addAttribute('version', '1.0');
-//
-//            $shippingCredentials = $shipment->addChild('ShippingCredentials');
-//                $shippingCredentials->addChild('ShippingKey',$shipKey);
-//                $shippingCredentials->addChild('AccountNbr', $r->getAccountNbr());
-//
-//            $shipmentDetail = $shipment->addChild('ShipmentDetail');
-//                $shipmentDetail->addChild('ShipDate', $this->_getShipDate());
-//                $shipmentDetail->addChild('Service')->addChild('Code', $r->getService());
-//                $shipmentDetail->addChild('ShipmentType')->addChild('Code', $r->getShipmentType());
-//                $shipmentDetail->addChild('Weight', $r->getWeight());
-//                $shipmentDetail->addChild('ContentDesc', $r->getContentDesc());
-//
-//             $billing = $shipment->addChild('Billing');
-//                $billing->addChild('Party')->addChild('Code', 'S');
-//                $billing->addChild('DutyPaymentType',$r->getDutyPaymentType());
-//
-//            $receiverAddress = $shipment->addChild('Receiver')->addChild('Address');
-//                $receiverAddress->addChild('Street', htmlspecialchars($r->getDestStreet()?$r->getDestStreet():'NA'));
-//                $receiverAddress->addChild('City', htmlspecialchars($r->getDestCity()));
-//                $receiverAddress->addChild('State', htmlspecialchars($r->getDestState()));
-//                /*
-//                * DHL xml service is using UK for united kingdom instead of GB which is a standard ISO country code
-//                */
-//                $receiverAddress->addChild('Country', ($r->getDestCountryId()=='GB'?'UK':$r->getDestCountryId()));
-//                $receiverAddress->addChild('PostalCode', $r->getDestPostal());
-//            /*
-//            $special_service=$this->getCode('special_service');
-//            if(array_key_exists($r->getService(),$special_service)){
-//                 $specialService = $shipment->addChild('SpecialServices')->addChild('SpecialService');
-//                 $specialService->addChild('Code',$special_service[$r->getService()]);
-//            }
-//            */
-//
-//
-//        $request = $xml->asXML();
-//
-//        try {
-//            $url = $this->getConfigData('gateway_url');
-//            if (!$url) {
-//                $url = $this->_defaultGatewayUrl;
-//            }
-//            $ch = curl_init();
-//            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-//            curl_setopt($ch, CURLOPT_URL, $url);
-//            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
-//            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
-//            curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
-//            $responseBody = curl_exec($ch);
-//            curl_close ($ch);
-//        } catch (Exception $e) {
-//            $responseBody = '';
-//        }
-//
-//        $this->_parseXmlResponse($responseBody);
-//    }
-
-//    protected function _parseXmlResponse($response)
-//    {
-//        $r = $this->_rawRequest;
-//        $costArr = array();
-//        $priceArr = array();
-//        $errorTitle = 'Unable to retrieve quotes';
-//
-//        $tr = get_html_translation_table(HTML_ENTITIES);
-//        unset($tr['<'], $tr['>'], $tr['"']);
-//        $response = str_replace(array_keys($tr), array_values($tr), $response);
-//
-//
-//        if (strlen(trim($response))>0) {
-//            if (strpos(trim($response), '<?xml')===0) {
-//                $xml = simplexml_load_string($response);
-//
-//
-//                /*echo "<pre>DEBUG:\n";
-//                print_r($xml);
-//                echo "</pre>";*/
-//
-//
-//                if (is_object($xml)) {
-//                    $shipXml=(($r->getDestCountryId() == self::USA_COUNTRY_ID)?$xml->Shipment:$xml->IntlShipment);
-//                    if (
-//                        is_object($xml->Faults)
-//                        && is_object($xml->Faults->Fault)
-//                        && is_object($xml->Faults->Fault->Code)
-//                        && is_object($xml->Faults->Fault->Description)
-//                        && is_object($xml->Faults->Fault->Context)
-//                       ) {
-//                        $code = (string)$xml->Faults->Fault->Code;
-//                        $description = $xml->Faults->Fault->Description;
-//                        $context = $xml->Faults->Fault->Context;
-//                        $this->_errors[$code] = Mage::helper('usa')->__('Error #%s : %s (%s)', $code, $description, $context);
-//                    } elseif(
-//                        is_object($shipXml->Faults)
-//                        && is_object($shipXml->Faults->Fault)
-//                        && is_object($shipXml->Faults->Fault->Desc)
-//                        && intval($shipXml->Faults->Fault->Code) != self::SUCCESS_CODE
-//                       ) {
-//                           $code = (string)$shipXml->Faults->Fault->Code;
-//                           $description = $shipXml->Faults->Fault->Desc;
-//                           $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
-//                    } elseif(
-//                        is_object($shipXml->Faults)
-//                        && is_object($shipXml->Result->Code)
-//                        && is_object($shipXml->Result->Desc)
-//                        && intval($shipXml->Result->Code) != self::SUCCESS_CODE
-//                       ) {
-//                           $code = (string)$shipXml->Result->Code;
-//                           $description = $shipXml->Result->Desc;
-//                           $this->_errors[$code] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
-//                    }else {
-//                        $this->_addRate($xml);
-//                        return $this;
-//                    }
-//                }
-//            } else {
-//                $this->_errors[] = Mage::helper('usa')->__('Response is in the wrong format');
-//            }
-//        }
-//    }
-
-    public function getCode($type, $code='')
+    /**
+     * Get configuration data of carrier
+     *
+     * @param string $type
+     * @param string $code
+     * @return array|bool
+     */
+    public function getCode($type, $code = '')
     {
         static $codes;
         $codes = array(
-            'service'=>array(
+            'service' => array(
                 'IE' => Mage::helper('usa')->__('International Express'),
                 'E SAT' => Mage::helper('usa')->__('Express Saturday'),
                 'E 10:30AM' => Mage::helper('usa')->__('Express 10:30 AM'),
@@ -807,111 +921,103 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                 'S' => Mage::helper('usa')->__('Second Day Service'),
                 'G' => Mage::helper('usa')->__('Ground'),
             ),
-            'shipment_type'=>array(
+            'shipment_type' => array(
                 'L' => Mage::helper('usa')->__('Letter'),
                 'P' => Mage::helper('usa')->__('Package'),
             ),
-            'international_searvice'=>'IE',
-            /*
-            'special_service'=>array(
-                'E SAT'=>'SAT',
-                'E 10:30AM'=>'1030',
-            ),
-            */
-           'dutypayment_type'=>array(
+            'international_searvice' => 'IE',
+            'dutypayment_type' => array(
                 'S' => Mage::helper('usa')->__('Sender'),
                 'R' => Mage::helper('usa')->__('Receiver'),
                 '3' => Mage::helper('usa')->__('Third Party'),
-           ),
+            ),
 
-           'special_express'=>array(
-                'E SAT'=>'SAT',
-                'E 10:30AM'=>'1030',
-           ),
+            'special_express' => array(
+                'E SAT' => 'SAT',
+                'E 10:30AM' => '1030',
+            ),
 
-           'descr_to_service'=>array(
-                'E SAT'=>'Saturday',
-                'E 10:30AM'=>'10:30 A.M',
-           ),
+            'descr_to_service' => array(
+                'E SAT' => 'Saturday',
+                'E 10:30AM' => '10:30 A.M',
+            ),
 
         );
 
 
-
         if (!isset($codes[$type])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid DHL XML code type: %s.', $type));
             return false;
-        } elseif (''===$code) {
+        } elseif ('' === $code) {
             return $codes[$type];
         }
 
         if (!isset($codes[$type][$code])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid DHL XML code for type %s: %s.', $type, $code));
             return false;
         } else {
             return $codes[$type][$code];
         }
     }
 
-//    protected function _addRate($xml)
-//    {
-//        $r = $this->_rawRequest;
-//        $services=$this->getCode('service');
-//        $shipXml=(($r->getDestCountryId() == self::USA_COUNTRY_ID)?$xml->Shipment:$xml->IntlShipment);
-//        $desc=(string)$shipXml->EstimateDetail->ServiceLevelCommitment->Desc;
-//        $totalEstimate=(string)$shipXml->EstimateDetail->RateEstimate->TotalChargeEstimate;
-//        /*
-//        * DHL can return with empty result and success code
-//        * we need to make sure there is shipping estimate and code
-//        */
-//        if($desc && $totalEstimate){
-//            $service = (string)$shipXml->EstimateDetail->Service->Code;
-//            $data['term'] = (isset($services[$service])?$services[$service]:$desc);
-//            $data['price_total'] = $totalEstimate;
-//            $this->_dhlRates[$service] = $data;
-//        }
-//    }
-
+    /**
+     * Parse xml and add rates to instance property
+     *
+     * @param mixed $shipXml
+     * @return void
+     */
     protected function _addRate($shipXml)
     {
         $r = $this->_rawRequest;
         $services = $this->getCode('service');
         $regexps = $this->getCode('descr_to_service');
-        $desc=(string)$shipXml->EstimateDetail->ServiceLevelCommitment->Desc;
-        $totalEstimate=(string)$shipXml->EstimateDetail->RateEstimate->TotalChargeEstimate;
+        $desc = ($shipXml->EstimateDetail) ? (string)$shipXml->EstimateDetail->ServiceLevelCommitment->Desc : null;
+
+        $totalEstimate = $shipXml->EstimateDetail
+                ? (string)$shipXml->EstimateDetail->RateEstimate->TotalChargeEstimate
+                : null;
         /*
         * DHL can return with empty result and success code
         * we need to make sure there is shipping estimate and code
         */
-        if($desc && $totalEstimate){
+        if ($desc && $totalEstimate) {
             $service = (string)$shipXml->EstimateDetail->Service->Code;
             $description = (string)$shipXml->EstimateDetail->ServiceLevelCommitment->Desc;
             if ($service == 'E') {
-                foreach ($regexps as $expService=>$exp) {
-                    if (preg_match('/'.preg_quote($exp, '/').'/', $description)) {
+                foreach ($regexps as $expService => $exp) {
+                    if (preg_match('/' . preg_quote($exp, '/') . '/', $description)) {
                         $service = $expService;
                     }
                 }
             }
 
-            $data['term'] = (isset($services[$service])?$services[$service]:$desc);
+            $data['term'] = (isset($services[$service]) ? $services[$service] : $desc);
             $data['price_total'] = $this->getMethodPrice($totalEstimate, $service);
-            $this->_dhlRates[] = array('service'=>$service, 'data'=>$data);
+            $this->_dhlRates[] = array('service' => $service, 'data' => $data);
         }
     }
 
+    /**
+     * Get tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     public function getTracking($trackings)
     {
         $this->setTrackingReqeust();
 
         if (!is_array($trackings)) {
-            $trackings=array($trackings);
+            $trackings = array($trackings);
         }
-       $this->_getXMLTracking($trackings);
+        $this->_getXMLTracking($trackings);
 
-       return $this->_result;
+        return $this->_result;
     }
 
+    /**
+     * Set tracking request
+     *
+     * @return null
+     */
     protected function setTrackingReqeust()
     {
         $r = new Varien_Object();
@@ -925,6 +1031,12 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         $this->_rawTrackRequest = $r;
     }
 
+    /**
+     * Send request for tracking
+     *
+     * @param array $tracking
+     * @return null
+     */
     protected function _getXMLTracking($trackings)
     {
         $r = $this->_rawTrackRequest;
@@ -934,34 +1046,23 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         $xml->addAttribute('version', '1.1');
 
         $requestor = $xml->addChild('Requestor');
-            $requestor->addChild('ID', $r->getId());
-            $requestor->addChild('Password', $r->getPassword());
-
-        $track=$xml->addChild('Track');
-            $track->addAttribute('action', 'Get');
-            $track->addAttribute('version', '1.0');
-
-            //shippment has not been delivered or no scans
-            //$track->addChild('Shipment')->addChild('TrackingNbr','1231230011');
-            //home shipment
-            //$track->addChild('Shipment')->addChild('TrackingNbr','2342340011');
-            //international shipment
-            //$track->addChild('Shipment')->addChild('TrackingNbr','5675670011');
-            //tracking not in airborme tracking tsystem
-            //$track->addChild('Shipment')->addChild('TrackingNbr','7897890011');
-            //tracking need to contanct customer service for more information
-            //$track->addChild('Shipment')->addChild('TrackingNbr','8198190011');
-
-            foreach($trackings as $tracking){
-               $track->addChild('Shipment')->addChild('TrackingNbr',$tracking);
-            }
-         $request = $xml->asXML();
-         $debugData = array('request' => $request);
-         /*
+        $requestor->addChild('ID', $r->getId());
+        $requestor->addChild('Password', $r->getPassword());
+
+        $track = $xml->addChild('Track');
+        $track->addAttribute('action', 'Get');
+        $track->addAttribute('version', '1.0');
+
+        foreach ($trackings as $tracking) {
+            $track->addChild('Shipment')->addChild('TrackingNbr', $tracking);
+        }
+        $request = $xml->asXML();
+        $debugData = array('request' => $request);
+        /*
          * tracking api cannot process from 3pm to 5pm PST time on Sunday
          * DHL Airborne conduts a maintainance during that period.
          */
-         try {
+        try {
             $url = $this->getConfigData('gateway_url');
             if (!$url) {
                 $url = $this->_defaultGatewayUrl;
@@ -974,140 +1075,149 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
             curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
             $responseBody = curl_exec($ch);
             $debugData['result'] = $responseBody;
-            curl_close ($ch);
-        }
-        catch (Exception $e) {
+            curl_close($ch);
+        } catch (Exception $e) {
             $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
             $responseBody = '';
         }
         $this->_debug($debugData);
-#echo "<xmp>".$responseBody."</xmp>";
         $this->_parseXmlTrackingResponse($trackings, $responseBody);
     }
 
+    /**
+     * Parse xml tracking response
+     *
+     * @param array $trackingvalue
+     * @param string $response
+     * @return null
+     */
     protected function _parseXmlTrackingResponse($trackings, $response)
     {
-         $errorTitle = 'Unable to retrieve tracking';
-         $resultArr=array();
-         $errorArr=array();
-         $trackingserror=array();
-         $tracknum='';
-         if (strlen(trim($response))>0) {
-            if (strpos(trim($response), '<?xml')===0) {
-                 $xml = simplexml_load_string($response);
-                 if (is_object($xml)) {
-                     $trackxml=$xml->Track;
-                      if (
+        $errorTitle = Mage::helper('usa')->__('Unable to retrieve tracking');
+        $resultArr = array();
+        $errorArr = array();
+        $trackingserror = array();
+        $tracknum = '';
+        if (strlen(trim($response)) > 0) {
+            if (strpos(trim($response), '<?xml') === 0) {
+                $xml = simplexml_load_string($response);
+                if (is_object($xml)) {
+                    $trackxml = $xml->Track;
+                    if (
                         is_object($xml->Faults)
                         && is_object($xml->Faults->Fault)
                         && is_object($xml->Faults->Fault->Code)
                         && is_object($xml->Faults->Fault->Description)
                         && is_object($xml->Faults->Fault->Context)
-                       ) {
+                    ) {
                         $code = (string)$xml->Faults->Fault->Code;
                         $description = $xml->Faults->Fault->Description;
                         $context = $xml->Faults->Fault->Context;
                         $errorTitle = Mage::helper('usa')->__('Error #%s : %s (%s)', $code, $description, $context);
-                    }elseif(is_object($trackxml) && is_object($trackxml->Shipment)){
-                        foreach($trackxml->Shipment as $txml){
-                         $rArr=array();
-
-                            if(is_object($txml)){
-                                $tracknum=(string)$txml->TrackingNbr;
-                                if($txml->Fault){
-                                     $code = (string)$txml->Fault->Code;
-                                     $description   = $txml->Fault->Description;
-                                     $errorArr[$tracknum] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
-                                }elseif($txml->Result){
+                    } elseif (is_object($trackxml) && is_object($trackxml->Shipment)) {
+                        foreach ($trackxml->Shipment as $txml) {
+                            $rArr = array();
+
+                            if (is_object($txml)) {
+                                $tracknum = (string)$txml->TrackingNbr;
+                                if ($txml->Fault) {
+                                    $code = (string)$txml->Fault->Code;
+                                    $description = $txml->Fault->Description;
+                                    $errorArr[$tracknum] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
+                                } elseif ($txml->Result) {
                                     $code = (int)$txml->Result->Code;
-                                    if($code===0){
-                                         /*
+                                    if ($code === 0) {
+                                        /*
                                         * Code 0== airbill  found
                                         */
-                                        $rArr['service']=(string)$txml->Service->Desc;
-                                        if(isset($txml->Weight))
-                                            $rArr['weight']=(string)$txml->Weight." lbs";
+                                        $rArr['service'] = (string)$txml->Service->Desc;
+                                        if (isset($txml->Weight))
+                                            $rArr['weight'] = (string)$txml->Weight . " lbs";
                                         if (isset($txml->Delivery)) {
                                             $rArr['deliverydate'] = (string)$txml->Delivery->Date;
-                                            $rArr['deliverytime'] = (string)$txml->Delivery->Time.':00';
+                                            $rArr['deliverytime'] = (string)$txml->Delivery->Time . ':00';
                                             $rArr['status'] = Mage::helper('usa')->__('Delivered');
                                             if (isset($txml->Delivery->Location->Desc)) {
                                                 $rArr['deliverylocation'] = (string)$txml->Delivery->Location->Desc;
                                             }
                                         } elseif (isset($txml->Pickup)) {
                                             $rArr['deliverydate'] = (string)$txml->Pickup->Date;
-                                            $rArr['deliverytime'] = (string)$txml->Pickup->Time.':00';
+                                            $rArr['deliverytime'] = (string)$txml->Pickup->Time . ':00';
                                             $rArr['status'] = Mage::helper('usa')->__('Shipment picked up');
                                         } else {
-                                             $rArr['status']=(string)$txml->ShipmentType->Desc.Mage::helper('usa')->__(' was not delivered nor scanned');
+                                            $rArr['status'] = (string)$txml->ShipmentType->Desc
+                                                  . Mage::helper('usa')->__(' was not delivered nor scanned');
                                         }
 
                                         $packageProgress = array();
                                         if (isset($txml->TrackingHistory) && isset($txml->TrackingHistory->Status)) {
 
                                             foreach ($txml->TrackingHistory->Status as $thistory) {
-                                                  $tempArr=array();
-                                                  $tempArr['activity'] = (string)$thistory->StatusDesc;
-                                                  $tempArr['deliverydate'] = (string)$thistory->Date;//YYYY-MM-DD
-                                                  $tempArr['deliverytime'] = (string)$thistory->Time.':00';//HH:MM:ss
-                                                  $addArr=array();
-                                                  if (isset($thistory->Location->City)) {
+                                                $tempArr = array();
+                                                $tempArr['activity'] = (string)$thistory->StatusDesc;
+                                                $tempArr['deliverydate'] = (string)$thistory->Date; //YYYY-MM-DD
+                                                $tempArr['deliverytime'] = (string)$thistory->Time . ':00'; //HH:MM:ss
+                                                $addArr = array();
+                                                if (isset($thistory->Location->City)) {
                                                     $addArr[] = (string)$thistory->Location->City;
-                                                  }
-                                                  if (isset($thistory->Location->State)) {
+                                                }
+                                                if (isset($thistory->Location->State)) {
                                                     $addArr[] = (string)$thistory->Location->State;
-                                                  }
-                                                  if (isset($thistory->Location->CountryCode)) {
+                                                }
+                                                if (isset($thistory->Location->CountryCode)) {
                                                     $addArr[] = (string)$thistory->Location->Country;
-                                                  }
-                                                  if ($addArr) {
-                                                    $tempArr['deliverylocation']=implode(', ',$addArr);
-                                                  }elseif(isset($thistory['final_delivery']) && (string)$thistory['final_delivery']==='true'){
-                                                      /*
-                                                      if the history is final delivery, there is no informationabout city, state and country
-                                                      */
-                                                      $addArr=array();
-                                                      if (isset($txml->Receiver->City)) {
+                                                }
+                                                if ($addArr) {
+                                                    $tempArr['deliverylocation'] = implode(', ', $addArr);
+                                                } elseif (isset($thistory['final_delivery'])
+                                                          && (string)$thistory['final_delivery'] === 'true'
+                                                ) {
+                                                    /*
+                                                    * if the history is final delivery, there is no informationabout
+                                                    * city, state and country
+                                                    */
+                                                    $addArr = array();
+                                                    if (isset($txml->Receiver->City)) {
                                                         $addArr[] = (string)$txml->Receiver->City;
-                                                      }
-                                                      if (isset($thistory->Receiver->State)) {
+                                                    }
+                                                    if (isset($thistory->Receiver->State)) {
                                                         $addArr[] = (string)$txml->Receiver->State;
-                                                      }
-                                                      if (isset($thistory->Receiver->CountryCode)) {
+                                                    }
+                                                    if (isset($thistory->Receiver->CountryCode)) {
                                                         $addArr[] = (string)$txml->Receiver->Country;
-                                                      }
-                                                      $tempArr['deliverylocation']=implode(', ',$addArr);
-                                                  }
-                                                  $packageProgress[] = $tempArr;
+                                                    }
+                                                    $tempArr['deliverylocation'] = implode(', ', $addArr);
+                                                }
+                                                $packageProgress[] = $tempArr;
                                             }
                                             $rArr['progressdetail'] = $packageProgress;
 
                                         }
-                                        $resultArr[$tracknum]=$rArr;
-                                    }else{
-                                        $description =(string)$txml->Result->Desc;
-                                        if($description)
-                                            $errorArr[$tracknum]=Mage::helper('usa')->__('Error #%s: %s', $code, $description);
+                                        $resultArr[$tracknum] = $rArr;
+                                    } else {
+                                        $description = (string)$txml->Result->Desc;
+                                        if ($description)
+                                            $errorArr[$tracknum] = Mage::helper('usa')->__('Error #%s: %s', $code, $description);
                                         else
-                                            $errorArr[$tracknum]=Mage::helper('usa')->__('Unable to retrieve tracking');
+                                            $errorArr[$tracknum] = Mage::helper('usa')->__('Unable to retrieve tracking');
                                     }
-                                }else{
-                                    $errorArr[$tracknum]=Mage::helper('usa')->__('Unable to retrieve tracking');
+                                } else {
+                                    $errorArr[$tracknum] = Mage::helper('usa')->__('Unable to retrieve tracking');
                                 }
 
                             }
                         }
 
                     }
-                 }
+                }
             } else {
                 $errorTitle = Mage::helper('usa')->__('Response is in the wrong format');
             }
-          }
+        }
 
-          $result = Mage::getModel('shipping/tracking_result');
-          if($errorArr || $resultArr){
-            foreach ($errorArr as $t=>$r) {
+        $result = Mage::getModel('shipping/tracking_result');
+        if ($errorArr || $resultArr) {
+            foreach ($errorArr as $t => $r) {
                 $error = Mage::getModel('shipping/tracking_result_error');
                 $error->setCarrier('dhl');
                 $error->setCarrierTitle($this->getConfigData('title'));
@@ -1116,22 +1226,17 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                 $result->append($error);
             }
 
-            foreach($resultArr as $t => $data) {
+            foreach ($resultArr as $t => $data) {
                 $tracking = Mage::getModel('shipping/tracking_result_status');
                 $tracking->setCarrier('dhl');
                 $tracking->setCarrierTitle($this->getConfigData('title'));
                 $tracking->setTracking($t);
                 $tracking->addData($data);
-                /*
-                $tracking->setStatus($data['status']);
-                $tracking->setService($data['service']);
-                if(isset($data['deliverydate'])) $tracking->setDeliveryDate($data['deliverydate']);
-                if(isset($data['deliverytime'])) $tracking->setDeliveryTime($data['deliverytime']);
-                */
+
                 $result->append($tracking);
             }
-          }else{
-              foreach($trackings as $t){
+        } else {
+            foreach ($trackings as $t) {
                 $error = Mage::getModel('shipping/tracking_result_error');
                 $error->setCarrier('dhl');
                 $error->setCarrierTitle($this->getConfigData('title'));
@@ -1139,24 +1244,27 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
                 $error->setErrorMessage($errorTitle);
                 $result->append($error);
 
-              }
-          }
+            }
+        }
         $this->_result = $result;
-//echo "<pre>";print_r($result);
-
     }
 
+    /**
+     * Get tracking response
+     *
+     * @return string
+     */
     public function getResponse()
     {
         $statuses = '';
-        if ($this->_result instanceof Mage_Shipping_Model_Tracking_Result){
+        if ($this->_result instanceof Mage_Shipping_Model_Tracking_Result) {
             if ($trackings = $this->_result->getAllTrackings()) {
-                foreach ($trackings as $tracking){
-                    if($data = $tracking->getAllData()){
+                foreach ($trackings as $tracking) {
+                    if ($data = $tracking->getAllData()) {
                         if (isset($data['status'])) {
-                            $statuses .= Mage::helper('usa')->__($data['status'])."\n<br/>";
+                            $statuses .= Mage::helper('usa')->__($data['status']) . "\n<br/>";
                         } else {
-                            $statuses .= Mage::helper('usa')->__($data['error_message'])."\n<br/>";
+                            $statuses .= Mage::helper('usa')->__($data['error_message']) . "\n<br/>";
                         }
                     }
                 }
@@ -1183,26 +1291,107 @@ class Mage_Usa_Model_Shipping_Carrier_Dhl
         return $arr;
     }
 
+    /**
+     * Is state province required
+     *
+     * @return bool
+     */
     public function isStateProvinceRequired()
     {
         return true;
     }
 
+    /**
+     * Get additional protection value types
+     *
+     * @return array
+     */
     public function getAdditionalProtectionValueTypes()
     {
         return array(
-            self::ADDITIONAL_PROTECTION_VALUE_CONFIG=>Mage::helper('usa')->__('Configuration'),
-            self::ADDITIONAL_PROTECTION_VALUE_SUBTOTAL=>Mage::helper('usa')->__('Subtotal'),
-            self::ADDITIONAL_PROTECTION_VALUE_SUBTOTAL_WITH_DISCOUNT=>Mage::helper('usa')->__('Subtotal With Discount'),
-            );
+            self::ADDITIONAL_PROTECTION_VALUE_CONFIG => Mage::helper('usa')->__('Configuration'),
+            self::ADDITIONAL_PROTECTION_VALUE_SUBTOTAL => Mage::helper('usa')->__('Subtotal'),
+            self::ADDITIONAL_PROTECTION_VALUE_SUBTOTAL_WITH_DISCOUNT => Mage::helper('usa')->__('Subtotal With Discount'),
+        );
     }
 
+    /**
+     * Get additional protection rounding types
+     *
+     * @return array
+     */
     public function getAdditionalProtectionRoundingTypes()
     {
         return array(
             self::ADDITIONAL_PROTECTION_ROUNDING_FLOOR => Mage::helper('usa')->__('To Lower'),
-            self::ADDITIONAL_PROTECTION_ROUNDING_CEIL  => Mage::helper('usa')->__('To Upper'),
+            self::ADDITIONAL_PROTECTION_ROUNDING_CEIL => Mage::helper('usa')->__('To Upper'),
             self::ADDITIONAL_PROTECTION_ROUNDING_ROUND => Mage::helper('usa')->__('Round'),
-            );
+        );
+    }
+
+    /**
+     * Map request to shipment
+     *
+     * @param Varien_Object $request
+     * @return null
+     */
+    protected function _mapRequestToShipment(Varien_Object $request)
+    {
+        $customsValue = $request->getPackageParams()->getCustomsValue();
+        $request->setOrigPersonName($request->getShipperContactPersonName());
+        $request->setOrigPostal($request->getShipperAddressPostalCode());
+        $request->setOrigPhoneNumber($request->getShipperContactPhoneNumber());
+        $request->setOrigCompanyName($request->getShipperContactCompanyName());
+        $request->setOrigCountryId($request->getShipperAddressCountryCode());
+        $request->setOrigState($request->getShipperAddressStateOrProvinceCode());
+        $request->setOrigCity($request->getShipperAddressCity());
+        $request->setOrigStreet($request->getShipperAddressStreet1() . ' ' . $request->getShipperAddressStreet2());
+        $request->setOrigStreetLine2($request->getShipperAddressStreet2());
+
+        $request->setDestPersonName($request->getRecipientContactPersonName());
+        $request->setDestPostcode($request->getRecipientAddressPostalCode());
+        $request->setDestPhoneNumber($request->getRecipientContactPhoneNumber());
+        $request->setDestCompanyName($request->getRecipientContactCompanyName());
+        $request->setDestCountryId($request->getRecipientAddressCountryCode());
+        $request->setDestRegionCode($request->getRecipientAddressStateOrProvinceCode());
+        $request->setDestCity($request->getRecipientAddressCity());
+        $request->setDestStreet($request->getRecipientAddressStreet1());
+        $request->setDestStreetLine2($request->getRecipientAddressStreet2());
+
+        $request->setLimitMethod($request->getShippingMethod());
+        $request->setPackageValue($customsValue);
+        $request->setValueWithDiscount($customsValue);
+        $request->setPackageCustomsValue($customsValue);
+        $request->setFreeMethodWeight(0);
+        $request->setDhlShipmentType($request->getPackagingType());
+
+        $request->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    protected function _doShipmentRequest(Varien_Object $request)
+    {
+        $this->_prepareShipmentRequest($request);
+        $request->setAction('GenerateLabel');
+        $this->_mapRequestToShipment($request);
+        $this->setRequest($request);
+
+        return $this->_doRequest();
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        return $this->getCode('shipment_type');
     }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php
new file mode 100644
index 0000000..26e7771
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php
@@ -0,0 +1,1731 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * DHL International (API v1.4)
+ *
+ * @category Mage
+ * @package  Mage_Usa
+ * @author   Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International
+    extends Mage_Usa_Model_Shipping_Carrier_Abstract
+    implements Mage_Shipping_Model_Carrier_Interface
+{
+    /**
+     * Carrier Product indicator
+     */
+    const DHL_CONTENT_TYPE_DOC        = 'D';
+    const DHL_CONTENT_TYPE_NON_DOC    = 'N';
+
+    /**
+     * Minimum allowed values for shipping package dimensions
+     */
+    const DIMENSION_MIN_CM = 3;
+    const DIMENSION_MIN_IN = 1;
+
+    /**
+     * Container types that could be customized
+     *
+     * @var array
+     */
+    protected $_customizableContainerTypes = array(self::DHL_CONTENT_TYPE_NON_DOC);
+
+    /**
+     * Code of the carrier
+     */
+    const CODE = 'dhlint';
+
+    /**
+     * Rate request data
+     *
+     * @var Mage_Shipping_Model_Rate_Request|null
+     */
+    protected $_request = null;
+
+    /**
+     * Raw rate request data
+     *
+     * @var Varien_Object|null
+     */
+    protected $_rawRequest = null;
+
+    /**
+     * Rate result data
+     *
+     * @var Mage_Shipping_Model_Rate_Result|null
+     */
+    protected $_result = null;
+
+    /**
+     * Countries parameters data
+     *
+     * @var SimpleXMLElement|null
+     */
+    protected $_countryParams = null;
+
+    /**
+     * Errors placeholder
+     *
+     * @var array
+     */
+    protected $_errors = array();
+
+    /**
+     * Dhl rates result
+     *
+     * @var array
+     */
+    protected $_rates = array();
+
+    /**
+     * Carrier's code
+     *
+     * @var string
+     */
+    protected $_code = self::CODE;
+
+    /**
+     * Free Method config path
+     *
+     * @var string
+     */
+    protected $_freeMethod = 'free_method_nondoc';
+
+    /**
+     * Max weight without fee
+     *
+     * @var int
+     */
+    protected $_maxWeight = 70;
+
+    /**
+     * Flag if response is for shipping label creating
+     *
+     * @var bool
+     */
+    protected $_isShippingLabelFlag = false;
+
+    /**
+     * Request variables array
+     *
+     * @var array
+     */
+    protected $_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')
+    );
+
+    /**
+     * Flag that shows if shipping is domestic
+     *
+     * @var bool
+     */
+    protected $_isDomestic = false;
+
+    /**
+     * Dhl International Class constructor
+     *
+     * Sets necessary data
+     */
+    protected function _construct()
+    {
+        if ($this->getConfigData('content_type') == self::DHL_CONTENT_TYPE_DOC) {
+            $this->_freeMethod = 'free_method_doc';
+        }
+    }
+
+    /**
+     * Returns value of given variable
+     *
+     * @param mixed $origValue
+     * @param string $pathToValue
+     * @return mixed
+     */
+    protected function _getDefaultValue($origValue, $pathToValue)
+    {
+        if (!$origValue) {
+            $origValue = Mage::getStoreConfig(
+                $pathToValue,
+                $this->getStore()
+            );
+        }
+
+        return $origValue;
+    }
+
+    /**
+     * Collect and get rates
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return bool|Mage_Shipping_Model_Rate_Result|null
+     */
+    public function collectRates(Mage_Shipping_Model_Rate_Request $request)
+    {
+        if (!$this->getConfigFlag($this->_activeFlag)) {
+            return false;
+        }
+
+        $requestDhl     = clone $request;
+        $this->setStore($requestDhl->getStoreId());
+
+        $origCompanyName = $this->_getDefaultValue(
+            $requestDhl->getOrigCompanyName(),
+            Mage_Core_Model_Store::XML_PATH_STORE_STORE_NAME
+        );
+        $origCountryId = $this->_getDefaultValue(
+            $requestDhl->getOrigCountryId(),
+            Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID
+        );
+        $origState = $this->_getDefaultValue(
+            $requestDhl->getOrigState(),
+            Mage_Shipping_Model_Shipping::XML_PATH_STORE_REGION_ID
+        );
+        $origCity = $this->_getDefaultValue(
+            $requestDhl->getOrigCity(),
+            Mage_Shipping_Model_Shipping::XML_PATH_STORE_CITY
+        );
+        $origPostcode = $this->_getDefaultValue(
+            $requestDhl->getOrigPostcode(),
+            Mage_Shipping_Model_Shipping::XML_PATH_STORE_ZIP
+        );
+
+        $requestDhl->setOrigCompanyName($origCompanyName)
+            ->setCountryId($origCountryId)
+            ->setOrigState($origState)
+            ->setOrigCity($origCity)
+            ->setOrigPostal($origPostcode);
+        $this->setRequest($requestDhl);
+
+        $this->_result = $this->_getQuotes();
+
+        $this->_updateFreeMethodQuote($request);
+
+        return $this->_result;
+    }
+
+    /**
+     * Set Free Method Request
+     *
+     * @param  string $freeMethod
+     * @return void
+     */
+    protected function _setFreeMethodRequest($freeMethod)
+    {
+        $rawRequest = $this->_rawRequest;
+
+        $rawRequest->setFreeMethodRequest(true);
+        $freeWeight = $this->getTotalNumOfBoxes($rawRequest->getFreeMethodWeight());
+        $rawRequest->setWeight($freeWeight);
+        $rawRequest->setService($freeMethod);
+    }
+
+    /**
+     * Returns request result
+     *
+     * @return Mage_Shipping_Model_Rate_Result|null
+     */
+    public function getResult()
+    {
+        return $this->_result;
+    }
+
+    protected function _addParams($requestObject)
+    {
+        $request = $this->_request;
+        foreach ($this->_requestVariables as $code => $objectCode) {
+            if ($request->getDhlId()) {
+                $value = $request->getData($objectCode['code']);
+            } else {
+                $value = $this->getConfigData($code);
+            }
+            $requestObject->setData($objectCode['setCode'], $value);
+        }
+        return $requestObject;
+    }
+
+    /**
+     * Prepare and set request in property of current instance
+     *
+     * @param Varien_Object $request
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl
+     */
+    public function setRequest(Varien_Object $request)
+    {
+        $this->_request = $request;
+        $this->setStore($request->getStoreId());
+
+        $requestObject = new Varien_Object();
+
+        $requestObject->setIsGenerateLabelReturn($request->getIsGenerateLabelReturn());
+
+        $requestObject->setStoreId($request->getStoreId());
+
+        if ($request->getLimitMethod()) {
+            $requestObject->setService($request->getLimitMethod());
+        }
+
+        $requestObject = $this->_addParams($requestObject);
+
+        if ($request->getDestPostcode()) {
+            $requestObject->setDestPostal($request->getDestPostcode());
+        }
+
+        $requestObject->setOrigCountry(
+                $this->_getDefaultValue(
+                    $request->getOrigCountry(), Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID)
+            )
+            ->setOrigCountryId(
+                $this->_getDefaultValue(
+                    $request->getOrigCountryId(), Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID)
+            );
+
+        $shippingWeight = $request->getPackageWeight();
+
+        $requestObject->setValue(round($request->getPackageValue(), 2))
+            ->setValueWithDiscount($request->getPackageValueWithDiscount())
+            ->setCustomsValue($request->getPackageCustomsValue())
+            ->setDestStreet(
+                Mage::helper('core/string')->substr(str_replace("\n", '', $request->getDestStreet()), 0, 35))
+            ->setDestStreetLine2($request->getDestStreetLine2())
+            ->setDestCity($request->getDestCity())
+            ->setOrigCompanyName($request->getOrigCompanyName())
+            ->setOrigCity($request->getOrigCity())
+            ->setOrigPhoneNumber($request->getOrigPhoneNumber())
+            ->setOrigPersonName($request->getOrigPersonName())
+            ->setOrigEmail(Mage::getStoreConfig('trans_email/ident_general/email', $requestObject->getStoreId()))
+            ->setOrigCity($request->getOrigCity())
+            ->setOrigPostal($request->getOrigPostal())
+            ->setOrigStreetLine2($request->getOrigStreetLine2())
+            ->setDestPhoneNumber($request->getDestPhoneNumber())
+            ->setDestPersonName($request->getDestPersonName())
+            ->setDestCompanyName($request->getDestCompanyName());
+
+        $originStreet2 = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_ADDRESS2, $requestObject->getStoreId());
+
+        $requestObject->setOrigStreet($request->getOrigStreet() ? $request->getOrigStreet() : $originStreet2);
+
+        if (is_numeric($request->getOrigState())) {
+            $requestObject->setOrigState(Mage::getModel('directory/region')->load($request->getOrigState())->getCode());
+        } else {
+            $requestObject->setOrigState($request->getOrigState());
+        }
+
+        if ($request->getDestCountryId()) {
+            $destCountry = $request->getDestCountryId();
+        } else {
+            $destCountry = self::USA_COUNTRY_ID;
+        }
+
+        // for DHL, Puerto Rico state for US will assume as Puerto Rico country
+        // for Puerto Rico, dhl will ship as international
+        if ($destCountry == self::USA_COUNTRY_ID && ($request->getDestPostcode() == '00912'
+                                                     || $request->getDestRegionCode() == self::PUERTORICO_COUNTRY_ID)
+        ) {
+            $destCountry = self::PUERTORICO_COUNTRY_ID;
+        }
+
+        $requestObject->setDestCountryId($destCountry)
+            ->setDestState($request->getDestRegionCode())
+            ->setWeight($shippingWeight)
+            ->setFreeMethodWeight($request->getFreeMethodWeight())
+            ->setOrderShipment($request->getOrderShipment());
+
+        if ($request->getPackageId()) {
+            $requestObject->setPackageId($request->getPackageId());
+        }
+
+        $requestObject->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
+
+        $this->_rawRequest = $requestObject;
+        return $this;
+    }
+
+    /**
+     * Get allowed shipping methods
+     *
+     * @return array
+     */
+    public function getAllowedMethods()
+    {
+        $contentType = $this->getConfigData('content_type');
+        $allowedMethods = array();
+        if ($this->_isDomestic) {
+            $allowedMethods = array_merge(explode(',', $this->getConfigData('doc_methods')),
+                explode(',', $this->getConfigData('nondoc_methods'))
+            );
+        } else {
+            switch ($contentType) {
+                case self::DHL_CONTENT_TYPE_DOC:
+                    $allowedMethods = explode(',', $this->getConfigData('doc_methods'));
+                    break;
+                case self::DHL_CONTENT_TYPE_NON_DOC:
+                    $allowedMethods = explode(',', $this->getConfigData('nondoc_methods'));
+                    break;
+                default:
+                    Mage::throwException(Mage::helper('usa')->__('Wrong Content Type.'));
+            }
+        }
+        $methods = array();
+        foreach ($allowedMethods as $method) {
+            $methods[$method] = $this->getDhlProductTitle($method);
+        }
+        return $methods;
+    }
+
+    /**
+     * Get configuration data of carrier
+     *
+     * @param strin $type
+     * @param string $code
+     * @return array|bool
+     */
+    public function getCode($type, $code = '')
+    {
+        $codes = array(
+            'unit_of_measure'   => array(
+                'L' => Mage::helper('usa')->__('Pounds'),
+                'K' => Mage::helper('usa')->__('Kilograms'),
+            ),
+            'unit_of_dimension' => array(
+                'I' => Mage::helper('usa')->__('Inches'),
+                'C' => Mage::helper('usa')->__('Centimeters'),
+            ),
+            'unit_of_dimension_cut' => array(
+                'I' => Mage::helper('usa')->__('inch'),
+                'C' => Mage::helper('usa')->__('cm'),
+            ),
+            'dimensions' => array(
+                'HEIGHT'    => Mage::helper('usa')->__('Height'),
+                'DEPTH'     => Mage::helper('usa')->__('Depth'),
+                'WIDTH'     => Mage::helper('usa')->__('Width'),
+            ),
+            'size'              => array(
+                '0' => Mage::helper('usa')->__('Regular'),
+                '1' => Mage::helper('usa')->__('Specific'),
+            ),
+            'dimensions_variables'  => array(
+                'L'         => Zend_Measure_Weight::POUND,
+                'LB'        => Zend_Measure_Weight::POUND,
+                'POUND'     => Zend_Measure_Weight::POUND,
+                'K'         => Zend_Measure_Weight::KILOGRAM,
+                'KG'        => Zend_Measure_Weight::KILOGRAM,
+                'KILOGRAM'  => Zend_Measure_Weight::KILOGRAM,
+                'I'         => Zend_Measure_Length::INCH,
+                'IN'        => Zend_Measure_Length::INCH,
+                'INCH'      => Zend_Measure_Length::INCH,
+                'C'         => Zend_Measure_Length::CENTIMETER,
+                'CM'        => Zend_Measure_Length::CENTIMETER,
+                'CENTIMETER'=> Zend_Measure_Length::CENTIMETER,
+
+            )
+        );
+
+        if (!isset($codes[$type])) {
+            return false;
+        } elseif ('' === $code) {
+            return $codes[$type];
+        }
+
+        $code = strtoupper($code);
+        if (!isset($codes[$type][$code])) {
+            return false;
+        } else {
+            return $codes[$type][$code];
+        }
+    }
+
+    /**
+     * Returns DHL shipment methods (depending on package content type, if necessary)
+     *
+     * @param string $doc Package content type (doc/non-doc) see DHL_CONTENT_TYPE_* constants
+     * @return array
+     */
+    public function getDhlProducts($doc)
+    {
+        $docType = array(
+            '2' => Mage::helper('usa')->__('Easy shop'),
+            '5' => Mage::helper('usa')->__('Sprintline'),
+            '6' => Mage::helper('usa')->__('Secureline'),
+            '7' => Mage::helper('usa')->__('Express easy'),
+            '9' => Mage::helper('usa')->__('Europack'),
+            'B' => Mage::helper('usa')->__('Break bulk express'),
+            'C' => Mage::helper('usa')->__('Medical express'),
+            'D' => Mage::helper('usa')->__('Express worldwide'), // product content code: DOX
+            'U' => Mage::helper('usa')->__('Express worldwide'), // product content code: ECX
+            'K' => Mage::helper('usa')->__('Express 9:00'),
+            'L' => Mage::helper('usa')->__('Express 10:30'),
+            'G' => Mage::helper('usa')->__('Domestic economy select'),
+            'W' => Mage::helper('usa')->__('Economy select'),
+            'I' => Mage::helper('usa')->__('Break bulk economy'),
+            'N' => Mage::helper('usa')->__('Domestic express'),
+            'O' => Mage::helper('usa')->__('Others'),
+            'R' => Mage::helper('usa')->__('Globalmail business'),
+            'S' => Mage::helper('usa')->__('Same day'),
+            'T' => Mage::helper('usa')->__('Express 12:00'),
+            'X' => Mage::helper('usa')->__('Express envelope'),
+        );
+
+        $nonDocType = array(
+            '1' => Mage::helper('usa')->__('Customer services'),
+            '3' => Mage::helper('usa')->__('Easy shop'),
+            '4' => Mage::helper('usa')->__('Jetline'),
+            '8' => Mage::helper('usa')->__('Express easy'),
+            'P' => Mage::helper('usa')->__('Express worldwide'),
+            'Q' => Mage::helper('usa')->__('Medical express'),
+            'E' => Mage::helper('usa')->__('Express 9:00'),
+            'F' => Mage::helper('usa')->__('Freight worldwide'),
+            'H' => Mage::helper('usa')->__('Economy select'),
+            'J' => Mage::helper('usa')->__('Jumbo box'),
+            'M' => Mage::helper('usa')->__('Express 10:30'),
+            'V' => Mage::helper('usa')->__('Europack'),
+            'Y' => Mage::helper('usa')->__('Express 12:00'),
+        );
+
+        if ($this->_isDomestic) {
+            return $docType + $nonDocType;
+        }
+        if ($doc == self::DHL_CONTENT_TYPE_DOC) {
+            // Documents shipping
+            return $docType;
+        } else {
+            // Services for shipping non-documents cargo
+            return $nonDocType;
+        }
+    }
+
+    /**
+     * Returns title of DHL shipping method by its code
+     *
+     * @param string $code One-symbol code (see getDhlProducts())
+     * @return bool
+     */
+    public function getDhlProductTitle($code)
+    {
+        $contentType = $this->getConfigData('content_type');
+        $dhlProducts = $this->getDhlProducts($contentType);
+        return isset($dhlProducts[$code]) ? $dhlProducts[$code] : false;
+    }
+
+    /**
+     * Convert item weight to needed weight based on config weight unit dimensions
+     *
+     * @param float $weight
+     * @param bool $maxWeight
+     * @param string|bool $configWeightUnit
+     * @return float
+     */
+    protected function _getWeight($weight, $maxWeight = false, $configWeightUnit = false)
+    {
+        if ($maxWeight) {
+            $configWeightUnit = Zend_Measure_Weight::KILOGRAM;
+        } elseif ($configWeightUnit) {
+            $configWeightUnit = $this->getCode('dimensions_variables', $configWeightUnit);
+        } else {
+            $configWeightUnit = $this->getCode('dimensions_variables', (string)$this->getConfigData('unit_of_measure'));
+        }
+
+        $countryWeightUnit = $this->getCode('dimensions_variables', $this->_getWeightUnit());
+
+        if ($configWeightUnit != $countryWeightUnit) {
+            $weight = Mage::helper('usa')->convertMeasureWeight(
+                round($weight,3),
+                $configWeightUnit,
+                $countryWeightUnit
+            );
+        }
+
+        return round($weight, 3);
+    }
+
+    /**
+     * Prepare items to pieces
+     *
+     * @return array
+     */
+    protected function _getAllItems()
+    {
+        $allItems   = $this->_request->getAllItems();
+        $fullItems  = array();
+
+        foreach ($allItems as $item) {
+            if ($item->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_BUNDLE
+                && $item->getProduct()->getShipmentType()
+            ) {
+                continue;
+            }
+
+            $qty            = $item->getQty();
+            $changeQty      = true;
+            $checkWeight    = true;
+            $decimalItems   = array();
+
+            if ($item->getParentItem()) {
+                if (!$item->getParentItem()->getProduct()->getShipmentType()) {
+                    continue;
+                }
+                $qty = $item->getIsQtyDecimal()
+                    ? $item->getParentItem()->getQty()
+                    : $item->getParentItem()->getQty() * $item->getQty();
+            }
+
+            $itemWeight = $item->getWeight();
+            if ($item->getIsQtyDecimal() && $item->getProductType() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE) {
+                $stockItem = $item->getProduct()->getStockItem();
+                if ($stockItem->getIsDecimalDivided()) {
+                   if ($stockItem->getEnableQtyIncrements() && $stockItem->getQtyIncrements()) {
+                        $itemWeight = $itemWeight * $stockItem->getQtyIncrements();
+                        $qty        = round(($item->getWeight() / $itemWeight) * $qty);
+                        $changeQty  = false;
+                   } else {
+                       $itemWeight = $this->_getWeight($itemWeight * $item->getQty());
+                       $maxWeight  = $this->_getWeight($this->_maxWeight, true);
+                       if ($itemWeight > $maxWeight) {
+                           $qtyItem = floor($itemWeight / $maxWeight);
+                           $decimalItems[] = array('weight' => $maxWeight, 'qty' => $qtyItem);
+                           $weightItem = Mage::helper('core')->getExactDivision($itemWeight, $maxWeight);
+                           if ($weightItem) {
+                               $decimalItems[] = array('weight' => $weightItem, 'qty' => 1);
+                           }
+                           $checkWeight = false;
+                       } else {
+                           $itemWeight = $itemWeight * $item->getQty();
+                       }
+                   }
+                } else {
+                    $itemWeight = $itemWeight * $item->getQty();
+                }
+            }
+
+            if ($checkWeight && $this->_getWeight($itemWeight) > $this->_getWeight($this->_maxWeight, true)) {
+                return array();
+            }
+
+            if ($changeQty && !$item->getParentItem() && $item->getIsQtyDecimal()
+                && $item->getProductType() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE
+            ) {
+                $qty = 1;
+            }
+
+            if (!empty($decimalItems)) {
+                foreach ($decimalItems as $decimalItem) {
+                    $fullItems = array_merge($fullItems,
+                        array_fill(0, $decimalItem['qty'] * $qty, $decimalItem['weight'])
+                    );
+                }
+            } else {
+                $fullItems = array_merge($fullItems, array_fill(0, $qty, $this->_getWeight($itemWeight)));
+            }
+        }
+        sort($fullItems);
+
+        return $fullItems;
+    }
+
+    /**
+     * Make pieces
+     *
+     * @param SimpleXMLElement $nodeBkgDetails
+     * @return void
+     */
+    protected function _makePieces(SimpleXMLElement $nodeBkgDetails)
+    {
+        $divideOrderWeight = (string)$this->getConfigData('divide_order_weight');
+        $nodePieces = $nodeBkgDetails->addChild('Pieces', '', '');
+        $items = $this->_getAllItems();
+        $numberOfPieces = 0;
+
+        if ($divideOrderWeight && !empty($items)) {
+            $maxWeight = $this->_getWeight($this->_maxWeight, true);
+            $sumWeight = 0;
+
+            $reverseOrderItems = $items;
+            arsort($reverseOrderItems);
+
+            foreach ($reverseOrderItems as $key => $weight) {
+                if (!isset($items[$key])) {
+                    continue;
+                }
+                unset($items[$key]);
+                $sumWeight = $weight;
+                foreach ($items as $key => $weight) {
+                    if (($sumWeight + $weight) < $maxWeight) {
+                        unset($items[$key]);
+                        $sumWeight += $weight;
+                    } elseif (($sumWeight + $weight) > $maxWeight) {
+                        $numberOfPieces++;
+                        $nodePiece = $nodePieces->addChild('Piece', '', '');
+                        $nodePiece->addChild('PieceID', $numberOfPieces);
+                        $this->_addDimension($nodePiece);
+                        $nodePiece->addChild('Weight', $sumWeight);
+                        break;
+                    } else {
+                        unset($items[$key]);
+                        $numberOfPieces++;
+                        $sumWeight += $weight;
+                        $nodePiece = $nodePieces->addChild('Piece', '', '');
+                        $nodePiece->addChild('PieceID', $numberOfPieces);
+                        $this->_addDimension($nodePiece);
+                        $nodePiece->addChild('Weight', $sumWeight);
+                        $sumWeight = 0;
+                        break;
+                    }
+                }
+            }
+            if ($sumWeight > 0) {
+                $numberOfPieces++;
+                $nodePiece = $nodePieces->addChild('Piece', '', '');
+                $nodePiece->addChild('PieceID', $numberOfPieces);
+                $this->_addDimension($nodePiece);
+                $nodePiece->addChild('Weight', $sumWeight);
+            }
+        } else {
+            $nodePiece = $nodePieces->addChild('Piece', '', '');
+            $nodePiece->addChild('PieceID', 1);
+            $this->_addDimension($nodePiece);
+            $nodePiece->addChild('Weight', $this->_getWeight($this->_rawRequest->getWeight()));
+        }
+
+        $handlingAction = $this->getConfigData('handling_action');
+        if ($handlingAction == Mage_Shipping_Model_Carrier_Abstract::HANDLING_ACTION_PERORDER || !$numberOfPieces) {
+            $numberOfPieces = 1;
+        }
+        $this->_numBoxes = $numberOfPieces;
+    }
+
+    /**
+     * Convert item dimension to needed dimension based on config dimension unit of measure
+     *
+     * @param float $dimension
+     * @param string|bool $configWeightUnit
+     * @return float
+     */
+    protected function _getDimension($dimension, $configWeightUnit = false)
+    {
+        if (!$configWeightUnit) {
+            $configWeightUnit = $this->getCode('dimensions_variables', (string)$this->getConfigData('unit_of_measure'));
+        } else {
+            $configWeightUnit = $this->getCode('dimensions_variables', $configWeightUnit);
+        }
+
+        if ($configWeightUnit == Zend_Measure_Weight::POUND) {
+            $configDimensionUnit = Zend_Measure_Length::INCH;
+        } else {
+            $configDimensionUnit = Zend_Measure_Length::CENTIMETER;
+        }
+
+        $countryDimensionUnit = $this->getCode('dimensions_variables', $this->_getDimensionUnit());
+
+        if ($configDimensionUnit != $countryDimensionUnit) {
+            $dimension = Mage::helper('usa')->convertMeasureDimension(
+                round($dimension, 3),
+                $configDimensionUnit,
+                $countryDimensionUnit
+            );
+        }
+
+        return round($dimension, 3);
+    }
+
+    /**
+     * Add dimension to piece
+     *
+     * @param SimpleXMLElement $nodePiece
+     * @return void
+     */
+    protected function _addDimension($nodePiece)
+    {
+        $sizeChecker = (string)$this->getConfigData('size');
+
+        $height = $this->_getDimension((string)$this->getConfigData('height'));
+        $depth = $this->_getDimension((string)$this->getConfigData('depth'));
+        $width = $this->_getDimension((string)$this->getConfigData('width'));
+
+        if ($sizeChecker && $height && $depth && $width) {
+            $nodePiece->addChild('Height', $height);
+            $nodePiece->addChild('Depth', $depth);
+            $nodePiece->addChild('Width', $width);
+        }
+    }
+
+    /**
+     * Get shipping quotes
+     *
+     * @return Mage_Core_Model_Abstract|Mage_Shipping_Model_Rate_Result
+     */
+    protected function _getQuotes()
+    {
+        $rawRequest = $this->_rawRequest;
+        $xmlStr = '<?xml version = "1.0" encoding = "UTF-8"?>'
+                . '<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" '
+                . 'xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" '
+                . 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
+                . 'xsi:schemaLocation="http://www.dhl.com DCT-req.xsd "/>';
+        $xml = new SimpleXMLElement($xmlStr);
+        $nodeGetQuote = $xml->addChild('GetQuote', '', '');
+        $nodeRequest = $nodeGetQuote->addChild('Request');
+
+        $nodeServiceHeader = $nodeRequest->addChild('ServiceHeader');
+        $nodeServiceHeader->addChild('SiteID', (string)$this->getConfigData('id'));
+        $nodeServiceHeader->addChild('Password', (string)$this->getConfigData('password'));
+
+        $nodeFrom = $nodeGetQuote->addChild('From');
+        $nodeFrom->addChild('CountryCode', $rawRequest->getOrigCountryId());
+        $nodeFrom->addChild('Postalcode', $rawRequest->getOrigPostal());
+        $nodeFrom->addChild('City', $rawRequest->getOrigCity());
+
+        $nodeBkgDetails = $nodeGetQuote->addChild('BkgDetails');
+        $nodeBkgDetails->addChild('PaymentCountryCode', $rawRequest->getOrigCountryId());
+        $nodeBkgDetails->addChild('Date', Varien_Date::now(true));
+        $nodeBkgDetails->addChild('ReadyTime', 'PT' . (int)(string)$this->getConfigData('ready_time') . 'H00M');
+
+        $nodeBkgDetails->addChild('DimensionUnit', $this->_getDimensionUnit());
+        $nodeBkgDetails->addChild('WeightUnit', $this->_getWeightUnit());
+
+        $this->_makePieces($nodeBkgDetails);
+
+        $nodeBkgDetails->addChild('PaymentAccountNumber', (string)$this->getConfigData('account'));
+
+        $nodeTo = $nodeGetQuote->addChild('To');
+        $nodeTo->addChild('CountryCode', $rawRequest->getDestCountryId());
+        $nodeTo->addChild('Postalcode', $rawRequest->getDestPostal());
+        $nodeTo->addChild('City', $rawRequest->getDestCity());
+
+        $this->_checkDomesticStatus($rawRequest->getOrigCountryId(), $rawRequest->getDestCountryId());
+
+        if ($this->getConfigData('content_type') == self::DHL_CONTENT_TYPE_NON_DOC && !$this->_isDomestic) {
+            // IsDutiable flag and Dutiable node indicates that cargo is not a documentation
+            $nodeBkgDetails->addChild('IsDutiable', 'Y');
+            $nodeDutiable = $nodeGetQuote->addChild('Dutiable');
+            $baseCurrencyCode = Mage::app()->getWebsite($this->_request->getWebsiteId())->getBaseCurrencyCode();
+            $nodeDutiable->addChild('DeclaredCurrency', $baseCurrencyCode);
+            $nodeDutiable->addChild('DeclaredValue', sprintf("%.2F", $rawRequest->getValue()));
+        }
+
+        $request = $xml->asXML();
+        $request = utf8_encode($request);
+        $responseBody = $this->_getCachedQuotes($request);
+        if ($responseBody === null) {
+            $debugData = array('request' => $request);
+            try {
+                $client = new Varien_Http_Client();
+                $client->setUri((string)$this->getConfigData('gateway_url'));
+                $client->setConfig(array('maxredirects' => 0, 'timeout' => 30));
+                $client->setRawData($request);
+                $responseBody = $client->request(Varien_Http_Client::POST)->getBody();
+                $debugData['result'] = $responseBody;
+                $this->_setCachedQuotes($request, $responseBody);
+            } catch (Exception $e) {
+                $this->_errors[$e->getCode()] = $e->getMessage();
+                $responseBody = '';
+            }
+            $this->_debug($debugData);
+        }
+
+        return $this->_parseResponse($responseBody);
+    }
+
+    /**
+     * Parse response from DHL web service
+     *
+     * @param string $response
+     * @return Mage_Shipping_Model_Rate_Result
+     */
+    protected function _parseResponse($response)
+    {
+        $htmlTranslationTable = get_html_translation_table(HTML_ENTITIES);
+        unset($htmlTranslationTable['<'], $htmlTranslationTable['>'], $htmlTranslationTable['"']);
+        $response = str_replace(array_keys($htmlTranslationTable), array_values($htmlTranslationTable), $response);
+
+        $responseError =  Mage::helper('usa')->__('The response is in wrong format.');
+
+        if (strlen(trim($response)) > 0) {
+            if (strpos(trim($response), '<?xml') === 0) {
+                $xml = simplexml_load_string($response);
+                if (is_object($xml)) {
+                    if (in_array($xml->getName(), array('ErrorResponse', 'ShipmentValidateErrorResponse'))
+                        || isset($xml->GetQuoteResponse->Note->Condition)
+                    ) {
+                        $code = null;
+                        $data = null;
+                        if (isset($xml->Response->Status->Condition)) {
+                            $nodeCondition = $xml->Response->Status->Condition;
+                        } else {
+                            $nodeCondition = $xml->GetQuoteResponse->Note->Condition;
+                        }
+
+                        if ($this->_isShippingLabelFlag) {
+                            foreach ($nodeCondition as $condition) {
+                                $code = isset($condition->ConditionCode) ? (string)$condition->ConditionCode : 0;
+                                $data = isset($condition->ConditionData) ? (string)$condition->ConditionData : '';
+                                if (!empty($code) && !empty($data)) {
+                                    break;
+                                }
+                            }
+                            Mage::throwException(Mage::helper('usa')->__('Error #%s : %s', trim($code), trim($data)));
+                        }
+
+                        $code = isset($nodeCondition->ConditionCode) ? (string)$nodeCondition->ConditionCode : 0;
+                        $data = isset($nodeCondition->ConditionData) ? (string)$nodeCondition->ConditionData : '';
+                        $this->_errors[$code] = Mage::helper('usa')->__('Error #%s : %s', trim($code), trim($data));
+                    } else {
+                        if (isset($xml->GetQuoteResponse->BkgDetails->QtdShp)) {
+                            foreach ($xml->GetQuoteResponse->BkgDetails->QtdShp as $quotedShipment) {
+                                $this->_addRate($quotedShipment);
+                            }
+                        } elseif (isset($xml->AirwayBillNumber)) {
+                            $result = new Varien_Object();
+                            $result->setTrackingNumber((string)$xml->AirwayBillNumber);
+                            try {
+                                /* @var $pdf Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf */
+                                $pdf = Mage::getModel(
+                                    'usa/shipping_carrier_dhl_label_pdf',
+                                    array('info' => $xml, 'request' => $this->_request)
+                                );
+                                $result->setShippingLabelContent($pdf->render());
+                            } catch (Exception $e) {
+                                Mage::throwException(Mage::helper('usa')->__($e->getMessage()));
+                            }
+                            return $result;
+                        } else {
+                            $this->_errors[] = $responseError;
+                        }
+                    }
+                }
+            } else {
+                $this->_errors[] = $responseError;
+            }
+        } else {
+            $this->_errors[] = $responseError;
+        }
+
+        /* @var $result Mage_Shipping_Model_Rate_Result */
+        $result = Mage::getModel('shipping/rate_result');
+        if ($this->_rates) {
+            foreach ($this->_rates as $rate) {
+                $method = $rate['service'];
+                $data = $rate['data'];
+                /* @var $rate Mage_Shipping_Model_Rate_Result_Method */
+                $rate = Mage::getModel('shipping/rate_result_method');
+                $rate->setCarrier(self::CODE);
+                $rate->setCarrierTitle($this->getConfigData('title'));
+                $rate->setMethod($method);
+                $rate->setMethodTitle($data['term']);
+                $rate->setCost($data['price_total']);
+                $rate->setPrice($data['price_total']);
+                $result->append($rate);
+            }
+        } else if (!empty($this->_errors)) {
+            if ($this->_isShippingLabelFlag) {
+                Mage::throwException($responseError);
+            }
+            return $this->_showError();
+        }
+        return $result;
+    }
+
+    /**
+     * Add rate to DHL rates array
+     *
+     * @param SimpleXMLElement $shipmentDetails
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_International
+     */
+    protected function _addRate(SimpleXMLElement $shipmentDetails)
+    {
+        if (isset($shipmentDetails->ProductShortName)
+            && isset($shipmentDetails->ShippingCharge)
+            && isset($shipmentDetails->GlobalProductCode)
+            && isset($shipmentDetails->CurrencyCode)
+            && array_key_exists((string)$shipmentDetails->GlobalProductCode, $this->getAllowedMethods())
+        ) {
+            // DHL product code, e.g. '3', 'A', 'Q', etc.
+            $dhlProduct             = (string)$shipmentDetails->GlobalProductCode;
+            $totalEstimate          = (float)(string)$shipmentDetails->ShippingCharge;
+            $currencyCode           = (string)$shipmentDetails->CurrencyCode;
+            $baseCurrencyCode       = Mage::app()->getWebsite($this->_request->getWebsiteId())->getBaseCurrencyCode();
+            $dhlProductDescription  = $this->getDhlProductTitle($dhlProduct);
+
+            if ($currencyCode != $baseCurrencyCode) {
+                /* @var $currency Mage_Directory_Model_Currency */
+                $currency = Mage::getModel('directory/currency');
+                $rates = $currency->getCurrencyRates($currencyCode, array($baseCurrencyCode));
+                if (!empty($rates) && isset($rates[$baseCurrencyCode])) {
+                    // Convert to store display currency using store exchange rate
+                    $totalEstimate = $totalEstimate * $rates[$baseCurrencyCode];
+                } else {
+                    $rates = $currency->getCurrencyRates($baseCurrencyCode, array($currencyCode));
+                    if (!empty($rates) && isset($rates[$currencyCode])) {
+                        $totalEstimate = $totalEstimate/$rates[$currencyCode];
+                    }
+                    if (!isset($rates[$currencyCode]) || !$totalEstimate) {
+                        $totalEstimate = false;
+                        $this->_errors[] = Mage::helper('usa')->__("Exchange rate %s (Base Currency) -> %s not found. DHL method %s skipped", $currencyCode, $baseCurrencyCode, $dhlProductDescription);
+                    }
+                }
+            }
+            if ($totalEstimate) {
+                $data = array('term' => $dhlProductDescription,
+                    'price_total' => $this->getMethodPrice($totalEstimate, $dhlProduct));
+                if (!empty($this->_rates)) {
+                    foreach ($this->_rates as $product) {
+                        if ($product['data']['term'] == $data['term']
+                            && $product['data']['price_total'] == $data['price_total']
+                        ) {
+                            return $this;
+                        }
+                    }
+                }
+                $this->_rates[] = array('service' => $dhlProduct, 'data' => $data);
+            } else {
+                $this->_errors[] = Mage::helper('usa')->__("Zero shipping charge for '%s'", $dhlProductDescription);
+            }
+        } else {
+            $dhlProductDescription = false;
+            if (isset($shipmentDetails->GlobalProductCode)) {
+                $dhlProductDescription  = $this->getDhlProductTitle((string)$shipmentDetails->GlobalProductCode);
+            }
+            $dhlProductDescription = $dhlProductDescription ? $dhlProductDescription : Mage::helper('usa')->__("DHL");
+            $this->_errors[] = Mage::helper('usa')->__("Zero shipping charge for '%s'", $dhlProductDescription);
+        }
+        return $this;
+    }
+
+    /**
+     * Returns dimension unit (cm or inch)
+     *
+     * @return string
+     */
+    protected function _getDimensionUnit()
+    {
+        $countryId = $this->_rawRequest->getOrigCountryId();
+        $measureUnit = $this->getCountryParams($countryId)->getMeasureUnit();
+        if (empty($measureUnit)) {
+            Mage::throwException(Mage::helper('usa')->__("Cannot identify measure unit for %s", $countryId));
+        }
+        return $measureUnit;
+    }
+
+    /**
+     * Returns weight unit (kg or pound)
+     *
+     * @return string
+     */
+    protected function _getWeightUnit()
+    {
+        $countryId = $this->_rawRequest->getOrigCountryId();
+        $weightUnit = $this->getCountryParams($countryId)->getWeightUnit();
+        if (empty($weightUnit)) {
+            Mage::throwException(Mage::helper('usa')->__("Cannot identify weight unit for %s", $countryId));
+        }
+        return $weightUnit;
+    }
+
+    /**
+     * Get Country Params by Country Code
+     *
+     * @param string $countryCode
+     * @return Varien_Object
+     *
+     * @see $countryCode ISO 3166 Codes (Countries) A2
+     */
+    protected function getCountryParams($countryCode)
+    {
+        if (empty($this->_countryParams)) {
+            $dhlConfigPath = Mage::getModuleDir('etc', 'Mage_Usa')  . DS . 'dhl' . DS;
+            $countriesXml = file_get_contents($dhlConfigPath . 'international' . DS . 'countries.xml');
+            $this->_countryParams = new Varien_Simplexml_Element($countriesXml);
+        }
+        if (isset($this->_countryParams->$countryCode)) {
+            $countryParams = new Varien_Object($this->_countryParams->$countryCode->asArray());
+        }
+        return isset($countryParams) ? $countryParams : new Varien_Object();
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    protected function _doShipmentRequest(Varien_Object $request)
+    {
+        $this->_prepareShipmentRequest($request);
+        $this->_mapRequestToShipment($request);
+        $this->setRequest($request);
+
+        return $this->_doRequest();
+    }
+
+    /**
+     * Processing additional validation to check is carrier applicable.
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
+     */
+    public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
+    {
+        //Skip by item validation if there is no items in request
+        if (!count($this->getAllItems($request))) {
+            $this->_errors[] = Mage::helper('usa')->__('There is no items in this order');
+        }
+
+        $countryParams = $this->getCountryParams(
+            Mage::getStoreConfig(Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID, $request->getStoreId())
+        );
+        if (!$countryParams->getData()) {
+            $this->_errors[] = Mage::helper('usa')->__('Please, specify origin country');
+        }
+
+        if (!empty($this->_errors)) {
+            return $this->_showError();
+        }
+
+        return $this;
+    }
+
+    /**
+     * Show default error
+     *
+     * @return bool|Mage_Shipping_Model_Rate_Result_Error
+     */
+    protected function _showError()
+    {
+        $showMethod = $this->getConfigData('showmethod');
+
+        if ($showMethod) {
+            /* @var $error Mage_Shipping_Model_Rate_Result_Error */
+            $error = Mage::getModel('shipping/rate_result_error');
+            $error->setCarrier(self::CODE);
+            $error->setCarrierTitle($this->getConfigData('title'));
+            $error->setErrorMessage($this->getConfigData('specificerrmsg'));
+            $this->_debug($this->_errors);
+            return $error;
+        } else {
+            return false;
+        }
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        return array(
+            self::DHL_CONTENT_TYPE_DOC      => Mage::helper('usa')->__('Documents'),
+            self::DHL_CONTENT_TYPE_NON_DOC  => Mage::helper('usa')->__('Non Documents')
+        );
+    }
+
+    /**
+     * Map request to shipment
+     *
+     * @param Varien_Object $request
+     * @return null
+     */
+    protected function _mapRequestToShipment(Varien_Object $request)
+    {
+
+        $request->setOrigCountryId($request->getShipperAddressCountryCode());
+        $this->_rawRequest = $request;
+        $customsValue = 0;
+        $packageWeight = 0;
+        $packages = $request->getPackages();
+        foreach ($packages as &$piece) {
+            $params = $piece['params'];
+            if ($params['width'] || $params['length'] || $params['height']) {
+                $minValue = $this->_getMinDimension($params['dimension_units']);
+                if ($params['width'] < $minValue || $params['length'] < $minValue || $params['height'] < $minValue) {
+                    $message = Mage::helper('usa')->__('Height, width and length should be equal or greater than %s', $minValue);
+                    Mage::throwException($message);
+                }
+            }
+
+            $weightUnits = $piece['params']['weight_units'];
+            $piece['params']['height']          =  $this->_getDimension($piece['params']['height'], $weightUnits);
+            $piece['params']['length']          =  $this->_getDimension($piece['params']['length'], $weightUnits);
+            $piece['params']['width']           =  $this->_getDimension($piece['params']['width'], $weightUnits);
+            $piece['params']['dimension_units'] =  $this->_getDimensionUnit();
+            $piece['params']['weight']          =  $this->_getWeight($piece['params']['weight'], false, $weightUnits);
+            $piece['params']['weight_units']    =  $this->_getWeightUnit();
+
+            $customsValue += $piece['params']['customs_value'];
+            $packageWeight += $piece['params']['weight'];
+        }
+
+        $request->setPackages($packages)
+            ->setPackageWeight($packageWeight)
+            ->setPackageValue($customsValue)
+            ->setValueWithDiscount($customsValue)
+            ->setPackageCustomsValue($customsValue)
+            ->setFreeMethodWeight(0);
+    }
+
+        /**
+         * Retrieve minimum allowed value for dimensions in given dimension unit
+         *
+         * @param string $dimensionUnit
+         * @return int
+         */
+        protected function _getMinDimension($dimensionUnit)
+        {
+            return $dimensionUnit == "CENTIMETER" ? self::DIMENSION_MIN_CM : self::DIMENSION_MIN_IN;
+        }
+
+    /**
+     * Do rate request and handle errors
+     *
+     * @return Mage_Shipping_Model_Rate_Result|Varien_Object
+     */
+    protected function _doRequest()
+    {
+        $rawRequest = $this->_request;
+
+        $originRegion = (string)$this->getCountryParams(
+            Mage::getStoreConfig(Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID, $this->getStore())
+        )->region;
+
+        if (!$originRegion) {
+            Mage::throwException(Mage::helper('usa')->__('Wrong Region.'));
+        }
+
+        if ($originRegion == 'AM') {
+            $originRegion = '';
+        }
+
+        $xmlStr = '<?xml version="1.0" encoding="UTF-8"?>'
+            . '<req:ShipmentValidateRequest' . $originRegion
+            . ' xmlns:req="http://www.dhl.com"'
+            . ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
+            . ' xsi:schemaLocation="http://www.dhl.com ship-val-req'
+            . ($originRegion ? '_' . $originRegion : '') . '.xsd" />';
+        $xml = new SimpleXMLElement($xmlStr);
+
+        $nodeRequest = $xml->addChild('Request', '', '');
+        $nodeServiceHeader = $nodeRequest->addChild('ServiceHeader');
+        $nodeServiceHeader->addChild('SiteID', (string)$this->getConfigData('id'));
+        $nodeServiceHeader->addChild('Password', (string)$this->getConfigData('password'));
+
+        if (!$originRegion) {
+            $xml->addChild('RequestedPickupTime', 'N', '');
+        }
+        $xml->addChild('NewShipper', 'N', '');
+        $xml->addChild('LanguageCode', 'EN', '');
+        $xml->addChild('PiecesEnabled', 'Y', '');
+
+        /* Billing */
+        $nodeBilling = $xml->addChild('Billing', '', '');
+        $nodeBilling->addChild('ShipperAccountNumber', (string)$this->getConfigData('account'));
+        /*
+         * Method of Payment:
+         * S (Shipper)
+         * R (Receiver)
+         * T (Third Party)
+         */
+        $nodeBilling->addChild('ShippingPaymentType', 'S');
+
+        /*
+         * Shipment bill to account â€“ required if Shipping PaymentType is other than 'S'
+         */
+        $nodeBilling->addChild('BillingAccountNumber', (string)$this->getConfigData('account'));
+        $nodeBilling->addChild('DutyPaymentType', 'S');
+        $nodeBilling->addChild('DutyAccountNumber', (string)$this->getConfigData('account'));
+
+        /* Receiver */
+        $nodeConsignee = $xml->addChild('Consignee', '', '');
+
+        $companyName = ($rawRequest->getRecipientContactCompanyName())
+            ? $rawRequest->getRecipientContactCompanyName()
+            : $rawRequest->getRecipientContactPersonName();
+
+        $nodeConsignee->addChild('CompanyName', substr($companyName, 0, 35));
+
+        $address = $rawRequest->getRecipientAddressStreet1(). ' ' . $rawRequest->getRecipientAddressStreet2();
+        $address = Mage::helper('core/string')->str_split($address, 35, false, true);
+        if (is_array($address)) {
+            foreach ($address as $addressLine) {
+                $nodeConsignee->addChild('AddressLine', $addressLine);
+            }
+        } else {
+            $nodeConsignee->addChild('AddressLine', $address);
+        }
+
+        $nodeConsignee->addChild('City', $rawRequest->getRecipientAddressCity());
+        $nodeConsignee->addChild('Division', $rawRequest->getRecipientAddressStateOrProvinceCode());
+        $nodeConsignee->addChild('PostalCode', $rawRequest->getRecipientAddressPostalCode());
+        $nodeConsignee->addChild('CountryCode', $rawRequest->getRecipientAddressCountryCode());
+        $nodeConsignee->addChild('CountryName',
+            (string)$this->getCountryParams($rawRequest->getRecipientAddressCountryCode())->name
+        );
+        $nodeContact = $nodeConsignee->addChild('Contact');
+        $nodeContact->addChild('PersonName', substr($rawRequest->getRecipientContactPersonName(), 0, 34));
+        $nodeContact->addChild('PhoneNumber', substr($rawRequest->getRecipientContactPhoneNumber(), 0, 24));
+
+        /* Commodity
+         * The CommodityCode element contains commodity code for shipment contents. Its
+         * value should lie in between 1 to 9999.This field is mandatory.
+         */
+        $nodeCommodity = $xml->addChild('Commodity', '', '');
+        $nodeCommodity->addChild('CommodityCode', '1');
+
+        $this->_checkDomesticStatus($rawRequest->getShipperAddressCountryCode(),
+            $rawRequest->getRecipientAddressCountryCode()
+        );
+
+        /* Dutiable */
+        if ($this->getConfigData('content_type') == self::DHL_CONTENT_TYPE_NON_DOC && !$this->_isDomestic) {
+            $nodeDutiable = $xml->addChild('Dutiable', '', '');
+            $nodeDutiable->addChild('DeclaredValue',
+                sprintf("%.2F", $rawRequest->getOrderShipment()->getOrder()->getSubtotal())
+            );
+            $baseCurrencyCode = Mage::app()->getWebsite($rawRequest->getWebsiteId())->getBaseCurrencyCode();
+            $nodeDutiable->addChild('DeclaredCurrency', $baseCurrencyCode);
+        }
+
+        /* Reference
+         * This element identifies the reference information. It is an optional field in the
+         * shipment validation request. Only the first reference will be taken currently.
+         */
+        $nodeReference = $xml->addChild('Reference', '', '');
+        $nodeReference->addChild('ReferenceID', 'shipment reference');
+        $nodeReference->addChild('ReferenceType', 'St');
+
+        /* Shipment Details */
+        $this->_shipmentDetails($xml, $rawRequest, $originRegion);
+
+        /* Shipper */
+        $nodeShipper = $xml->addChild('Shipper', '', '');
+        $nodeShipper->addChild('ShipperID', (string)$this->getConfigData('account'));
+        $nodeShipper->addChild('CompanyName', $rawRequest->getShipperContactCompanyName());
+        $nodeShipper->addChild('RegisteredAccount', (string)$this->getConfigData('account'));
+
+        $address = $rawRequest->getShipperAddressStreet1(). ' ' . $rawRequest->getShipperAddressStreet2();
+        $address = Mage::helper('core/string')->str_split($address, 35, false, true);
+        if (is_array($address)) {
+            foreach ($address as $addressLine) {
+                $nodeShipper->addChild('AddressLine', $addressLine);
+            }
+        } else {
+            $nodeShipper->addChild('AddressLine', $address);
+        }
+
+        $nodeShipper->addChild('City', $rawRequest->getShipperAddressCity());
+        $nodeShipper->addChild('Division', $rawRequest->getShipperAddressStateOrProvinceCode());
+        $nodeShipper->addChild('PostalCode', $rawRequest->getShipperAddressPostalCode());
+        $nodeShipper->addChild('CountryCode', $rawRequest->getShipperAddressCountryCode());
+        $nodeShipper->addChild('CountryName',
+            (string)$this->getCountryParams($rawRequest->getShipperAddressCountryCode())->name
+        );
+        $nodeContact = $nodeShipper->addChild('Contact', '', '');
+        $nodeContact->addChild('PersonName', substr($rawRequest->getShipperContactPersonName(), 0, 34));
+        $nodeContact->addChild('PhoneNumber', substr($rawRequest->getShipperContactPhoneNumber(), 0, 24));
+
+        $request = $xml->asXML();
+        $request = utf8_encode($request);
+
+        $responseBody = $this->_getCachedQuotes($request);
+        if ($responseBody === null) {
+            $debugData = array('request' => $request);
+            try {
+                $client = new Varien_Http_Client();
+                $client->setUri((string)$this->getConfigData('gateway_url'));
+                $client->setConfig(array('maxredirects' => 0, 'timeout' => 30));
+                $client->setRawData($request);
+                $responseBody = $client->request(Varien_Http_Client::POST)->getBody();
+                $debugData['result'] = $responseBody;
+                $this->_setCachedQuotes($request, $responseBody);
+            } catch (Exception $e) {
+                $this->_errors[$e->getCode()] = $e->getMessage();
+                $responseBody = '';
+            }
+            $this->_debug($debugData);
+        }
+        $this->_isShippingLabelFlag = true;
+        return $this->_parseResponse($responseBody);
+    }
+
+    /**
+     * Generation Shipment Details Node according to origin region
+     *
+     * @param SimpleXMLElement $xml
+     * @param Mage_Shipping_Model_Rate_Request $rawRequest
+     * @param string $originRegion
+     * @return void
+     */
+    protected function _shipmentDetails($xml, $rawRequest, $originRegion = '')
+    {
+        $nodeShipmentDetails = $xml->addChild('ShipmentDetails', '', '');
+        $nodeShipmentDetails->addChild('NumberOfPieces', count($rawRequest->getPackages()));
+
+        if ($originRegion) {
+            $nodeShipmentDetails->addChild('CurrencyCode',
+                Mage::app()->getWebsite($this->_request->getWebsiteId())->getBaseCurrencyCode()
+            );
+        }
+
+        $nodePieces = $nodeShipmentDetails->addChild('Pieces', '', '');
+
+        /*
+         * Package type
+         * EE (DHL Express Envelope), OD (Other DHL Packaging), CP (Custom Packaging)
+         * DC (Document), DM (Domestic), ED (Express Document), FR (Freight)
+         * BD (Jumbo Document), BP (Jumbo Parcel), JD (Jumbo Junior Document)
+         * JP (Jumbo Junior Parcel), PA (Parcel), DF (DHL Flyer)
+         */
+        $i = 0;
+        foreach ($rawRequest->getPackages() as $package) {
+            $nodePiece = $nodePieces->addChild('Piece', '', '');
+            $packageType = 'EE';
+            if ($package['params']['container'] == self::DHL_CONTENT_TYPE_NON_DOC) {
+                $packageType = 'CP';
+            }
+            $nodePiece->addChild('PieceID', ++$i);
+            $nodePiece->addChild('PackageType', $packageType);
+            $nodePiece->addChild('Weight', round($package['params']['weight'],1));
+            $params = $package['params'];
+            if ($params['width'] && $params['length'] && $params['height']) {
+                if (!$originRegion) {
+                    $nodePiece->addChild('Width', round($params['width']));
+                    $nodePiece->addChild('Height', round($params['height']));
+                    $nodePiece->addChild('Depth', round($params['length']));
+                } else {
+                    $nodePiece->addChild('Depth', round($params['length']));
+                    $nodePiece->addChild('Width', round($params['width']));
+                    $nodePiece->addChild('Height', round($params['height']));
+                }
+            }
+            $content = array();
+            foreach ($package['items'] as $item) {
+                $content[] = $item['name'];
+            }
+            $nodePiece->addChild('PieceContents', substr(implode(',', $content), 0, 34));
+        }
+
+        if (!$originRegion) {
+            $nodeShipmentDetails->addChild('Weight', round($rawRequest->getPackageWeight(),1));
+
+            $nodeShipmentDetails->addChild('WeightUnit', substr($this->_getWeightUnit(),0,1));
+
+            $nodeShipmentDetails->addChild('GlobalProductCode', $rawRequest->getShippingMethod());
+            $nodeShipmentDetails->addChild('LocalProductCode', $rawRequest->getShippingMethod());
+
+            $nodeShipmentDetails->addChild('Date', Mage::getModel('core/date')->date('Y-m-d'));
+            $nodeShipmentDetails->addChild('Contents', 'DHL Parcel');
+            /*
+             * The DoorTo Element defines the type of delivery service that applies to the shipment.
+             * The valid values are DD (Door to Door), DA (Door to Airport) , AA and DC (Door to
+             * Door non-compliant)
+             */
+            $nodeShipmentDetails->addChild('DoorTo', 'DD');
+            $nodeShipmentDetails->addChild('DimensionUnit', substr($this->_getDimensionUnit(),0,1));
+            if ($package['params']['container'] == self::DHL_CONTENT_TYPE_NON_DOC) {
+                $packageType = 'CP';
+            }
+            $nodeShipmentDetails->addChild('PackageType', $packageType);
+            if ($this->getConfigData('content_type') == self::DHL_CONTENT_TYPE_NON_DOC) {
+                $nodeShipmentDetails->addChild('IsDutiable', 'Y');
+            }
+            $nodeShipmentDetails->addChild('CurrencyCode',
+                Mage::app()->getWebsite($this->_request->getWebsiteId())->getBaseCurrencyCode()
+            );
+        } else {
+            if ($package['params']['container'] == self::DHL_CONTENT_TYPE_NON_DOC) {
+                $packageType = 'CP';
+            }
+            $nodeShipmentDetails->addChild('PackageType', $packageType);
+            $nodeShipmentDetails->addChild('Weight', $rawRequest->getPackageWeight());
+
+            $nodeShipmentDetails->addChild('DimensionUnit', substr($this->_getDimensionUnit(),0,1));
+            $nodeShipmentDetails->addChild('WeightUnit',  substr($this->_getWeightUnit(),0,1));
+
+            $nodeShipmentDetails->addChild('GlobalProductCode', $rawRequest->getShippingMethod());
+            $nodeShipmentDetails->addChild('LocalProductCode', $rawRequest->getShippingMethod());
+
+            /*
+             * The DoorTo Element defines the type of delivery service that applies to the shipment.
+             * The valid values are DD (Door to Door), DA (Door to Airport) , AA and DC (Door to
+             * Door non-compliant)
+             */
+            $nodeShipmentDetails->addChild('DoorTo', 'DD');
+            $nodeShipmentDetails->addChild('Date', Mage::getModel('core/date')->date('Y-m-d'));
+            $nodeShipmentDetails->addChild('Contents', 'DHL Parcel');
+        }
+    }
+
+    /**
+     * Get tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
+    public function getTracking($trackings)
+    {
+        if (!is_array($trackings)) {
+            $trackings = array($trackings);
+        }
+        $this->_getXMLTracking($trackings);
+
+        return $this->_result;
+    }
+
+    /**
+     * Send request for tracking
+     *
+     * @param array $trackings
+     * @return void
+     */
+    protected function _getXMLTracking($trackings)
+    {
+        $xmlStr = '<?xml version="1.0" encoding="UTF-8"?>'
+            . '<req:KnownTrackingRequest'
+            . ' xmlns:req="http://www.dhl.com"'
+            . ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
+            . ' xsi:schemaLocation="http://www.dhl.com TrackingRequestKnown.xsd" />';
+
+        $xml = new SimpleXMLElement($xmlStr);
+
+        $requestNode = $xml->addChild('Request', '', '');
+        $serviceHeaderNode = $requestNode->addChild('ServiceHeader', '', '');
+        $serviceHeaderNode->addChild('SiteID', (string)$this->getConfigData('id'));
+        $serviceHeaderNode->addChild('Password', (string)$this->getConfigData('password'));
+
+        $xml->addChild('LanguageCode', 'EN', '');
+        foreach ($trackings as $tracking) {
+            $xml->addChild('AWBNumber', $tracking, '');
+        }
+        /*
+         * Checkpoint details selection flag
+         * LAST_CHECK_POINT_ONLY
+         * ALL_CHECK_POINTS
+         */
+        $xml->addChild('LevelOfDetails', 'ALL_CHECK_POINTS', '');
+
+        /*
+         * Value that indicates for getting the tracking details with the additional
+         * piece details and its respective Piece Details, Piece checkpoints along with
+         * Shipment Details if queried.
+         *
+         * S-Only Shipment Details
+         * B-Both Shipment & Piece Details
+         * P-Only Piece Details
+         * Default is â€˜Sâ€™
+         */
+        //$xml->addChild('PiecesEnabled', 'ALL_CHECK_POINTS');
+
+        $request = $xml->asXML();
+        $request = utf8_encode($request);
+
+        $responseBody = $this->_getCachedQuotes($request);
+        if ($responseBody === null) {
+            $debugData = array('request' => $request);
+            try {
+                $client = new Varien_Http_Client();
+                $client->setUri((string)$this->getConfigData('gateway_url'));
+                $client->setConfig(array('maxredirects' => 0, 'timeout' => 30));
+                $client->setRawData($request);
+                $responseBody = $client->request(Varien_Http_Client::POST)->getBody();
+                $debugData['result'] = $responseBody;
+                $this->_setCachedQuotes($request, $responseBody);
+            } catch (Exception $e) {
+                $this->_errors[$e->getCode()] = $e->getMessage();
+                $responseBody = '';
+            }
+            $this->_debug($debugData);
+        }
+
+        $this->_parseXmlTrackingResponse($trackings, $responseBody);
+    }
+
+    /**
+     * Parse xml tracking response
+     *
+     * @param array $trackings
+     * @param string $response
+     * @return void
+     */
+    protected function _parseXmlTrackingResponse($trackings, $response)
+    {
+        $errorTitle = Mage::helper('usa')->__('Unable to retrieve tracking');
+        $resultArr = array();
+
+        $htmlTranslationTable = get_html_translation_table(HTML_ENTITIES);
+        unset($htmlTranslationTable['<'], $htmlTranslationTable['>'], $htmlTranslationTable['"']);
+        $response = str_replace(array_keys($htmlTranslationTable), array_values($htmlTranslationTable), $response);
+
+        if (strlen(trim($response)) > 0) {
+            $xml = simplexml_load_string($response);
+            if (!is_object($xml)) {
+                $errorTitle = Mage::helper('usa')->__('Response is in the wrong format');
+            }
+            if (is_object($xml) && ((isset($xml->Response->Status->ActionStatus)
+                && $xml->Response->Status->ActionStatus == 'Failure')
+                || isset($xml->GetQuoteResponse->Note->Condition))
+            ) {
+                if (isset($xml->Response->Status->Condition)) {
+                    $nodeCondition = $xml->Response->Status->Condition;
+                }
+
+                $code = isset($nodeCondition->ConditionCode) ? (string)$nodeCondition->ConditionCode : 0;
+                $data = isset($nodeCondition->ConditionData) ? (string)$nodeCondition->ConditionData : '';
+                $this->_errors[$code] = Mage::helper('usa')->__('Error #%s : %s', $code, $data);
+            } elseif (is_object($xml) && is_object($xml->AWBInfo)) {
+                foreach ($xml->AWBInfo as $awbinfo) {
+                    $awbinfoData = array();
+                    $trackNum = isset($awbinfo->AWBNumber) ? (string)$awbinfo->AWBNumber : '';
+                    if (!is_object($awbinfo) || !$awbinfo->ShipmentInfo) {
+                        $this->_errors[$trackNum] = Mage::helper('usa')->__('Unable to retrieve tracking');
+                        continue;
+                    }
+                    $shipmentInfo = $awbinfo->ShipmentInfo;
+
+                    if ($shipmentInfo->ShipmentDesc) {
+                        $awbinfoData['service'] = (string)$shipmentInfo->ShipmentDesc;
+                    }
+
+                    $awbinfoData['weight'] = (string)$shipmentInfo->Weight . ' ' . (string)$shipmentInfo->WeightUnit;
+
+                    $packageProgress = array();
+                    if (isset($shipmentInfo->ShipmentEvent)) {
+                        foreach ($shipmentInfo->ShipmentEvent as $shipmentEvent) {
+                            $shipmentEventArray = array();
+                            $shipmentEventArray['activity'] = (string)$shipmentEvent->ServiceEvent->EventCode
+                                . ' ' . (string)$shipmentEvent->ServiceEvent->Description;
+                            $shipmentEventArray['deliverydate'] = (string)$shipmentEvent->Date;
+                            $shipmentEventArray['deliverytime'] = (string)$shipmentEvent->Time;
+                            $shipmentEventArray['deliverylocation'] = (string)$shipmentEvent->ServiceArea->Description
+                                . ' [' . (string)$shipmentEvent->ServiceArea->ServiceAreaCode . ']';
+                            $packageProgress[] = $shipmentEventArray;
+                        }
+                        $awbinfoData['progressdetail'] = $packageProgress;
+                    }
+                    $resultArr[$trackNum] = $awbinfoData;
+                }
+            }
+        }
+
+        $result = Mage::getModel('shipping/tracking_result');
+
+        if (!empty($resultArr)) {
+            foreach ($resultArr as $trackNum => $data) {
+                $tracking = Mage::getModel('shipping/tracking_result_status');
+                $tracking->setCarrier($this->_code);
+                $tracking->setCarrierTitle($this->getConfigData('title'));
+                $tracking->setTracking($trackNum);
+                $tracking->addData($data);
+                $result->append($tracking);
+            }
+        }
+
+        if (!empty($this->_errors) || empty($resultArr)) {
+            $resultArr = !empty($this->_errors) ? $this->_errors : $trackings;
+            foreach ($resultArr as $trackNum => $err) {
+                $error = Mage::getModel('shipping/tracking_result_error');
+                $error->setCarrier($this->_code);
+                $error->setCarrierTitle($this->getConfigData('title'));
+                $error->setTracking(!empty($this->_errors) ? $trackNum : $err);
+                $error->setErrorMessage(!empty($this->_errors) ? $err : $errorTitle);
+                $result->append($error);
+            }
+        }
+
+        $this->_result = $result;
+    }
+
+    /**
+     * Get final price for shipping method with handling fee per package
+     *
+     * @param float $cost
+     * @param string $handlingType
+     * @param float $handlingFee
+     * @return float
+     */
+    protected function _getPerpackagePrice($cost, $handlingType, $handlingFee)
+    {
+        if ($handlingType == Mage_Shipping_Model_Carrier_Abstract::HANDLING_TYPE_PERCENT) {
+            return $cost + ($cost * $this->_numBoxes * $handlingFee / 100);
+        }
+
+        return $cost + $this->_numBoxes * $handlingFee;
+    }
+
+    /**
+     * Do request to shipment
+     *
+     * @param Mage_Shipping_Model_Shipment_Request $request
+     * @return Varien_Object
+     */
+    public function requestToShipment(Mage_Shipping_Model_Shipment_Request $request)
+    {
+        $packages = $request->getPackages();
+        if (!is_array($packages) || !$packages) {
+            Mage::throwException(Mage::helper('usa')->__('No packages for request'));
+        }
+        $result = $this->_doShipmentRequest($request);
+
+        $response = new Varien_Object(array(
+            'info' => array(array(
+                'tracking_number' => $result->getTrackingNumber(),
+                'label_content'   => $result->getShippingLabelContent()
+            ))
+        ));
+
+        $request->setMasterTrackingId($result->getTrackingNumber());
+
+        return $response;
+    }
+
+    /**
+     * Check if shipping is domestic
+     *
+     * @param string $origCountryCode
+     * @param string $destCountryCode
+     * @return bool
+     */
+    protected function _checkDomesticStatus($origCountryCode, $destCountryCode)
+    {
+        $this->_isDomestic = false;
+
+        $origCountry = (string)$this->getCountryParams($origCountryCode)->name;
+        $destCountry = (string)$this->getCountryParams($destCountryCode)->name;
+        $isDomestic = (string)$this->getCountryParams($destCountryCode)->domestic;
+
+        if ($origCountry == $destCountry && $isDomestic) {
+            $this->_isDomestic = true;
+        }
+
+        return $this->_isDomestic;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Contenttype.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Contenttype.php
new file mode 100644
index 0000000..288bedd
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Contenttype.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL Content Type
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Contenttype
+{
+    /**
+     * Returns array to be used in multiselect on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        return array(
+            array('label' => Mage::helper('usa')->__('Documents'),
+                'value' => Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_DOC),
+            array('label' => Mage::helper('usa')->__('Non documents'),
+                'value' => Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_NON_DOC),
+        );
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Abstract.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Abstract.php
new file mode 100644
index 0000000..8fe3137
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Abstract.php
@@ -0,0 +1,72 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+abstract class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
+{
+    /**
+     * Carrier Product Type Indicator
+     *
+     * @var string $_contentType
+     */
+    protected $_contentType;
+
+    /**
+     * Show 'none' in methods list or not;
+     *
+     * @var bool
+     */
+    protected $_noneMethod = false;
+
+    /**
+     * Returns array to be used in multiselect on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        /* @var $carrierModel Mage_Usa_Model_Shipping_Carrier_Dhl_International */
+        $carrierModel   = Mage::getSingleton('usa/shipping_carrier_dhl_international');
+        $dhlProducts    = $carrierModel->getDhlProducts($this->_contentType);
+
+        $options = array();
+        foreach ($dhlProducts as $code => $title) {
+            $options[] = array('value' => $code, 'label' => $title);
+        }
+
+        if ($this->_noneMethod) {
+            array_unshift($options, array('value' => '', 'label' => Mage::helper('usa')->__('None')));
+        }
+
+        return $options;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Doc.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Doc.php
new file mode 100644
index 0000000..2fc825d
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Doc.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Doc
+    extends Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
+{
+    /**
+     * Carrier Product Type Indicator
+     *
+     * @var string $_contentType
+     */
+    protected $_contentType = Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_DOC;
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freedoc.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freedoc.php
new file mode 100644
index 0000000..577024e
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freedoc.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Freedoc
+    extends Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
+{
+    /**
+     * Carrier Product Type Indicator
+     *
+     * @var string $_contentType
+     */
+    protected $_contentType = Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_DOC;
+
+    /**
+     * Show 'none' in methods list or not;
+     *
+     * @var bool
+     */
+    protected $_noneMethod = true;
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freenondoc.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freenondoc.php
new file mode 100644
index 0000000..10cffcf
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Freenondoc.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Freenondoc
+    extends Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
+{
+    /**
+     * Carrier Product Type Indicator
+     *
+     * @var string $_contentType
+     */
+    protected $_contentType = Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_NON_DOC;
+
+    /**
+     * Show 'none' in methods list or not;
+     *
+     * @var bool
+     */
+    protected $_noneMethod = true;
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Nondoc.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Nondoc.php
new file mode 100644
index 0000000..e370db4
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Nondoc.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Nondoc
+    extends Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Abstract
+{
+    /**
+     * Carrier Product Type Indicator
+     *
+     * @var string $_contentType
+     */
+    protected $_contentType = Mage_Usa_Model_Shipping_Carrier_Dhl_International::DHL_CONTENT_TYPE_NON_DOC;
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Size.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Size.php
new file mode 100644
index 0000000..88402b5
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Size.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Size
+{
+    /**
+     * Returns array to be used in multiselect on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        $unitArr = Mage::getSingleton('usa/shipping_carrier_dhl_international')->getCode('size');
+
+        $returnArr = array();
+        foreach ($unitArr as $key => $val) {
+            $returnArr[] = array('value' => $key, 'label' => $val);
+        }
+        return $returnArr;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Unitofmeasure.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Unitofmeasure.php
new file mode 100644
index 0000000..b319955
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International/Source/Method/Unitofmeasure.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * Source model for DHL shipping methods for documentation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_International_Source_Method_Unitofmeasure
+{
+    /**
+     * Returns array to be used in multiselect on back-end
+     *
+     * @return array
+     */
+    public function toOptionArray()
+    {
+        $unitArr = Mage::getSingleton('usa/shipping_carrier_dhl_international')->getCode('unit_of_measure');
+
+        $returnArr = array();
+        foreach ($unitArr as $key => $val) {
+            $returnArr[] = array('value' => $key, 'label' => $val);
+        }
+        return $returnArr;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf.php
new file mode 100644
index 0000000..be9fbcf
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf.php
@@ -0,0 +1,118 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * DHL International (API v1.4) Label Creation
+ *
+ * @category Mage
+ * @package  Mage_Usa
+ * @author   Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf
+{
+    /**
+     * Label Information
+     *
+     * @var SimpleXMLElement
+     */
+    protected $_info;
+
+    /**
+     * Shipment Request
+     *
+     * @var Mage_Shipping_Model_Shipment_Request
+     */
+    protected $_request;
+
+    /**
+     * Dhl International Label Creation Class constructor
+     *
+     * @param array $arguments
+     */
+    public function __construct(array $arguments)
+    {
+        $this->_info    = $arguments['info'];
+        $this->_request = $arguments['request'];
+    }
+
+    /**
+     * Create Label
+     *
+     * @return string
+     * @throws Zend_Pdf_Exception
+     * @throws InvalidArgumentException
+     */
+    public function render()
+    {
+        $pdf = new Zend_Pdf();
+
+        $pdfBuilder = new Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder();
+
+        $template = new Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page(Zend_Pdf_Page::SIZE_A4_LANDSCAPE);
+        $pdfBuilder->setPage($template)
+            ->addProductName((string)$this->_info->ProductShortName)
+            ->addProductContentCode((string)$this->_info->ProductContentCode)
+        //->addUnitId({unitId})
+        //->addReferenceData({referenceData})
+            ->addSenderInfo($this->_info->Shipper)
+            ->addOriginInfo((string)$this->_info->OriginServiceArea->ServiceAreaCode)
+            ->addReceiveInfo($this->_info->Consignee)
+            ->addDestinationFacilityCode(
+                (string)$this->_info->Consignee->CountryCode,
+                (string)$this->_info->DestinationServiceArea->ServiceAreaCode,
+                (string)$this->_info->DestinationServiceArea->FacilityCode
+            )
+            ->addServiceFeaturesCodes()
+            ->addDeliveryDateCode()
+            ->addShipmentInformation($this->_request->getOrderShipment())
+            ->addDateInfo($this->_info->ShipmentDate)
+            ->addWeightInfo((string)$this->_info->ChargeableWeight, (string)$this->_info->WeightUnit)
+            ->addWaybillBarcode((string)$this->_info->AirwayBillNumber, (string)$this->_info->Barcodes->AWBBarCode)
+            ->addRoutingBarcode(
+                (string)$this->_info->DHLRoutingCode,
+                (string)$this->_info->DHLRoutingDataId,
+                (string)$this->_info->Barcodes->DHLRoutingBarCode
+            )
+            ->addBorder();
+
+        $packages = array_values($this->_request->getPackages());
+        $i = 0;
+        foreach ($this->_info->Pieces->Piece as $piece) {
+            $page = new Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page($template);
+            $pdfBuilder->setPage($page)
+                ->addPieceNumber((int)$piece->PieceNumber, (int)$this->_info->Piece)
+                ->addContentInfo($packages[$i])
+                ->addPieceIdBarcode(
+                    (string)$piece->DataIdentifier,
+                    (string)$piece->LicensePlate,
+                    (string)$piece->LicensePlateBarCode
+                );
+            array_push($pdf->pages, $page);
+            $i++;
+        }
+        return $pdf->render();
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/Page.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/Page.php
new file mode 100644
index 0000000..254ae7b
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/Page.php
@@ -0,0 +1,150 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * DHL International (API v1.4) Label Creation
+ *
+ * @category Mage
+ * @package  Mage_Usa
+ * @author   Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page extends Zend_Pdf_Page
+{
+    /**
+     * Text align constants
+     */
+    const ALIGN_RIGHT = 'right';
+    const ALIGN_LEFT = 'left';
+    const ALIGN_CENTER = 'center';
+
+    /**
+     * Dhl International Label Creation Class Pdf Page constructor
+     * Create/Make a copy of pdf page
+     *
+     * @param Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page|string $param1
+     * @param null $param2
+     * @param null $param3
+     */
+    public function __construct($param1, $param2 = null, $param3 = null)
+    {
+        if ($param1 instanceof Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+            && $param2 === null && $param3 === null
+        ) {
+            $this->_contents = $param1->getContents();
+        }
+        parent::__construct($param1, $param2, $param3);
+    }
+
+    /**
+     * Get PDF Page contents
+     *
+     * @return string
+     */
+    public function getContents()
+    {
+        return $this->_contents;
+    }
+
+    /**
+     * Calculate the width of given text in points taking into account current font and font-size
+     *
+     * @param string $text
+     * @param Zend_Pdf_Resource_Font $font
+     * @param float $font_size
+     * @return float
+     */
+    public function getTextWidth($text, Zend_Pdf_Resource_Font $font, $font_size)
+    {
+        $drawing_text = iconv('', 'UTF-16BE', $text);
+        $characters = array();
+        for ($i = 0; $i < strlen($drawing_text); $i++) {
+            $characters[] = (ord($drawing_text[$i++]) << 8) | ord($drawing_text[$i]);
+        }
+        $glyphs = $font->glyphNumbersForCharacters($characters);
+        $widths = $font->widthsForGlyphs($glyphs);
+        $text_width = (array_sum($widths) / $font->getUnitsPerEm()) * $font_size;
+        return $text_width;
+    }
+
+    /**
+     * Draw a line of text at the specified position.
+     *
+     * @param string $text
+     * @param float $x
+     * @param float $y
+     * @param string $charEncoding (optional) Character encoding of source text.
+     *   Defaults to current locale.
+     * @param $align
+     * @throws Zend_Pdf_Exception
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+     */
+    public function drawText($text, $x, $y, $charEncoding = '', $align = self::ALIGN_LEFT)
+    {
+        $left = null;
+        switch ($align) {
+            case self::ALIGN_LEFT:
+                $left = $x;
+                break;
+
+            case self::ALIGN_CENTER:
+                $textWidth = $this->getTextWidth($text, $this->getFont(), $this->getFontSize());
+                $left = $x - ($textWidth / 2);
+                break;
+
+            case self::ALIGN_RIGHT:
+                $textWidth = $this->getTextWidth($text, $this->getFont(), $this->getFontSize());
+                $left = $x - $textWidth;
+                break;
+        }
+        return parent::drawText($text, $left, $y, $charEncoding);
+    }
+
+    /**
+     * Draw a text paragraph taking into account the maximum number of symbols in a row.
+     * If line is longer - spit it.
+     *
+     * @param array $lines
+     * @param int $x
+     * @param int $y
+     * @param int $maxWidth - number of symbols
+     * @param string $align
+     * @throws Zend_Pdf_Exception
+     * @return float
+     */
+    public function drawLines($lines, $x, $y, $maxWidth, $align = self::ALIGN_LEFT)
+    {
+        foreach ($lines as $line) {
+            if (strlen($line) > $maxWidth) {
+                $subLines = Mage::helper('core/string')->str_split($line, $maxWidth, true, true);
+                $y = $this->drawLines(array_filter($subLines), $x, $y, $maxWidth, $align);
+                continue;
+            }
+            $this->drawText($line, $x, $y, null, $align);
+            $y -= ceil($this->getFontSize());
+        }
+        return $y;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/PageBuilder.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/PageBuilder.php
new file mode 100644
index 0000000..0bf6537
--- /dev/null
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Label/Pdf/PageBuilder.php
@@ -0,0 +1,666 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+/**
+ * DHL International (API v1.4) Label Creation
+ *
+ * @category Mage
+ * @package  Mage_Usa
+ * @author   Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+{
+    /**
+     * X coordinate of a block
+     */
+    const X_INDENT = 60;
+
+    /**
+     * Y coordinate of a block
+     */
+    const Y_INDENT = 15;
+
+    /**
+     * Pdf Page Instance
+     *
+     * @var Zend_Pdf_Page
+     */
+    protected $_page;
+
+    /**
+     * Create font instances
+     */
+    public function __construct()
+    {
+        $this->_fontNormal = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);
+        $this->_fontBold = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA_BOLD);
+    }
+
+    /**
+     * Get Page
+     *
+     * @return Zend_Pdf_Page
+     */
+    public function getPage()
+    {
+        return $this->_page;
+    }
+
+    /**
+     * Set Page
+     *
+     * @param Zend_Pdf_Page $page
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     */
+    public function setPage(Zend_Pdf_Page $page)
+    {
+        $this->_page = $page;
+        return $this;
+    }
+
+    /**
+     * Calculate x coordinate with identation
+     *
+     * @param int $pt
+     * @return int
+     */
+    protected function _x($pt)
+    {
+        return $pt + self::X_INDENT;
+    }
+
+    /**
+     * Calculate y coordinate with identation
+     *
+     * @param int $pt
+     * @return int
+     */
+    protected function _y($pt)
+    {
+        return 595 - self::Y_INDENT - $pt;
+    }
+
+    /**
+     * Add Border
+     *
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+     * @throws Zend_Pdf_Exception
+     */
+    public function addBorder()
+    {
+        $x = $this->_x(0);
+        $y = $this->_y(0);
+
+        $image = new Zend_Pdf_Resource_Image_Jpeg(Mage::getBaseDir('media')  . DS .  'dhl' . DS . 'logo.jpg');
+        $this->_page->drawImage($image, $x + 191, $this->_y(27), $x + 287, $this->_y(1));
+
+        /* Vertical borders */
+        $this->_page->drawLine($x, $y, $x, $this->_y(568));
+        $this->_page->drawLine($x + 287.5, $y, $x + 287.5, $this->_y(568));
+        $this->_page->drawLine($x + 139.5, $y, $x + 139.5, $this->_y(28));
+        $this->_page->drawLine($x + 190.5, $y, $x + 190.5, $this->_y(28));
+
+        /* Horisontal borders */
+        $this->_page->drawLine($x, $y, $x + 288, $y);
+        $this->_page->drawLine($x, $this->_y(28), $x + 288, $this->_y(28));
+        $this->_page->drawLine($x, $this->_y(80.5), $x + 288, $this->_y(80.5));
+        $this->_page->drawLine($x, $this->_y(164), $x + 288, $this->_y(164));
+        $this->_page->drawLine($x, $this->_y(194), $x + 288, $this->_y(194));
+        $this->_page->drawLine($x, $this->_y(217.5), $x + 288, $this->_y(217.5));
+        $this->_page->drawLine($x, $this->_y(245.5), $x + 288, $this->_y(245.5));
+        $this->_page->drawLine($x, $this->_y(568.5), $x + 288, $this->_y(568.5));
+
+        $this->_page->setLineWidth(0.3);
+        $x = $this->_x(3);
+        $y = $this->_y(83);
+        $this->_page->drawLine($x, $y, $x + 10, $y);
+        $this->_page->drawLine($x, $y, $x, $y - 10);
+
+        $x = $this->_x(3);
+        $y = $this->_y(161);
+        $this->_page->drawLine($x, $y, $x + 10, $y);
+        $this->_page->drawLine($x, $y, $x, $y + 10);
+
+        $x = $this->_x(285);
+        $y = $this->_y(83);
+        $this->_page->drawLine($x, $y, $x - 10, $y);
+        $this->_page->drawLine($x, $y, $x, $y - 10);
+
+        $x = $this->_x(285);
+        $y = $this->_y(161);
+        $this->_page->drawLine($x, $y, $x - 10, $y);
+        $this->_page->drawLine($x, $y, $x, $y + 10);
+
+        return $this;
+    }
+
+    /**
+     * Add Product Name
+     *
+     * @param string $name
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addProductName($name)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontBold, 9);
+        if (!strlen($name)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Product name is missing'));
+        }
+        $this->_page->drawText($name, $this->_x(8), $this->_y(12));
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Product Content Code
+     *
+     * @param string $code
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Zend_Pdf_Exception
+     * @throws InvalidArgumentException
+     */
+    public function addProductContentCode($code)
+    {
+        $this->_page->saveGS();
+        $codes = array(
+            'TDK' => 0, 'TDE' => 1, 'TDL' => 0, 'TDM' => 1, 'TDT' => 0,
+            'TDY' => 1, 'XPD' => 0, 'DOX' => 0, 'WPX' => 1, 'ECX' => 0,
+            'DOM' => 0
+        );
+        if (!key_exists($code, $codes)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Product content code is invalid'));
+        }
+        $font = null;
+        if ($codes[$code]) {
+            $this->_page->drawRectangle(
+                $this->_x(140),
+                $this->_y(0),
+                $this->_x(190),
+                $this->_y(28),
+                Zend_Pdf_Page::SHAPE_DRAW_FILL
+            );
+            $this->_page->setFillColor(new Zend_Pdf_Color_Html("#ffffff"));
+            $font = $this->_fontBold;
+        } else {
+            $font = $this->_fontNormal;
+        }
+        $this->_page->setFont($font, 17);
+        $this->_page->drawText($code, $this->_x(146), $this->_y(21));
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Unit Id
+     *
+     * @param int $id
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+     * @throws Zend_Pdf_Exception
+     */
+    public function addUnitId($id)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+
+        $this->_page->drawText('Unit ID', $this->_x(8), $this->_y(20));
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Reference Data
+     *
+     * @param $data
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+     * @throws Zend_Pdf_Exception
+     */
+    public function addReferenceData($data)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('GREF', $this->_x(80), $this->_y(20));
+        //TODO: Add reference data rendering
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Sender Info
+     *
+     * @param SimpleXMLElement $sender
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addSenderInfo(SimpleXMLElement $sender)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('From:', $this->_x(8), $this->_y(36));
+        $contactName = implode(' ', array_filter(array((string)$sender->CompanyName,
+            (string)$sender->Contact->PersonName))
+        );
+        if (!$contactName) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Sender contact name is missing'));
+        }
+        $this->_page->drawText($contactName, $this->_x(25), $this->_y(36));
+
+        $phoneNumber = implode(' ', array_filter(array((string)$sender->Contact->PhoneNumber,
+            (string)$sender->Contact->PhoneExtension))
+        );
+        $phoneNumber = $phoneNumber ? "Phone: " . $phoneNumber : null;
+        $pageY = $this->_drawSenderAddress($sender->AddressLine, $phoneNumber);
+
+        $divisionCode = (string)(strlen($sender->DivisionCode) ? $sender->DivisionCode . ' ' : null);
+        $cityInfo = implode(' ', array_filter(array($sender->City, $divisionCode, $sender->PostalCode)));
+        if (!strlen($cityInfo)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Sender city info is missing'));
+        }
+        $this->_page->drawText($cityInfo, $this->_x(25), $pageY);
+
+        $this->_page->setFont($this->_fontBold, 6);
+        $countryInfo = (string)(($sender->CountryName) ? $sender->CountryName : $sender->CountryCode);
+        if (!strlen($countryInfo)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Sender country info is missing'));
+        }
+        $this->_page->drawText($countryInfo, $this->_x(25), $pageY - $this->_page->getFontSize());
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Draw Sender Address
+     *
+     * @param SimpleXMLElement $addressLines
+     * @param string $phoneNumber
+     * @return float
+     * @throws Zend_Pdf_Exception
+     */
+    protected function _drawSenderAddress(SimpleXMLElement $addressLines, $phoneNumber)
+    {
+        $lines = array();
+        foreach ($addressLines as $line) {
+            $lines [] = $line;
+        }
+
+        $pageY = 0;
+        if (strlen($lines[0]) > 28) {
+            $firstLine = array_shift($lines);
+            $pageY = $this->_page->drawLines(array($firstLine), $this->_x(25), $this->_y(42), 28);
+            $this->_page->drawText($phoneNumber, $this->_x(103), $this->_y(42));
+        } else {
+            $pageY = $this->_y(42);
+            $lineLength = $this->_page->getTextWidth(
+                $lines[0] . ' ', $this->_page->getFont(), $this->_page->getFontSize()
+            );
+            $this->_page->drawText($phoneNumber, $this->_x(25 + $lineLength), $this->_y(42));
+        }
+
+        return $this->_page->drawLines($lines, $this->_x(25), $pageY, 49);
+    }
+
+    /**
+     * Add Origin Info
+     *
+     * @param string $serviceAreaCode
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addOriginInfo($serviceAreaCode)
+    {
+        if (strlen(!$serviceAreaCode)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Origin serviceAreaCode is missing'));
+        }
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText("Origin:", $this->_x(260), $this->_y(36));
+        $this->_page->setFont($this->_fontBold, 9);
+        $this->_page->drawText($serviceAreaCode, $this->_x(260), $this->_y(45));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Receive Info
+     *
+     * @param SimpleXMLElement $consignee
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Zend_Pdf_Exception
+     */
+    public function addReceiveInfo(SimpleXMLElement $consignee)
+    {
+        $this->_page->saveGS();
+
+        $this->_page->setFont($this->_fontNormal, 9);
+        $this->_page->drawText("To:", $this->_x(5), $this->_y(92));
+        $this->_page->drawText($consignee->CompanyName, $this->_x(20), $this->_y(90));
+        $y = $this->_page->drawLines($consignee->AddressLine, $this->_x(19), $this->_y(100), 50);
+
+        $this->_page->setFont($this->_fontBold, 11);
+        $cityInfo = implode(' ', array_filter(array($consignee->PostalCode, $consignee->City,
+            $consignee->DivisionCode))
+        );
+        $y = min($y - 3, 460);
+        $this->_page->drawLines(array($cityInfo, $consignee->CountryName), $this->_x(20), $y, 44);
+
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('Contact:', $this->_x(260), $this->_y(90));
+
+        $y = $this->_page->drawLines(array($consignee->Contact->PersonName), $this->_x(283), $this->_y(98), 25,
+            Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_RIGHT
+        );
+        $phoneNumber = implode(' ', array_filter(array($consignee->Contact->PhoneNumber,
+            $consignee->Contact->PhoneExtension))
+        );
+        $this->_page->drawText($phoneNumber, $this->_x(283), $y, null,
+            Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_RIGHT
+        );
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Destination Facility Code
+     *
+     * @param string $countryCode
+     * @param string $serviceAreaCode
+     * @param string $facilityCode
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addDestinationFacilityCode($countryCode, $serviceAreaCode, $facilityCode)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 20);
+        $code = implode('-', array_filter(array($countryCode, $serviceAreaCode, $facilityCode)));
+
+        if (!strlen($code)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Destination facility code is empty'));
+        }
+        $this->_page->drawText($code, $this->_x(144), $this->_y(186), null,
+            Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_CENTER
+        );
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Service Features Codes
+     *
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Zend_Pdf_Exception
+     */
+    public function addServiceFeaturesCodes()
+    {
+        $this->_page->saveGS();
+        $this->_page->drawRectangle($this->_x(0), $this->_y(195), $this->_x(218), $this->_y(217),
+            Zend_Pdf_Page::SHAPE_DRAW_FILL
+        );
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Delivery Date Code
+     *
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Zend_Pdf_Exception
+     */
+    public function addDeliveryDateCode()
+    {
+        $this->_page->saveGS();
+
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('Day:', $this->_x(220), $this->_y(201));
+        $this->_page->drawText('Time:', $this->_x(250), $this->_y(201));
+
+        $this->_page->setFont($this->_fontNormal, 20);
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Shipment Information
+     *
+     * @param Mage_Sales_Model_Order_Shipment $data
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page
+     * @throws Exception
+     */
+    public function addShipmentInformation($data)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+
+        $refCode = $data->getOrder()->getIncrementId();
+        if (!$refCode) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Reference code is missing'));
+        }
+        $this->_page->drawText('Ref Code: ' . Mage::helper('usa')->__('Order #%s', $refCode), $this->_x(8),
+            $this->_y(224)
+        );
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Date Info
+     * @param string $date
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Zend_Pdf_Exception
+     */
+    public function addDateInfo($date)
+    {
+        $this->_page->saveGS();
+
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('Date:', $this->_x(160), $this->_y(224));
+        $this->_page->drawText($date, $this->_x(150), $this->_y(231));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Weight Info
+     *
+     * @param string $weight
+     * @param string $unit
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addWeightInfo($weight, $unit)
+    {
+        $this->_page->saveGS();
+
+        $units = array("K" => 'kg', "L" => 'lb');
+        if (!isset($units[$unit])) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Weight unit is invalid'));
+        }
+        $unit = $units[$unit];
+
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('Shpt Weight:', $this->_x(196), $this->_y(224));
+        $this->_page->setFont($this->_fontBold, 11);
+        $this->_page->drawText($weight . ' ' . $unit, $this->_x(195), $this->_y(234));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Content: Shipment Description
+     *
+     * @param array $package
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws Exception
+     */
+    public function addContentInfo($package)
+    {
+        $this->_page->saveGS();
+        $this->_page->setFont($this->_fontNormal, 6);
+        if (empty($package)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Package content is missing'));
+        }
+
+        $x = 225;
+        $y = 300;
+        $this->_page->drawText('Content: ', $this->_x($x), $this->_y($y));
+        $i = 0;
+        foreach ($package['items'] as $item) {
+            $i++;
+            $this->_page->drawText(substr($item['name'], 0, 20), $this->_x($x), $this->_y($y += 6));
+            if ($i == 12) {
+                break;
+            }
+        }
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Waybill Barcode
+     *
+     * @param string $number
+     * @param string $barCode
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addWaybillBarcode($number, $barCode)
+    {
+        $this->_page->saveGS();
+
+        if(!strlen($number) || !strlen($barCode)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Waybill barcode information is missing'));
+        }
+        $image = new Zend_Pdf_Resource_Image_Png("data://image/png;base64," . $barCode);
+        $this->_page->drawImage($image, $this->_x(0), $this->_y(296), $this->_x(232), $this->_y(375));
+
+        $this->_page->setFont($this->_fontNormal, 9);
+        $number = substr($number, 0, 2) . ' ' . substr($number, 2, 4) . ' ' . substr($number, 6, 4);
+        $this->_page->drawText("WAYBILL " . $number, $this->_x(13.5), $this->_y(382));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Routing Barcode
+     *
+     * @param string $routingCode
+     * @param string $id
+     * @param string $barCode
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addRoutingBarcode($routingCode, $id, $barCode)
+    {
+        $this->_page->saveGS();
+
+        if(!$barCode) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Routing barcode is missing'));
+        }
+
+        $image = new Zend_Pdf_Resource_Image_Png("data://image/png;base64," . $barCode);
+        $this->_page->drawImage($image, $this->_x(0), $this->_y(386), $this->_x(232), $this->_y(465));
+
+        $this->_page->setFont($this->_fontNormal, 9);
+        $routingText = '(' . $id . ')' . $routingCode;
+        $this->_page->drawText($routingText, $this->_x(12), $this->_y(472));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Piece Id Barcode
+     *
+     * @param string $dataIdentifier
+     * @param string $licensePlate
+     * @param string $barCode
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addPieceIdBarcode($dataIdentifier, $licensePlate, $barCode)
+    {
+        $this->_page->saveGS();
+
+        if (!strlen($barCode)) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Piece Id barcode is missing'));
+        }
+
+        $image = new Zend_Pdf_Resource_Image_Png('data://image/png;base64,' . $barCode);
+        $this->_page->drawImage($image, $this->_x(29), $this->_y(476), $this->_x(261), $this->_y(555));
+
+        $this->_page->setFont($this->_fontNormal, 9);
+        $routingText = '(' . $dataIdentifier . ')' . $licensePlate;
+        $this->_page->drawText($routingText, $this->_x(144), $this->_y(563), '',
+            Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_Page::ALIGN_CENTER
+        );
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+
+    /**
+     * Add Piece Number
+     *
+     * @param int $pieceNumber
+     * @param int $piecesTotal
+     * @return Mage_Usa_Model_Shipping_Carrier_Dhl_Label_Pdf_PageBuilder
+     * @throws InvalidArgumentException
+     * @throws Zend_Pdf_Exception
+     */
+    public function addPieceNumber($pieceNumber, $piecesTotal)
+    {
+        $this->_page->saveGS();
+
+        if (!$pieceNumber || !$piecesTotal) {
+            throw new InvalidArgumentException(Mage::helper('usa')->__('Piece number information is missing'));
+        }
+
+        $this->_page->setFont($this->_fontNormal, 6);
+        $this->_page->drawText('Piece:', $this->_x(256), $this->_y(224));
+        $this->_page->setFont($this->_fontBold, 11);
+        $this->_page->drawText($pieceNumber . '/' . $piecesTotal, $this->_x(256), $this->_y(234));
+
+        $this->_page->restoreGS();
+        return $this;
+    }
+}
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Dutypaymenttype.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Dutypaymenttype.php
index e6ddd65..2926728 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Dutypaymenttype.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Dutypaymenttype.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Freemethod.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Freemethod.php
index 9454bc0..7817103 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Freemethod.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Freemethod.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Method.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Method.php
index 94adc99..859066e 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Method.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Method.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Rounding.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Rounding.php
index 35a0f71..c268165 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Rounding.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Rounding.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Value.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Value.php
index 8429c6a..d906a8c 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Value.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Protection/Value.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Shipmenttype.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Shipmenttype.php
index 8f039a0..e2f832c 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Shipmenttype.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/Source/Shipmenttype.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php
index cfe341f..0025939 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php
@@ -20,45 +20,182 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
 /**
- * Fedex shipping rates estimation
+ * Fedex shipping implementation
  *
  * @category   Mage
  * @package    Mage_Usa
- * @author      Magento Core Team <core@magentocommerce.com>
+ * @author     Magento Core Team <core@magentocommerce.com>
  */
 class Mage_Usa_Model_Shipping_Carrier_Fedex
     extends Mage_Usa_Model_Shipping_Carrier_Abstract
     implements Mage_Shipping_Model_Carrier_Interface
 {
 
-    protected $_code = 'fedex';
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    const CODE = 'fedex';
+
+    /**
+     * Purpose of rate request
+     *
+     * @var string
+     */
+    const RATE_REQUEST_GENERAL = 'general';
+
+    /**
+     * Purpose of rate request
+     *
+     * @var string
+     */
+    const RATE_REQUEST_SMARTPOST = 'SMART_POST';
 
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    protected $_code = self::CODE;
+
+    /**
+     * Rate request data
+     *
+     * @var Mage_Shipping_Model_Rate_Request|null
+     */
     protected $_request = null;
 
+    /**
+     * Raw rate request data
+     *
+     * @var Varien_Object|null
+     */
+    protected $_rawRequest = null;
+
+    /**
+     * Rate result data
+     *
+     * @var Mage_Shipping_Model_Rate_Result|null
+     */
     protected $_result = null;
 
-    protected $_gatewayUrl = 'https://gateway.fedex.com/GatewayDC';
+    /**
+     * Path to wsdl file of rate service
+     *
+     * @var string
+     */
+    protected $_rateServiceWsdl;
+
+    /**
+     * Path to wsdl file of ship service
+     *
+     * @var string
+     */
+    protected $_shipServiceWsdl = null;
+
+    /**
+     * Path to wsdl file of track service
+     *
+     * @var string
+     */
+    protected $_trackServiceWsdl = null;
+
+    /**
+     * Container types that could be customized for FedEx carrier
+     *
+     * @var array
+     */
+    protected $_customizableContainerTypes = array('YOUR_PACKAGING');
+
+    public function __construct()
+    {
+        parent::__construct();
+        $wsdlBasePath = Mage::getModuleDir('etc', 'Mage_Usa')  . DS . 'wsdl' . DS . 'FedEx' . DS;
+        $this->_shipServiceWsdl = $wsdlBasePath . 'ShipService_v10.wsdl';
+        $this->_rateServiceWsdl = $wsdlBasePath . 'RateService_v10.wsdl';
+        $this->_trackServiceWsdl = $wsdlBasePath . 'TrackService_v5.wsdl';
+    }
 
+    /**
+     * Create soap client with selected wsdl
+     *
+     * @param string $wsdl
+     * @param bool|int $trace
+     * @return SoapClient
+     */
+    protected function _createSoapClient($wsdl, $trace = false)
+    {
+        $client = new SoapClient($wsdl, array('trace' => $trace));
+        $client->__setLocation($this->getConfigFlag('sandbox_mode')
+            ? 'https://wsbeta.fedex.com:443/web-services/rate'
+            : 'https://ws.fedex.com:443/web-services/rate'
+        );
+
+        return $client;
+    }
+
+    /**
+     * Create rate soap client
+     *
+     * @return SoapClient
+     */
+    protected function _createRateSoapClient()
+    {
+        return $this->_createSoapClient($this->_rateServiceWsdl);
+    }
+
+    /**
+     * Create ship soap client
+     *
+     * @return SoapClient
+     */
+    protected function _createShipSoapClient()
+    {
+        return $this->_createSoapClient($this->_shipServiceWsdl, 1);
+    }
+
+    /**
+     * Create track soap client
+     *
+     * @return SoapClient
+     */
+    protected function _createTrackSoapClient()
+    {
+        return $this->_createSoapClient($this->_trackServiceWsdl, 1);
+    }
+
+    /**
+     * Collect and get rates
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Shipping_Model_Rate_Result|bool|null
+     */
     public function collectRates(Mage_Shipping_Model_Rate_Request $request)
     {
-        if (!$this->getConfigFlag('active')) {
+        if (!$this->getConfigFlag($this->_activeFlag)) {
             return false;
         }
-
         $this->setRequest($request);
 
-        $this->_result = $this->_getQuotes();
+        $this->_getQuotes();
 
         $this->_updateFreeMethodQuote($request);
 
         return $this->getResult();
     }
 
+    /**
+     * Prepare and set request to this instance
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Usa_Model_Shipping_Carrier_Fedex
+     */
     public function setRequest(Mage_Shipping_Model_Rate_Request $request)
     {
         $this->_request = $request;
@@ -93,14 +230,20 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         if ($request->getOrigCountry()) {
             $origCountry = $request->getOrigCountry();
         } else {
-            $origCountry = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_COUNTRY_ID, $this->getStore());
+            $origCountry = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $request->getStoreId()
+            );
         }
         $r->setOrigCountry(Mage::getModel('directory/country')->load($origCountry)->getIso2Code());
 
         if ($request->getOrigPostcode()) {
             $r->setOrigPostal($request->getOrigPostcode());
         } else {
-            $r->setOrigPostal(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_POSTCODE, $this->getStore()));
+            $r->setOrigPostal(Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_ZIP,
+                $request->getStoreId()
+            ));
         }
 
         if ($request->getDestCountryId()) {
@@ -125,21 +268,300 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         $r->setValue($request->getPackagePhysicalValue());
         $r->setValueWithDiscount($request->getPackageValueWithDiscount());
 
+        $r->setMeterNumber($this->getConfigData('meter_number'));
+        $r->setKey($this->getConfigData('key'));
+        $r->setPassword($this->getConfigData('password'));
+
+        $r->setIsReturn($request->getIsReturn());
+
+        $r->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
+
         $this->_rawRequest = $r;
 
         return $this;
     }
 
+    /**
+     * Get result of request
+     *
+     * @return mixed
+     */
     public function getResult()
     {
        return $this->_result;
     }
 
+    /**
+     * Get version of rates request
+     *
+     * @return array
+     */
+    public function getVersionInfo()
+    {
+        return array(
+            'ServiceId'    => 'crs',
+            'Major'        => '10',
+            'Intermediate' => '0',
+            'Minor'        => '0'
+        );
+    }
+
+    /**
+     * Forming request for rate estimation depending to the purpose
+     *
+     * @param string $purpose
+     * @return array
+     */
+    protected function _formRateRequest($purpose)
+    {
+        $r = $this->_rawRequest;
+        $ratesRequest = array(
+            'WebAuthenticationDetail' => array(
+                'UserCredential' => array(
+                    'Key'      => $r->getKey(),
+                    'Password' => $r->getPassword()
+                )
+            ),
+            'ClientDetail' => array(
+                'AccountNumber' => $r->getAccount(),
+                'MeterNumber'   => $r->getMeterNumber()
+            ),
+            'Version' => $this->getVersionInfo(),
+            'RequestedShipment' => array(
+                'DropoffType'   => $r->getDropoffType(),
+                'ShipTimestamp' => date('c'),
+                'PackagingType' => $r->getPackaging(),
+                'TotalInsuredValue' => array(
+                    'Amount'  => $r->getValue(),
+                    'Currency' => $this->getCurrencyCode()
+                ),
+                'Shipper' => array(
+                    'Address' => array(
+                        'PostalCode'  => $r->getOrigPostal(),
+                        'CountryCode' => $r->getOrigCountry()
+                    )
+                ),
+                'Recipient' => array(
+                    'Address' => array(
+                        'PostalCode'  => $r->getDestPostal(),
+                        'CountryCode' => $r->getDestCountry(),
+                        'Residential' => (bool)$this->getConfigData('residence_delivery')
+                    )
+                ),
+                'ShippingChargesPayment' => array(
+                    'PaymentType' => 'SENDER',
+                    'Payor' => array(
+                        'AccountNumber' => $r->getAccount(),
+                        'CountryCode'   => $r->getOrigCountry()
+                    )
+                ),
+                'CustomsClearanceDetail' => array(
+                    'CustomsValue' => array(
+                        'Amount' => $r->getValue(),
+                        'Currency' => $this->getCurrencyCode()
+                    )
+                ),
+                'RateRequestTypes' => 'LIST',
+                'PackageCount'     => '1',
+                'PackageDetail'    => 'INDIVIDUAL_PACKAGES',
+                'RequestedPackageLineItems' => array(
+                    '0' => array(
+                        'Weight' => array(
+                            'Value' => (float)$r->getWeight(),
+                            'Units' => 'LB'
+                        ),
+                        'GroupPackageCount' => 1,
+                    )
+                )
+            )
+        );
+
+        if ($purpose == self::RATE_REQUEST_GENERAL) {
+            $ratesRequest['RequestedShipment']['RequestedPackageLineItems'][0]['InsuredValue'] = array(
+                'Amount'  => $r->getValue(),
+                'Currency' => $this->getCurrencyCode()
+            );
+        } else if ($purpose == self::RATE_REQUEST_SMARTPOST) {
+            $ratesRequest['RequestedShipment']['ServiceType'] = self::RATE_REQUEST_SMARTPOST;
+            $ratesRequest['RequestedShipment']['SmartPostDetail'] = array(
+                'Indicia' => ((float)$r->getWeight() >= 1) ? 'PARCEL_SELECT' : 'PRESORTED_STANDARD',
+                'HubId' => $this->getConfigData('smartpost_hubid')
+            );
+        }
+
+        return $ratesRequest;
+    }
+
+    /**
+     * Makes remote request to the carrier and returns a response
+     *
+     * @param string $purpose
+     * @return mixed
+     */
+    protected function _doRatesRequest($purpose)
+    {
+        $ratesRequest = $this->_formRateRequest($purpose);
+        $requestString = serialize($ratesRequest);
+        $response = $this->_getCachedQuotes($requestString);
+        $debugData = array('request' => $ratesRequest);
+        if ($response === null) {
+            try {
+                $client = $this->_createRateSoapClient();
+                $response = $client->getRates($ratesRequest);
+                $this->_setCachedQuotes($requestString, serialize($response));
+                $debugData['result'] = $response;
+            } catch (Exception $e) {
+                $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
+                Mage::logException($e);
+            }
+        } else {
+            $response = unserialize($response);
+            $debugData['result'] = $response;
+        }
+        $this->_debug($debugData);
+        return $response;
+    }
+
+    /**
+     * Do remote request for and handle errors
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getQuotes()
     {
-        return $this->_getXmlQuotes();
+        $this->_result = Mage::getModel('shipping/rate_result');
+        // make separate request for Smart Post method
+        $allowedMethods = explode(',', $this->getConfigData('allowed_methods'));
+        if (in_array(self::RATE_REQUEST_SMARTPOST, $allowedMethods)) {
+            $response = $this->_doRatesRequest(self::RATE_REQUEST_SMARTPOST);
+            $preparedSmartpost = $this->_prepareRateResponse($response);
+            if (!$preparedSmartpost->getError()) {
+                $this->_result->append($preparedSmartpost);
+            }
+        }
+        // make general request for all methods
+        $response = $this->_doRatesRequest(self::RATE_REQUEST_GENERAL);
+        $preparedGeneral = $this->_prepareRateResponse($response);
+        if (!$preparedGeneral->getError() || ($this->_result->getError() && $preparedGeneral->getError())) {
+            $this->_result->append($preparedGeneral);
+        }
+        return $this->_result;
     }
 
+    /**
+     * Prepare shipping rate result based on response
+     *
+     * @param mixed $response
+     * @return Mage_Shipping_Model_Rate_Result
+     */
+    protected function _prepareRateResponse($response)
+    {
+        $costArr = array();
+        $priceArr = array();
+        $errorTitle = 'Unable to retrieve tracking';
+
+        if (is_object($response)) {
+            if ($response->HighestSeverity == 'FAILURE' || $response->HighestSeverity == 'ERROR') {
+                $errorTitle = (string)$response->Notifications->Message;
+            } elseif (isset($response->RateReplyDetails)) {
+                $allowedMethods = explode(",", $this->getConfigData('allowed_methods'));
+
+                if (is_array($response->RateReplyDetails)) {
+                    foreach ($response->RateReplyDetails as $rate) {
+                        $serviceName = (string)$rate->ServiceType;
+                        if (in_array($serviceName, $allowedMethods)) {
+                            $amount = $this->_getRateAmountOriginBased($rate);
+                            $costArr[$serviceName]  = $amount;
+                            $priceArr[$serviceName] = $this->getMethodPrice($amount, $serviceName);
+                        }
+                    }
+                    asort($priceArr);
+                } else {
+                    $rate = $response->RateReplyDetails;
+                    $serviceName = (string)$rate->ServiceType;
+                    if (in_array($serviceName, $allowedMethods)) {
+                        $amount = $this->_getRateAmountOriginBased($rate);
+                        $costArr[$serviceName]  = $amount;
+                        $priceArr[$serviceName] = $this->getMethodPrice($amount, $serviceName);
+                    }
+                }
+            }
+        }
+
+        $result = Mage::getModel('shipping/rate_result');
+        if (empty($priceArr)) {
+            $error = Mage::getModel('shipping/rate_result_error');
+            $error->setCarrier($this->_code);
+            $error->setCarrierTitle($this->getConfigData('title'));
+            $error->setErrorMessage($errorTitle);
+            $error->setErrorMessage($this->getConfigData('specificerrmsg'));
+            $result->append($error);
+        } else {
+            foreach ($priceArr as $method=>$price) {
+                $rate = Mage::getModel('shipping/rate_result_method');
+                $rate->setCarrier($this->_code);
+                $rate->setCarrierTitle($this->getConfigData('title'));
+                $rate->setMethod($method);
+                $rate->setMethodTitle($this->getCode('method', $method));
+                $rate->setCost($costArr[$method]);
+                $rate->setPrice($price);
+                $result->append($rate);
+            }
+        }
+        return $result;
+    }
+
+    /**
+     * Get origin based amount form response of rate estimation
+     *
+     * @param stdClass $rate
+     * @return null|float
+     */
+    protected function _getRateAmountOriginBased($rate)
+    {
+        $amount = null;
+        $rateTypeAmounts = array();
+
+        if (is_object($rate)) {
+            // The "RATED..." rates are expressed in the currency of the origin country
+            foreach ($rate->RatedShipmentDetails as $ratedShipmentDetail) {
+                $netAmount = (string)$ratedShipmentDetail->ShipmentRateDetail->TotalNetCharge->Amount;
+                $rateType = (string)$ratedShipmentDetail->ShipmentRateDetail->RateType;
+                $rateTypeAmounts[$rateType] = $netAmount;
+            }
+
+            // Order is important
+            $ratesOrder = array(
+                'RATED_ACCOUNT_PACKAGE',
+                'PAYOR_ACCOUNT_PACKAGE',
+                'RATED_ACCOUNT_SHIPMENT',
+                'PAYOR_ACCOUNT_SHIPMENT',
+                'RATED_LIST_PACKAGE',
+                'PAYOR_LIST_PACKAGE',
+                'RATED_LIST_SHIPMENT',
+                'PAYOR_LIST_SHIPMENT'
+            );
+            foreach ($ratesOrder as $rateType) {
+                if (!empty($rateTypeAmounts[$rateType])) {
+                    $amount = $rateTypeAmounts[$rateType];
+                    break;
+                }
+            }
+
+            if (is_null($amount)) {
+                $amount = (string)$rate->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount;
+            }
+        }
+
+        return $amount;
+    }
+
+    /**
+     * Set free method request
+     *
+     * @param  $freeMethod
+     * @return void
+     */
     protected function _setFreeMethodRequest($freeMethod)
     {
         $r = $this->_rawRequest;
@@ -148,6 +570,11 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         $r->setService($freeMethod);
     }
 
+    /**
+     * Get xml quotes
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getXmlQuotes()
     {
         $r = $this->_rawRequest;
@@ -158,237 +585,37 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         $xml->addAttribute('xsi:noNamespaceSchemaLocation', 'FDXRateAvailableServicesRequest.xsd');
 
         $requestHeader = $xml->addChild('RequestHeader');
-//          $requestHeader->addChild('CustomerTransactionIdentifier', 'CTIString');
-            $requestHeader->addChild('AccountNumber', $r->getAccount());
-//          $requestHeader->addChild('MeterNumber', '2436351');  -- my own meter number
-            $requestHeader->addChild('MeterNumber', '0');
-//          $requestHeader->addChild('CarrierCode', 'FDXE');
-//          $requestHeader->addChild('CarrierCode', 'FDXG');
-            /**
-             *  FDXE ï¿½ FedEx Express
-             *  FDXG ï¿½ FedEx Ground
-             */
+        $requestHeader->addChild('AccountNumber', $r->getAccount());
+        $requestHeader->addChild('MeterNumber', '0');
 
         $xml->addChild('ShipDate', date('Y-m-d'));
-//      $xml->addChild('ReturnShipmentIndicator', 'NONRETURN');
-        /**
-         *  ï¿½ NONRETURN
-         *  ï¿½ PRINTRETURNLABEL
-         *  ï¿½ EMAILLABEL
-         */
         $xml->addChild('DropoffType', $r->getDropoffType());
-        /**
-         *  ï¿½ REGULARPICKUP
-         *  ï¿½ REQUESTCOURIER
-         *  ï¿½ DROPBOX
-         *  ï¿½ BUSINESSSERVICECENTER
-         *  ï¿½ STATION
-         *  Only REGULARPICKUP, REQUESTCOURIER, and STATION are
-         *  allowed with international freight shipping.
-         */
         if ($r->hasService()) {
             $xml->addChild('Service', $r->getService());
         }
-        /**
-         *  One of the following FedEx Services is optional:
-         *  ï¿½ PRIORITYOVERNIGHT
-         *  ï¿½ STANDARDOVERNIGHT
-         *  ï¿½ FIRSTOVERNIGHT
-         *  ï¿½ FEDEX2DAY
-         *  ï¿½ FEDEXEXPRESSSAVER
-         *  ï¿½ INTERNATIONALPRIORITY
-         *  ï¿½ INTERNATIONALECONOMY
-         *  ï¿½ INTERNATIONALFIRST
-         *  ï¿½ FEDEX1DAYFREIGHT
-         *  ï¿½ FEDEX2DAYFREIGHT
-         *  ï¿½ FEDEX3DAYFREIGHT
-         *  ï¿½ FEDEXGROUND
-         *  ï¿½ GROUNDHOMEDELIVERY
-         *  ï¿½ INTERNATIONALPRIORITY FREIGHT
-         *  ï¿½ INTERNATIONALECONOMY FREIGHT
-         *  ï¿½ EUROPEFIRSTINTERNATIONALPRIORITY
-         *  If provided, only that serviceï¿½s estimated charges will be returned.
-         */
         $xml->addChild('Packaging', $r->getPackaging());
-        /**
-         *  One of the following package types is required:
-         *  ï¿½ FEDEXENVELOPE
-         *  ï¿½ FEDEXPAK
-         *  ï¿½ FEDEXBOX
-         *  ï¿½ FEDEXTUBE
-         *  ï¿½ FEDEX10KGBOX
-         *  ï¿½ FEDEX25KGBOX
-         *  ï¿½ YOURPACKAGING
-         *  If value entered is FEDEXENVELOPE, FEDEX10KGBOX, or
-         *  FEDEX25KGBOX, an MPS rate quote is not allowed.
-         */
         $xml->addChild('WeightUnits', 'LBS');
-        /**
-         *  ï¿½ LBS
-         *  ï¿½ KGS
-         *  LBS is required for a U.S. FedEx Express rate quote.
-         */
         $xml->addChild('Weight', $r->getWeight());
-//      $xml->addChild('ListRate', 'true');
-        /**
-         *  Optional.
-         *  If = true or 1, list-rate courtesy quotes should be returned in addition to
-         *  the discounted quote.
-         */
 
         $originAddress = $xml->addChild('OriginAddress');
-//          $originAddress->addChild('StateOrProvinceCode', 'GA');   -- ???
-            $originAddress->addChild('PostalCode', $r->getOrigPostal());
-            $originAddress->addChild('CountryCode', $r->getOrigCountry());
+        $originAddress->addChild('PostalCode', $r->getOrigPostal());
+        $originAddress->addChild('CountryCode', $r->getOrigCountry());
 
         $destinationAddress = $xml->addChild('DestinationAddress');
-//          $destinationAddress->addChild('StateOrProvinceCode', 'GA');   -- ???
-            $destinationAddress->addChild('PostalCode', $r->getDestPostal());
-            $destinationAddress->addChild('CountryCode', $r->getDestCountry());
+        $destinationAddress->addChild('PostalCode', $r->getDestPostal());
+        $destinationAddress->addChild('CountryCode', $r->getDestCountry());
 
         $payment = $xml->addChild('Payment');
-            $payment->addChild('PayorType', 'SENDER');
-            /**
-             *  Optional.
-             *  Defaults to SENDER.
-             *  If value other than SENDER is used, no rates will still be returned.
-             */
-
-        /**
-         *  DIMENSIONS
-         *
-         *  Dimensions / Length
-         *  Optional.
-         *  Only applicable if the package type is YOURPACKAGING.
-         *  The length of a package.
-         *  Format: Numeric, whole number
-         *
-         *  Dimensions / Width
-         *  Optional.
-         *  Only applicable if the package type is YOURPACKAGING.
-         *  The width of a package.
-         *  Format: Numeric, whole number
-         *
-         *  Dimensions / Height
-         *  Optional.
-         *  Only applicable if the package type is YOURPACKAGING.
-         *  The height of a package.
-         *  Format: Numeric, whole number
-         *
-         *  Dimensions / Units
-         *  Required if dimensions are entered.
-         *  Only applicable if the package type is YOURPACKAGING.
-         *  The valid unit of measure codes for the package dimensions are:
-         *  IN ï¿½ Inches
-         *  CM ï¿½ Centimeters
-         *  U.S. FedEx Express must be in inches.
-         */
+        $payment->addChild('PayorType', 'SENDER');
 
         $declaredValue = $xml->addChild('DeclaredValue');
-            $declaredValue->addChild('Value', $r->getValue());
-//            $declaredValue->addChild('CurrencyCode', 'USD');
-            $declaredValue->addChild('CurrencyCode', $this->getCurrencyCode());
+        $declaredValue->addChild('Value', $r->getValue());
+        $declaredValue->addChild('CurrencyCode', $this->getCurrencyCode());
 
         if ($this->getConfigData('residence_delivery')) {
             $specialServices = $xml->addChild('SpecialServices');
-                 $specialServices->addChild('ResidentialDelivery', 'true');
-        }
-
-//      $specialServices = $xml->addChild('SpecialServices');
-//          $specialServices->addChild('Alcohol', 'true');
-//          $specialServices->addChild('DangerousGoods', 'true')->addChild('Accessibility', 'ACCESSIBLE');
-        /**
-         *  Valid values:
-         *  ACCESSIBLE ï¿½ accessible DG
-         *  INACCESSIBLE ï¿½ inaccessible DG
-         */
-//          $specialServices->addChild('DryIce', 'true');
-//          $specialServices->addChild('ResidentialDelivery', 'true');
-        /**
-         *  If = true or 1, the shipment is Residential Delivery. If Recipient Address
-         *  is in a rural area (defined by table lookup), additional charge will be
-         *  applied. This element is not applicable to the FedEx Home Delivery
-         *  service.
-         */
-//          $specialServices->addChild('InsidePickup', 'true');
-//          $specialServices->addChild('InsideDelivery', 'true');
-//          $specialServices->addChild('SaturdayPickup', 'true');
-//          $specialServices->addChild('SaturdayDelivery', 'true');
-//          $specialServices->addChild('NonstandardContainer', 'true');
-//          $specialServices->addChild('SignatureOption', 'true');
-        /**
-         *  Optional.
-         *  Specifies the Delivery Signature Option requested for the shipment.
-         *  Valid values:
-         *  ï¿½ DELIVERWITHOUTSIGNATURE
-         *  ï¿½ INDIRECT
-         *  ï¿½ DIRECT
-         *  ï¿½ ADULT
-         *  For FedEx Express shipments, the DELIVERWITHOUTSIGNATURE
-         *  option will not be allowed when the following special services are
-         *  requested:
-         *  ï¿½ Alcohol
-         *  ï¿½ Hold at Location
-         *  ï¿½ Dangerous Goods
-         *  ï¿½ Declared Value greater than $500
-         */
-
-        /**
-         *  HOMEDELIVERY
-         *
-         *  HomeDelivery / Type
-         *  One of the following values are required for FedEx Home Delivery
-         *  shipments:
-         *  ï¿½ DATECERTAIN
-         *  ï¿½ EVENING
-         *  ï¿½ APPOINTMENT
-         *
-         *  PackageCount
-         *  Required for multiple-piece shipments (MPS).
-         *  For MPS shipments, 1 piece = 1 box.
-         *  For international Freight MPS shipments, this is the total number of
-         *  "units." Units are the skids, pallets, or boxes that make up a freight
-         *  shipment.
-         *  Each unit within a shipment should have its own label.
-         *  FDXE only applies to COD, MPS, and international.
-         *  Valid values: 1 to 999
-         */
-
-        /**
-         *  VARIABLEHANDLINGCHARGES
-         *
-         *  VariableHandlingCharges / Level
-         *  Optional.
-         *  Only applicable if valid Variable Handling Type is present.
-         *  Apply fixed or variable handling charges at package or shipment level.
-         *  Valid values:
-         *  ï¿½ PACKAGE
-         *  ï¿½ SHIPMENT
-         *  The value "SHIPMENT" is applicable only on last piece of FedEx
-         *  Ground or FedEx Express MPS shipment only.
-         *  Note: Value "SHIPMENT" = shipment level affects the entire shipment.
-         *  Anything else sent in Child will be ignored.
-         *
-         *  VariableHandlingCharges / Type
-         *  Optional.
-         *  If valid value is present, a valid Variable Handling Charge is required.
-         *  Specifies what type of Variable Handling charges to assess and on
-         *  which amount.
-         *  Valid values:
-         *  ï¿½ FIXED_AMOUNT
-         *  ï¿½ PERCENTAGE_OF_BASE
-         *  ï¿½ PERCENTAGE_OF_NET
-         *  ï¿½ PERCENTAGE_OF_NET_ EXCL_TAXES
-         *
-         *  VariableHandlingCharges / AmountOrPercentage
-         *  Optional.
-         *  Required in conjunction with Variable Handling Type.
-         *  Contains the dollar or percentage amount to be added to the Freight
-         *  charges. Whether the amount is a dollar or percentage is based on the
-         *  Variable Handling Type value that is included in this Request.
-         *  Format: Two explicit decimal positions (e.g. 1.00); 10 total length
-         *  including decimal place.
-         */
+            $specialServices->addChild('ResidentialDelivery', 'true');
+        }
 
         $xml->addChild('PackageCount', '1');
 
@@ -397,15 +624,6 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         $responseBody = $this->_getCachedQuotes($request);
         if ($responseBody === null) {
             $debugData = array('request' => $request);
-    /*
-            $client = new Zend_Http_Client();
-            $client->setUri($this->getConfigData('gateway_url'));
-            $client->setConfig(array('maxredirects'=>0, 'timeout'=>30));
-            $client->setParameterPost($request);
-            $response = $client->request();
-            $responseBody = $response->getBody();
-    */
-
             try {
                 $url = $this->getConfigData('gateway_url');
                 if (!$url) {
@@ -432,6 +650,12 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         return $this->_parseXmlResponse($responseBody);
     }
 
+    /**
+     * Prepare shipping rate result based on response
+     *
+     * @param mixed $response
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _parseXmlResponse($response)
     {
         $costArr = array();
@@ -452,8 +676,12 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
 
                foreach ($xml->Entry as $entry) {
                    if (in_array((string)$entry->Service, $allowedMethods)) {
-                       $costArr[(string)$entry->Service] = (string)$entry->EstimatedCharges->DiscountedCharges->NetCharge;
-                           $priceArr[(string)$entry->Service] = $this->getMethodPrice((string)$entry->EstimatedCharges->DiscountedCharges->NetCharge, (string)$entry->Service);
+                       $costArr[(string)$entry->Service] =
+                           (string)$entry->EstimatedCharges->DiscountedCharges->NetCharge;
+                       $priceArr[(string)$entry->Service] = $this->getMethodPrice(
+                           (string)$entry->EstimatedCharges->DiscountedCharges->NetCharge,
+                           (string)$entry->Service
+                       );
                    }
                }
 
@@ -467,12 +695,10 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         }
 
         $result = Mage::getModel('shipping/rate_result');
-        $defaults = $this->getDefaults();
         if (empty($priceArr)) {
             $error = Mage::getModel('shipping/rate_result_error');
             $error->setCarrier('fedex');
             $error->setCarrierTitle($this->getConfigData('title'));
-            //$error->setErrorMessage($errorTitle);
             $error->setErrorMessage($this->getConfigData('specificerrmsg'));
             $result->append($error);
         } else {
@@ -510,65 +736,166 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         }
     }
 
-/*
-    public function isEligibleForFree($method)
-    {
-        return $method=='FEDEXGROUND';
-    }
-*/
-
+    /**
+     * Get configuration data of carrier
+     *
+     * @param string $type
+     * @param string $code
+     * @return array|bool
+     */
     public function getCode($type, $code='')
     {
         $codes = array(
-
-            'method'=>array(
-                'PRIORITYOVERNIGHT'                => Mage::helper('usa')->__('Priority Overnight'),
-                'STANDARDOVERNIGHT'                => Mage::helper('usa')->__('Standard Overnight'),
-                'FIRSTOVERNIGHT'                   => Mage::helper('usa')->__('First Overnight'),
-                'FEDEX2DAY'                        => Mage::helper('usa')->__('2Day'),
-                'FEDEXEXPRESSSAVER'                => Mage::helper('usa')->__('Express Saver'),
-                'INTERNATIONALPRIORITY'            => Mage::helper('usa')->__('International Priority'),
-                'INTERNATIONALECONOMY'             => Mage::helper('usa')->__('International Economy'),
-                'INTERNATIONALFIRST'               => Mage::helper('usa')->__('International First'),
-                'FEDEX1DAYFREIGHT'                 => Mage::helper('usa')->__('1 Day Freight'),
-                'FEDEX2DAYFREIGHT'                 => Mage::helper('usa')->__('2 Day Freight'),
-                'FEDEX3DAYFREIGHT'                 => Mage::helper('usa')->__('3 Day Freight'),
-                'FEDEXGROUND'                      => Mage::helper('usa')->__('Ground'),
-                'GROUNDHOMEDELIVERY'               => Mage::helper('usa')->__('Home Delivery'),
-                'INTERNATIONALPRIORITY FREIGHT'    => Mage::helper('usa')->__('Intl Priority Freight'),
-                'INTERNATIONALECONOMY FREIGHT'     => Mage::helper('usa')->__('Intl Economy Freight'),
-                'EUROPEFIRSTINTERNATIONALPRIORITY' => Mage::helper('usa')->__('Europe First Priority'),
+            'method' => array(
+                'EUROPE_FIRST_INTERNATIONAL_PRIORITY' => Mage::helper('usa')->__('Europe First Priority'),
+                'FEDEX_1_DAY_FREIGHT'                 => Mage::helper('usa')->__('1 Day Freight'),
+                'FEDEX_2_DAY_FREIGHT'                 => Mage::helper('usa')->__('2 Day Freight'),
+                'FEDEX_2_DAY'                         => Mage::helper('usa')->__('2 Day'),
+                'FEDEX_2_DAY_AM'                      => Mage::helper('usa')->__('2 Day AM'),
+                'FEDEX_3_DAY_FREIGHT'                 => Mage::helper('usa')->__('3 Day Freight'),
+                'FEDEX_EXPRESS_SAVER'                 => Mage::helper('usa')->__('Express Saver'),
+                'FEDEX_GROUND'                        => Mage::helper('usa')->__('Ground'),
+                'FIRST_OVERNIGHT'                     => Mage::helper('usa')->__('First Overnight'),
+                'GROUND_HOME_DELIVERY'                => Mage::helper('usa')->__('Home Delivery'),
+                'INTERNATIONAL_ECONOMY'               => Mage::helper('usa')->__('International Economy'),
+                'INTERNATIONAL_ECONOMY_FREIGHT'       => Mage::helper('usa')->__('Intl Economy Freight'),
+                'INTERNATIONAL_FIRST'                 => Mage::helper('usa')->__('International First'),
+                'INTERNATIONAL_GROUND'                => Mage::helper('usa')->__('International Ground'),
+                'INTERNATIONAL_PRIORITY'              => Mage::helper('usa')->__('International Priority'),
+                'INTERNATIONAL_PRIORITY_FREIGHT'      => Mage::helper('usa')->__('Intl Priority Freight'),
+                'PRIORITY_OVERNIGHT'                  => Mage::helper('usa')->__('Priority Overnight'),
+                'SMART_POST'                          => Mage::helper('usa')->__('Smart Post'),
+                'STANDARD_OVERNIGHT'                  => Mage::helper('usa')->__('Standard Overnight'),
+                'FEDEX_FREIGHT'                       => Mage::helper('usa')->__('Freight'),
+                'FEDEX_NATIONAL_FREIGHT'              => Mage::helper('usa')->__('National Freight'),
             ),
-
-            'dropoff'=>array(
-                'REGULARPICKUP'         => Mage::helper('usa')->__('Regular Pickup'),
-                'REQUESTCOURIER'        => Mage::helper('usa')->__('Request Courier'),
-                'DROPBOX'               => Mage::helper('usa')->__('Drop Box'),
-                'BUSINESSSERVICECENTER' => Mage::helper('usa')->__('Business Service Center'),
-                'STATION'               => Mage::helper('usa')->__('Station'),
+            'dropoff' => array(
+                'REGULAR_PICKUP'          => Mage::helper('usa')->__('Regular Pickup'),
+                'REQUEST_COURIER'         => Mage::helper('usa')->__('Request Courier'),
+                'DROP_BOX'                => Mage::helper('usa')->__('Drop Box'),
+                'BUSINESS_SERVICE_CENTER' => Mage::helper('usa')->__('Business Service Center'),
+                'STATION'                 => Mage::helper('usa')->__('Station')
             ),
-
-            'packaging'=>array(
-                'FEDEXENVELOPE' => Mage::helper('usa')->__('FedEx Envelope'),
-                'FEDEXPAK'      => Mage::helper('usa')->__('FedEx Pak'),
-                'FEDEXBOX'      => Mage::helper('usa')->__('FedEx Box'),
-                'FEDEXTUBE'     => Mage::helper('usa')->__('FedEx Tube'),
-                'FEDEX10KGBOX'  => Mage::helper('usa')->__('FedEx 10kg Box'),
-                'FEDEX25KGBOX'  => Mage::helper('usa')->__('FedEx 25kg Box'),
-                'YOURPACKAGING' => Mage::helper('usa')->__('Your Packaging'),
+            'packaging' => array(
+                'FEDEX_ENVELOPE' => Mage::helper('usa')->__('FedEx Envelope'),
+                'FEDEX_PAK'      => Mage::helper('usa')->__('FedEx Pak'),
+                'FEDEX_BOX'      => Mage::helper('usa')->__('FedEx Box'),
+                'FEDEX_TUBE'     => Mage::helper('usa')->__('FedEx Tube'),
+                'FEDEX_10KG_BOX' => Mage::helper('usa')->__('FedEx 10kg Box'),
+                'FEDEX_25KG_BOX' => Mage::helper('usa')->__('FedEx 25kg Box'),
+                'YOUR_PACKAGING' => Mage::helper('usa')->__('Your Packaging')
+            ),
+            'containers_filter' => array(
+                array(
+                    'containers' => array('FEDEX_ENVELOPE', 'FEDEX_PAK'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'FEDEX_EXPRESS_SAVER',
+                                'FEDEX_2_DAY',
+                                'FEDEX_2_DAY_AM',
+                                'STANDARD_OVERNIGHT',
+                                'PRIORITY_OVERNIGHT',
+                                'FIRST_OVERNIGHT',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'INTERNATIONAL_FIRST',
+                                'INTERNATIONAL_ECONOMY',
+                                'INTERNATIONAL_PRIORITY',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('FEDEX_BOX', 'FEDEX_TUBE'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'FEDEX_2_DAY',
+                                'FEDEX_2_DAY_AM',
+                                'STANDARD_OVERNIGHT',
+                                'PRIORITY_OVERNIGHT',
+                                'FIRST_OVERNIGHT',
+                                'FEDEX_FREIGHT',
+                                'FEDEX_1_DAY_FREIGHT',
+                                'FEDEX_2_DAY_FREIGHT',
+                                'FEDEX_3_DAY_FREIGHT',
+                                'FEDEX_NATIONAL_FREIGHT',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'INTERNATIONAL_FIRST',
+                                'INTERNATIONAL_ECONOMY',
+                                'INTERNATIONAL_PRIORITY',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('FEDEX_10KG_BOX', 'FEDEX_25KG_BOX'),
+                    'filters'    => array(
+                        'within_us' => array(),
+                        'from_us' => array('method' => array('INTERNATIONAL_PRIORITY'))
+                    )
+                ),
+                array(
+                    'containers' => array('YOUR_PACKAGING'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' =>array(
+                                'FEDEX_GROUND',
+                                'GROUND_HOME_DELIVERY',
+                                'SMART_POST',
+                                'FEDEX_EXPRESS_SAVER',
+                                'FEDEX_2_DAY',
+                                'FEDEX_2_DAY_AM',
+                                'STANDARD_OVERNIGHT',
+                                'PRIORITY_OVERNIGHT',
+                                'FIRST_OVERNIGHT',
+                                'FEDEX_FREIGHT',
+                                'FEDEX_1_DAY_FREIGHT',
+                                'FEDEX_2_DAY_FREIGHT',
+                                'FEDEX_3_DAY_FREIGHT',
+                                'FEDEX_NATIONAL_FREIGHT',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' =>array(
+                                'INTERNATIONAL_FIRST',
+                                'INTERNATIONAL_ECONOMY',
+                                'INTERNATIONAL_PRIORITY',
+                                'INTERNATIONAL_GROUND',
+                                'FEDEX_FREIGHT',
+                                'FEDEX_1_DAY_FREIGHT',
+                                'FEDEX_2_DAY_FREIGHT',
+                                'FEDEX_3_DAY_FREIGHT',
+                                'FEDEX_NATIONAL_FREIGHT',
+                                'INTERNATIONAL_ECONOMY_FREIGHT',
+                                'INTERNATIONAL_PRIORITY_FREIGHT',
+                            )
+                        )
+                    )
+                )
             ),
 
+            'delivery_confirmation_types' => array(
+                'NO_SIGNATURE_REQUIRED' => Mage::helper('usa')->__('Not Required'),
+                'ADULT'                 => Mage::helper('usa')->__('Adult'),
+                'DIRECT'                => Mage::helper('usa')->__('Direct'),
+                'INDIRECT'              => Mage::helper('usa')->__('Indirect'),
+            ),
         );
 
         if (!isset($codes[$type])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid FedEx XML code type: %s', $type));
             return false;
-        } elseif (''===$code) {
+        } elseif ('' === $code) {
             return $codes[$type];
         }
 
         if (!isset($codes[$type][$code])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid FedEx XML code for type %s: %s', $type, $code));
             return false;
         } else {
             return $codes[$type][$code];
@@ -578,7 +905,7 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
     /**
      *  Return FeDex currency ISO code by Magento Base Currency Code
      *
-     *  @return   string 3-digit currency code
+     *  @return string 3-digit currency code
      */
     public function getCurrencyCode ()
     {
@@ -603,7 +930,12 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         return isset($codes[$currencyCode]) ? $codes[$currencyCode] : $currencyCode;
     }
 
-
+    /**
+     * Get tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     public function getTracking($trackings)
     {
         $this->setTrackingReqeust();
@@ -619,6 +951,11 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         return $this->_result;
     }
 
+    /**
+     * Set tracking request
+     *
+     * @return void
+     */
     protected function setTrackingReqeust()
     {
         $r = new Varien_Object();
@@ -627,61 +964,180 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         $r->setAccount($account);
 
         $this->_rawTrackingRequest = $r;
-
     }
+
+    /**
+     * Send request for tracking
+     *
+     * @param array $tracking
+     * @return void
+     */
     protected function _getXMLTracking($tracking)
     {
-        $r = $this->_rawTrackingRequest;
-
-        $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><FDXTrack2Request/>');
-        $xml->addAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
-        $xml->addAttribute('xsi:noNamespaceSchemaLocation', 'FDXTrack2Request.xsd');
+        $trackRequest = array(
+            'WebAuthenticationDetail' => array(
+                'UserCredential' => array(
+                    'Key'      => $this->getConfigData('key'),
+                    'Password' => $this->getConfigData('password')
+                )
+            ),
+            'ClientDetail' => array(
+                'AccountNumber' => $this->getConfigData('account'),
+                'MeterNumber'   => $this->getConfigData('meter_number')
+            ),
+            'Version' => array(
+                'ServiceId'    => 'trck',
+                'Major'        => '5',
+                'Intermediate' => '0',
+                'Minor'        => '0'
+            ),
+            'PackageIdentifier' => array(
+                'Type'  => 'TRACKING_NUMBER_OR_DOORTAG',
+                'Value' => $tracking,
+            ),
+            /*
+             * 0 = summary data, one signle scan structure with the most recent scan
+             * 1 = multiple sacn activity for each package
+             */
+            'IncludeDetailedScans' => 1,
+        );
+        $requestString = serialize($trackRequest);
+        $response = $this->_getCachedQuotes($requestString);
+        $debugData = array('request' => $trackRequest);
+        if ($response === null) {
+            try {
+                $client = $this->_createTrackSoapClient();
+                $response = $client->track($trackRequest);
+                $this->_setCachedQuotes($requestString, serialize($response));
+                $debugData['result'] = $response;
+            } catch (Exception $e) {
+                $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
+                Mage::logException($e);
+            }
+        } else {
+            $response = unserialize($response);
+            $debugData['result'] = $response;
+        }
+        $this->_debug($debugData);
 
-        $requestHeader = $xml->addChild('RequestHeader');
-        $requestHeader->addChild('AccountNumber', $r->getAccount());
+        $this->_parseTrackingResponse($tracking, $response);
+    }
 
-        /*
-        * for tracking result, actual meter number is not needed
-        */
-        $requestHeader->addChild('MeterNumber', '0');
+    /**
+     * Parse tracking response
+     *
+     * @param array $trackingValue
+     * @param stdClass $response
+     */
+    protected function _parseTrackingResponse($trackingValue, $response)
+    {
+        if (is_object($response)) {
+            if ($response->HighestSeverity == 'FAILURE' || $response->HighestSeverity == 'ERROR') {
+                $errorTitle = (string)$response->Notifications->Message;
+            } elseif (isset($response->TrackDetails)) {
+                $trackInfo = $response->TrackDetails;
+                $resultArray['status'] = (string)$trackInfo->StatusDescription;
+                $resultArray['service'] = (string)$trackInfo->ServiceInfo;
+                $timestamp = isset($trackInfo->EstimatedDeliveryTimestamp) ?
+                    $trackInfo->EstimatedDeliveryTimestamp : $trackInfo->ActualDeliveryTimestamp;
+                $timestamp = strtotime((string)$timestamp);
+                if ($timestamp) {
+                    $resultArray['deliverydate'] = date('Y-m-d', $timestamp);
+                    $resultArray['deliverytime'] = date('H:i:s', $timestamp);
+                }
 
-        $packageIdentifier = $xml->addChild('PackageIdentifier');
-        $packageIdentifier->addChild('Value', $tracking);
+                $deliveryLocation = isset($trackInfo->EstimatedDeliveryAddress) ?
+                    $trackInfo->EstimatedDeliveryAddress : $trackInfo->ActualDeliveryAddress;
+                $deliveryLocationArray = array();
+                if (isset($deliveryLocation->City)) {
+                    $deliveryLocationArray[] = (string)$deliveryLocation->City;
+                }
+                if (isset($deliveryLocation->StateOrProvinceCode)) {
+                    $deliveryLocationArray[] = (string)$deliveryLocation->StateOrProvinceCode;
+                }
+                if (isset($deliveryLocation->CountryCode)) {
+                    $deliveryLocationArray[] = (string)$deliveryLocation->CountryCode;
+                }
+                if ($deliveryLocationArray) {
+                    $resultArray['deliverylocation'] = implode(', ', $deliveryLocationArray);
+                }
 
-        /*
-        * 0 = summary data, one signle scan structure with the most recent scan
-        * 1 = multiple sacn activity for each package
-        */
-        $xml->addChild('DetailScans', '1');
+                $resultArray['signedby'] = (string)$trackInfo->DeliverySignatureName;
+                $resultArray['shippeddate'] = date('Y-m-d', (int)$trackInfo->ShipTimestamp);
+                if (isset($trackInfo->PackageWeight) && isset($trackInfo->Units)) {
+                    $weight = (string)$trackInfo->PackageWeight;
+                    $unit = (string)$trackInfo->Units;
+                    $resultArray['weight'] = "{$weight} {$unit}";
+                }
 
-        $request = $xml->asXML();
-        $debugData = array('request' => $request);
+                $packageProgress = array();
+                if (isset($trackInfo->Events)) {
+                    $events = $trackInfo->Events;
+                    if (isset($events->Address)) {
+                        $events = array($events);
+                    }
+                    foreach ($events as $event) {
+                        $tempArray = array();
+                        $tempArray['activity'] = (string)$event->EventDescription;
+                        $timestamp = strtotime((string)$event->Timestamp);
+                        if ($timestamp) {
+                            $tempArray['deliverydate'] = date('Y-m-d', $timestamp);
+                            $tempArray['deliverytime'] = date('H:i:s', $timestamp);
+                        }
+                        if (isset($event->Address)) {
+                            $addressArray = array();
+                            $address = $event->Address;
+                            if (isset($address->City)) {
+                                $addressArray[] = (string)$address->City;
+                            }
+                            if (isset($address->StateOrProvinceCode)) {
+                                $addressArray[] = (string)$address->StateOrProvinceCode;
+                            }
+                            if (isset($address->CountryCode)) {
+                                $addressArray[] = (string)$address->CountryCode;
+                            }
+                            if ($addressArray) {
+                                $tempArray['deliverylocation'] = implode(', ', $addressArray);
+                            }
+                        }
+                        $packageProgress[] = $tempArray;
+                    }
+                }
 
-        try {
-            $url = $this->getConfigData('gateway_url');
-            if (!$url) {
-                $url = $this->_defaultGatewayUrl;
+                $resultArray['progressdetail'] = $packageProgress;
             }
-            $ch = curl_init();
-            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-            curl_setopt($ch, CURLOPT_URL, $url);
-            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
-            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
-            curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
-            $responseBody = curl_exec($ch);
-            $debugData['result'] = $responseBody;
-            curl_close ($ch);
-        }
-        catch (Exception $e) {
-            $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
-            $responseBody = '';
         }
-        $this->_debug($debugData);
-        #echo "<xmp>".$responseBody."</xmp>";
-        $this->_parseXmlTrackingResponse($tracking, $responseBody);
+
+        if (!$this->_result) {
+            $this->_result = Mage::getModel('shipping/tracking_result');
+        }
+
+        if (isset($resultArray)) {
+            $tracking = Mage::getModel('shipping/tracking_result_status');
+            $tracking->setCarrier('fedex');
+            $tracking->setCarrierTitle($this->getConfigData('title'));
+            $tracking->setTracking($trackingValue);
+            $tracking->addData($resultArray);
+            $this->_result->append($tracking);
+        } else {
+           $error = Mage::getModel('shipping/tracking_result_error');
+           $error->setCarrier('fedex');
+           $error->setCarrierTitle($this->getConfigData('title'));
+           $error->setTracking($trackingValue);
+           $error->setErrorMessage($errorTitle ? $errorTitle : Mage::helper('usa')->__('Unable to retrieve tracking'));
+           $this->_result->append($error);
+        }
     }
 
-    protected function _parseXmlTrackingResponse($trackingvalue,$response)
+    /**
+     * Parse xml tracking response
+     *
+     * @deprecated after 1.6.0.0 see _parseTrackingResponse()
+     * @param array $trackingvalue
+     * @param string $response
+     * @return void
+     */
+    protected function _parseXmlTrackingResponse($trackingvalue, $response)
     {
          $resultArr=array();
          if (strlen(trim($response))>0) {
@@ -738,19 +1194,18 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
              $errorTitle = false;
          }
 
-         if(!$this->_result){
+         if (!$this->_result) {
              $this->_result = Mage::getModel('shipping/tracking_result');
          }
-         $defaults = $this->getDefaults();
 
-         if($resultArr){
+         if ($resultArr) {
              $tracking = Mage::getModel('shipping/tracking_result_status');
              $tracking->setCarrier('fedex');
              $tracking->setCarrierTitle($this->getConfigData('title'));
              $tracking->setTracking($trackingvalue);
              $tracking->addData($resultArr);
              $this->_result->append($tracking);
-         }else{
+         } else {
             $error = Mage::getModel('shipping/tracking_result_error');
             $error->setCarrier('fedex');
             $error->setCarrierTitle($this->getConfigData('title'));
@@ -760,17 +1215,22 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
          }
     }
 
+    /**
+     * Get tracking response
+     *
+     * @return string
+     */
     public function getResponse()
     {
         $statuses = '';
-        if ($this->_result instanceof Mage_Shipping_Model_Tracking_Result){
+        if ($this->_result instanceof Mage_Shipping_Model_Tracking_Result) {
             if ($trackings = $this->_result->getAllTrackings()) {
                 foreach ($trackings as $tracking){
                     if($data = $tracking->getAllData()){
                         if (!empty($data['status'])) {
-                            $statuses .= Mage::helper('usa')->__($data['status'])."\n<br/>";
+                            $statuses .= Mage::helper('usa')->__($data['status']) . "\n<br/>";
                         } else {
-                            $statuses .= Mage::helper('usa')->__('Empty response')."\n<br/>";
+                            $statuses .= Mage::helper('usa')->__('Empty response') . "\n<br/>";
                         }
                     }
                 }
@@ -797,4 +1257,345 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex
         return $arr;
     }
 
+    /**
+     * Return array of authenticated information
+     *
+     * @return array
+     */
+    protected function _getAuthDetails()
+    {
+        return array(
+            'WebAuthenticationDetail' => array(
+                'UserCredential' => array(
+                    'Key'      => $this->getConfigData('key'),
+                    'Password' => $this->getConfigData('password')
+                )
+            ),
+            'ClientDetail' => array(
+                'AccountNumber' => $this->getConfigData('account'),
+                'MeterNumber'   => $this->getConfigData('meter_number')
+            ),
+            'TransactionDetail' => array(
+                'CustomerTransactionId' => '*** Express Domestic Shipping Request v9 using PHP ***'
+            ),
+            'Version' => array(
+                'ServiceId'     => 'ship',
+                'Major'         => '10',
+                'Intermediate'  => '0',
+                'Minor'         => '0'
+            )
+        );
+    }
+
+    /**
+     * Form array with appropriate structure for shipment request
+     *
+     * @param Varien_Object $request
+     * @return array
+     */
+    protected function _formShipmentRequest(Varien_Object $request)
+    {
+        if ($request->getReferenceData()) {
+            $referenceData = $request->getReferenceData() . $request->getPackageId();
+        } else {
+            $referenceData = 'Order #'
+                             . $request->getOrderShipment()->getOrder()->getIncrementId()
+                             . ' P'
+                             . $request->getPackageId();
+        }
+        $packageParams = $request->getPackageParams();
+        $customsValue = $packageParams->getCustomsValue();
+        $height = $packageParams->getHeight();
+        $width = $packageParams->getWidth();
+        $length = $packageParams->getLength();
+        $weightUnits = $packageParams->getWeightUnits() == Zend_Measure_Weight::POUND ? 'LB' : 'KG';
+        $dimensionsUnits = $packageParams->getDimensionUnits() == Zend_Measure_Length::INCH ? 'IN' : 'CM';
+        $unitPrice = 0;
+        $itemsQty = 0;
+        $itemsDesc = array();
+        $countriesOfManufacture = array();
+        $productIds = array();
+        $packageItems = $request->getPackageItems();
+        foreach ($packageItems as $itemShipment) {
+                $item = new Varien_Object();
+                $item->setData($itemShipment);
+
+                $unitPrice  += $item->getPrice();
+                $itemsQty   += $item->getQty();
+
+                $itemsDesc[]    = $item->getName();
+                $productIds[]   = $item->getProductId();
+        }
+
+        // get countries of manufacture
+        $productCollection = Mage::getResourceModel('catalog/product_collection')
+            ->addStoreFilter($request->getStoreId())
+            ->addFieldToFilter('entity_id', array('in' => $productIds))
+            ->addAttributeToSelect('country_of_manufacture');
+        foreach ($productCollection as $product) {
+            $countriesOfManufacture[] = $product->getCountryOfManufacture();
+        }
+
+        $paymentType = $request->getIsReturn() ? 'RECIPIENT' : 'SENDER';
+        $requestClient = array(
+            'RequestedShipment' => array(
+                'ShipTimestamp' => time(),
+                'DropoffType'   => $this->getConfigData('dropoff'),
+                'PackagingType' => $request->getPackagingType(),
+                'ServiceType' => $request->getShippingMethod(),
+                'Shipper' => array(
+                    'Contact' => array(
+                        'PersonName' => $request->getShipperContactPersonName(),
+                        'CompanyName' => $request->getShipperContactCompanyName(),
+                        'PhoneNumber' => $request->getShipperContactPhoneNumber()
+                    ),
+                    'Address' => array(
+                        'StreetLines' => array($request->getShipperAddressStreet()),
+                        'City' => $request->getShipperAddressCity(),
+                        'StateOrProvinceCode' => $request->getShipperAddressStateOrProvinceCode(),
+                        'PostalCode' => $request->getShipperAddressPostalCode(),
+                        'CountryCode' => $request->getShipperAddressCountryCode()
+                    )
+                ),
+                'Recipient' => array(
+                    'Contact' => array(
+                        'PersonName' => $request->getRecipientContactPersonName(),
+                        'CompanyName' => $request->getRecipientContactCompanyName(),
+                        'PhoneNumber' => $request->getRecipientContactPhoneNumber()
+                    ),
+                    'Address' => array(
+                        'StreetLines' => array($request->getRecipientAddressStreet()),
+                        'City' => $request->getRecipientAddressCity(),
+                        'StateOrProvinceCode' => $request->getRecipientAddressStateOrProvinceCode(),
+                        'PostalCode' => $request->getRecipientAddressPostalCode(),
+                        'CountryCode' => $request->getRecipientAddressCountryCode(),
+                        'Residential' => (bool)$this->getConfigData('residence_delivery')
+                    ),
+                ),
+                'ShippingChargesPayment' => array(
+                    'PaymentType' => $paymentType,
+                    'Payor' => array(
+                        'AccountNumber' => $this->getConfigData('account'),
+                        'CountryCode'   => Mage::getStoreConfig(
+                            Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                            $request->getStoreId()
+                        )
+                    )
+                ),
+                'LabelSpecification' =>array(
+                    'LabelFormatType' => 'COMMON2D',
+                    'ImageType' => 'PNG',
+                    'LabelStockType' => 'PAPER_8.5X11_TOP_HALF_LABEL',
+                ),
+                'RateRequestTypes'  => array('ACCOUNT'),
+                'PackageCount'      => 1,
+                'RequestedPackageLineItems' => array(
+                    'SequenceNumber' => '1',
+                    'Weight' => array(
+                        'Units' => $weightUnits,
+                        'Value' =>  $request->getPackageWeight()
+                    ),
+                    'CustomerReferences' => array(
+                        'CustomerReferenceType' => 'CUSTOMER_REFERENCE',
+                        'Value' => $referenceData
+                    ),
+                    'SpecialServicesRequested' => array(
+                        'SpecialServiceTypes' => 'SIGNATURE_OPTION',
+                        'SignatureOptionDetail' => array('OptionType' => $packageParams->getDeliveryConfirmation())
+                    ),
+                )
+            )
+        );
+
+        // for international shipping
+        if ($request->getShipperAddressCountryCode() != $request->getRecipientAddressCountryCode()) {
+            $requestClient['RequestedShipment']['CustomsClearanceDetail'] =
+                array(
+                    'CustomsValue' =>
+                    array(
+                        'Currency' => $request->getBaseCurrencyCode(),
+                        'Amount' => $customsValue,
+                    ),
+                    'DutiesPayment' => array(
+                        'PaymentType' => $paymentType,
+                        'Payor' => array(
+                            'AccountNumber' => $this->getConfigData('account'),
+                            'CountryCode'   => Mage::getStoreConfig(
+                                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                                $request->getStoreId()
+                            )
+                        )
+                    ),
+                    'Commodities' => array(
+                        'Weight' => array(
+                            'Units' => $weightUnits,
+                            'Value' =>  $request->getPackageWeight()
+                        ),
+                        'NumberOfPieces' => 1,
+                        'CountryOfManufacture' => implode(',', array_unique($countriesOfManufacture)),
+                        'Description' => implode(', ', $itemsDesc),
+                        'Quantity' => ceil($itemsQty),
+                        'QuantityUnits' => 'pcs',
+                        'UnitPrice' => array(
+                            'Currency' => $request->getBaseCurrencyCode(),
+                            'Amount' =>  $unitPrice
+                        ),
+                        'CustomsValue' => array(
+                            'Currency' => $request->getBaseCurrencyCode(),
+                            'Amount' =>  $customsValue
+                        ),
+                    )
+                );
+        }
+
+        if ($request->getMasterTrackingId()) {
+            $requestClient['RequestedShipment']['MasterTrackingId'] = $request->getMasterTrackingId();
+        }
+
+        // set dimensions
+        if ($length || $width || $height) {
+            $requestClient['RequestedShipment']['RequestedPackageLineItems']['Dimensions'] = array();
+            $dimenssions = &$requestClient['RequestedShipment']['RequestedPackageLineItems']['Dimensions'];
+            $dimenssions['Length'] = $length;
+            $dimenssions['Width']  = $width;
+            $dimenssions['Height'] = $height;
+            $dimenssions['Units'] = $dimensionsUnits;
+        }
+
+        return $this->_getAuthDetails() + $requestClient;
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    protected function _doShipmentRequest(Varien_Object $request)
+    {
+        $this->_prepareShipmentRequest($request);
+        $result = new Varien_Object();
+        $client = $this->_createShipSoapClient();
+        $requestClient = $this->_formShipmentRequest($request);
+        $response = $client->processShipment($requestClient);
+
+        if ($response->HighestSeverity != 'FAILURE' && $response->HighestSeverity != 'ERROR') {
+            $shippingLabelContent = $response->CompletedShipmentDetail->CompletedPackageDetails->Label->Parts->Image;
+            $trackingNumber = $response->CompletedShipmentDetail->CompletedPackageDetails->TrackingIds->TrackingNumber;
+            $result->setShippingLabelContent($shippingLabelContent);
+            $result->setTrackingNumber($trackingNumber);
+            $debugData = array('request' => $client->__getLastRequest(), 'result' => $client->__getLastResponse());
+            $this->_debug($debugData);
+        } else {
+            $debugData = array(
+                'request' => $client->__getLastRequest(),
+                'result' => array(
+                    'error' => '',
+                    'code' => '',
+                    'xml' => $client->__getLastResponse()
+                )
+            );
+            if (is_array($response->Notifications)) {
+                foreach ($response->Notifications as $notification) {
+                    $debugData['result']['code'] .= $notification->Code . '; ';
+                    $debugData['result']['error'] .= $notification->Message . '; ';
+                }
+            } else {
+                $debugData['result']['code'] = $response->Notifications->Code . ' ';
+                $debugData['result']['error'] = $response->Notifications->Message . ' ';
+            }
+            $this->_debug($debugData);
+            $result->setErrors($debugData['result']['error']);
+        }
+        $result->setGatewayResponse($client->__getLastResponse());
+
+        return $result;
+    }
+
+    /**
+     * For multi package shipments. Delete requested shipments if the current shipment
+     * request is failed
+     *
+     * @param array $data
+     * @return bool
+     */
+    public function rollBack($data)
+    {
+        $requestData = $this->_getAuthDetails();
+        $requestData['DeletionControl'] = 'DELETE_ONE_PACKAGE';
+        foreach ($data as &$item) {
+            $requestData['TrackingId'] = $item['tracking_number'];
+            $client = $this->_createShipSoapClient();
+            $client->deleteShipment($requestData);
+        }
+        return true;
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        if ($params == null) {
+            return $this->_getAllowedContainers($params);
+        }
+        $method             = $params->getMethod();
+        $countryShipper     = $params->getCountryShipper();
+        $countryRecipient   = $params->getCountryRecipient();
+
+        if (($countryShipper == self::USA_COUNTRY_ID && $countryRecipient == self::CANADA_COUNTRY_ID
+            || $countryShipper == self::CANADA_COUNTRY_ID && $countryRecipient == self::USA_COUNTRY_ID)
+            && $method == 'FEDEX_GROUND'
+        ) {
+            return array('YOUR_PACKAGING' => Mage::helper('usa')->__('Your Packaging'));
+        } else if ($method == 'INTERNATIONAL_ECONOMY' || $method == 'INTERNATIONAL_FIRST') {
+            $allTypes = $this->getContainerTypesAll();
+            $exclude = array('FEDEX_10KG_BOX' => '', 'FEDEX_25KG_BOX' => '');
+            return array_diff_key($allTypes, $exclude);
+        } else if ($method == 'EUROPE_FIRST_INTERNATIONAL_PRIORITY') {
+            $allTypes = $this->getContainerTypesAll();
+            $exclude = array('FEDEX_BOX' => '', 'FEDEX_TUBE' => '');
+            return array_diff_key($allTypes, $exclude);
+        } else if ($countryShipper == self::CANADA_COUNTRY_ID && $countryRecipient == self::CANADA_COUNTRY_ID) {
+            // hack for Canada domestic. Apply the same filter rules as for US domestic
+            $params->setCountryShipper(self::USA_COUNTRY_ID);
+            $params->setCountryRecipient(self::USA_COUNTRY_ID);
+        }
+
+        return $this->_getAllowedContainers($params);
+    }
+
+    /**
+     * Return all container types of carrier
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesAll()
+    {
+        return $this->getCode('packaging');
+    }
+
+    /**
+     * Return structured data of containers witch related with shipping methods
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesFilter()
+    {
+        return $this->getCode('containers_filter');
+    }
+
+    /**
+     * Return delivery confirmation types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array
+     */
+    public function getDeliveryConfirmationTypes(Varien_Object $params = null)
+    {
+        return $this->getCode('delivery_confirmation_types');
+    }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Dropoff.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Dropoff.php
index 0a5f2be..7c15c34 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Dropoff.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Dropoff.php
@@ -20,19 +20,25 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
-
+/**
+ * Fedex dropoff source implementation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
 class Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Dropoff
 {
     public function toOptionArray()
     {
         $fedex = Mage::getSingleton('usa/shipping_carrier_fedex');
         $arr = array();
-        foreach ($fedex->getCode('dropoff') as $k=>$v) {
-            $arr[] = array('value'=>$k, 'label'=>$v);
+        foreach ($fedex->getCode('dropoff') as $k => $v) {
+            $arr[] = array('value' => $k, 'label' => $v);
         }
         return $arr;
     }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Freemethod.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Freemethod.php
index 83f0040..e5d26d4 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Freemethod.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Freemethod.php
@@ -20,17 +20,24 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
-
-class Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Freemethod extends Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Method
+/**
+ * Fedex freemethod source implementation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
+class Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Freemethod
+    extends Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Method
 {
     public function toOptionArray()
     {
         $arr = parent::toOptionArray();
-        array_unshift($arr, array('value'=>'', 'label'=>Mage::helper('shipping')->__('None')));
+        array_unshift($arr, array('value' => '', 'label' => Mage::helper('shipping')->__('None')));
         return $arr;
     }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Method.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Method.php
index f93b3d9..7e7716c 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Method.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Method.php
@@ -20,19 +20,25 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
-
+/**
+ * Fedex method source implementation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
 class Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Method
 {
     public function toOptionArray()
     {
         $fedex = Mage::getSingleton('usa/shipping_carrier_fedex');
         $arr = array();
-        foreach ($fedex->getCode('method') as $k=>$v) {
-            $arr[] = array('value'=>$k, 'label'=>$v);
+        foreach ($fedex->getCode('method') as $k => $v) {
+            $arr[] = array('value' => $k, 'label' => $v);
         }
         return $arr;
     }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Packaging.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Packaging.php
index d4a8acf..e77d0af 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Packaging.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex/Source/Packaging.php
@@ -20,19 +20,25 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
-
+/**
+ * Fedex packaging source implementation
+ *
+ * @category   Mage
+ * @package    Mage_Usa
+ * @author     Magento Core Team <core@magentocommerce.com>
+ */
 class Mage_Usa_Model_Shipping_Carrier_Fedex_Source_Packaging
 {
     public function toOptionArray()
     {
         $fedex = Mage::getSingleton('usa/shipping_carrier_fedex');
         $arr = array();
-        foreach ($fedex->getCode('packaging') as $k=>$v) {
-            $arr[] = array('value'=>$k, 'label'=>$v);
+        foreach ($fedex->getCode('packaging') as $k => $v) {
+            $arr[] = array('value' => $k, 'label' => $v);
         }
         return $arr;
     }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
index 1b1811f..c324af8 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php
@@ -20,13 +20,13 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
 
 /**
- * UPS shipping rates estimation
+ * UPS shipping implementation
  *
  * @category   Mage
  * @package    Mage_Usa
@@ -37,26 +37,97 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
     implements Mage_Shipping_Model_Carrier_Interface
 {
 
-    protected $_code = 'ups';
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    const CODE = 'ups';
+
+    /**
+     * Delivery Confirmation level based on origin/destination
+     *
+     * @var int
+     */
+    const DELIVERY_CONFIRMATION_SHIPMENT = 1;
+    const DELIVERY_CONFIRMATION_PACKAGE = 2;
+
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    protected $_code = self::CODE;
 
+    /**
+     * Rate request data
+     *
+     * @var Mage_Shipping_Model_Rate_Request|null
+     */
     protected $_request = null;
 
+    /**
+     * Raw rate request data
+     *
+     * @var Varien_Object|null
+     */
+    protected $_rawRequest = null;
+
+    /**
+     * Rate result data
+     *
+     * @var Mage_Shipping_Model_Rate_Result|null
+     */
     protected $_result = null;
 
+    /**
+     * Base currency rate
+     *
+     * @var double
+     */
+    protected $_baseCurrencyRate;
+
+    /**
+     * Xml access request
+     *
+     * @var string
+     */
     protected $_xmlAccessRequest = null;
 
+    /**
+     * Default cgi gateway url
+     *
+     * @var string
+     */
     protected $_defaultCgiGatewayUrl = 'http://www.ups.com:80/using/services/rave/qcostcgi.cgi';
 
     /**
-     * Base currency rate
+     * Default urls for shipment
      *
-     * @var double
+     * @var array
+     */
+    protected $_defaultUrls = array(
+        'ShipConfirm' => 'https://wwwcie.ups.com/ups.app/xml/ShipConfirm',
+        'ShipAccept'  => 'https://wwwcie.ups.com/ups.app/xml/ShipAccept',
+    );
+
+    /**
+     * Container types that could be customized for UPS carrier
+     *
+     * @var array
+     */
+    protected $_customizableContainerTypes = array('CP', 'CSP');
+
+    /**
+     * Collect and get rates
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Shipping_Model_Rate_Result|bool|null
      */
-    protected $_baseCurrencyRate;
 
     public function collectRates(Mage_Shipping_Model_Rate_Request $request)
     {
-        if (!$this->getConfigFlag('active')) {
+        if (!$this->getConfigFlag($this->_activeFlag)) {
             return false;
         }
 
@@ -68,6 +139,12 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         return $this->getResult();
     }
 
+    /**
+     * Prepare and set request to this instance
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Usa_Model_Shipping_Carrier_Ups
+     */
     public function setRequest(Mage_Shipping_Model_Rate_Request $request)
     {
         $this->_request = $request;
@@ -106,7 +183,10 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         if ($request->getOrigCountry()) {
             $origCountry = $request->getOrigCountry();
         } else {
-            $origCountry = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_COUNTRY_ID, $this->getStore());
+            $origCountry = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $request->getStoreId()
+            );
         }
 
         $r->setOrigCountry(Mage::getModel('directory/country')->load($origCountry)->getIso2Code());
@@ -114,23 +194,32 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         if ($request->getOrigRegionCode()) {
             $origRegionCode = $request->getOrigRegionCode();
         } else {
-            $origRegionCode = Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_REGION_ID, $this->getStore());
-            if (is_numeric($origRegionCode)) {
-                $origRegionCode = Mage::getModel('directory/region')->load($origRegionCode)->getCode();
-            }
+            $origRegionCode = Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_REGION_ID,
+                $request->getStoreId()
+            );
+        }
+        if (is_numeric($origRegionCode)) {
+            $origRegionCode = Mage::getModel('directory/region')->load($origRegionCode)->getCode();
         }
         $r->setOrigRegionCode($origRegionCode);
 
         if ($request->getOrigPostcode()) {
             $r->setOrigPostal($request->getOrigPostcode());
         } else {
-            $r->setOrigPostal(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_POSTCODE, $this->getStore()));
+            $r->setOrigPostal(Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_ZIP,
+                $request->getStoreId()
+            ));
         }
 
         if ($request->getOrigCity()) {
             $r->setOrigCity($request->getOrigCity());
         } else {
-            $r->setOrigCity(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_CITY, $this->getStore()));
+            $r->setOrigCity(Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_CITY,
+                $request->getStoreId()
+            ));
         }
 
 
@@ -141,7 +230,9 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         }
 
         //for UPS, puero rico state for US will assume as puerto rico country
-        if ($destCountry==self::USA_COUNTRY_ID && ($request->getDestPostcode()=='00912' || $request->getDestRegionCode()==self::PUERTORICO_COUNTRY_ID)) {
+        if ($destCountry == self::USA_COUNTRY_ID
+            && ($request->getDestPostcode()=='00912' || $request->getDestRegionCode()==self::PUERTORICO_COUNTRY_ID)
+        ) {
             $destCountry = self::PUERTORICO_COUNTRY_ID;
         }
 
@@ -179,6 +270,10 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         }
         $r->setUnitMeasure($unit);
 
+        $r->setIsReturn($request->getIsReturn());
+
+        $r->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
+
         $this->_rawRequest = $r;
 
         return $this;
@@ -208,11 +303,21 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         return $weight;
     }
 
+    /**
+     * Get result of request
+     *
+     * @return mixed
+     */
     public function getResult()
     {
        return $this->_result;
     }
 
+    /**
+     * Do remote request for  and handle errors
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getQuotes()
     {
         switch ($this->getConfigData('type')) {
@@ -225,6 +330,12 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         return null;
     }
 
+    /**
+     * Set free method request
+     *
+     * @param string $freeMethod
+     * @return null
+     */
     protected function _setFreeMethodRequest($freeMethod)
     {
         $r = $this->_rawRequest;
@@ -236,6 +347,11 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         $r->setProduct($freeMethod);
     }
 
+    /**
+     * Get cgi rates
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getCgiQuotes()
     {
         $r = $this->_rawRequest;
@@ -247,7 +363,9 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
             '14_origCountry' => $r->getOrigCountry(),
             '15_origPostal'  => $r->getOrigPostal(),
             'origCity'       => $r->getOrigCity(),
-            '19_destPostal'  => 'US' == $r->getDestCountry() ? substr($r->getDestPostal(), 0, 5) : $r->getDestPostal(), // UPS returns error for zip+4 US codes
+            '19_destPostal'  => Mage_Usa_Model_Shipping_Carrier_Abstract::USA_COUNTRY_ID == $r->getDestCountry() ?
+                substr($r->getDestPostal(), 0, 5) :
+                $r->getDestPostal(),
             '22_destCountry' => $r->getDestCountry(),
             '23_weight'      => $r->getWeight(),
             '47_rate_chart'  => $r->getPickup(),
@@ -285,7 +403,14 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
         return $this->_parseCgiResponse($responseBody);
     }
 
-    public function getShipmentByCode($code,$origin = null){
+    /**
+     * Get shipment by code
+     *
+     * @param string $code
+     * @param string $origin
+     * @return array|bool
+     */
+    public function getShipmentByCode($code, $origin = null){
         if($origin===null){
             $origin = $this->getConfigData('origin_shipment');
         }
@@ -297,6 +422,12 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
     }
 
 
+    /**
+     * Prepare shipping rate result based on response
+     *
+     * @param mixed $response
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _parseCgiResponse($response)
     {
         $costArr = array();
@@ -336,7 +467,6 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
             $error = Mage::getModel('shipping/rate_result_error');
             $error->setCarrier('ups');
             $error->setCarrierTitle($this->getConfigData('title'));
-            //$error->setErrorMessage($errorTitle);
             $error->setErrorMessage($this->getConfigData('specificerrmsg'));
             $result->append($error);
         } else {
@@ -352,17 +482,17 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
                 $result->append($rate);
             }
         }
-#echo "<pre>".print_r($result,1)."</pre>";
-        return $result;
-    }
 
-/*
-    public function isEligibleForFree($method)
-    {
-        return $method=='GND' || $method=='GNDCOM' || $method=='GNDRES';
+        return $result;
     }
-*/
 
+    /**
+     * Get configuration data of carrier
+     *
+     * @param string $type
+     * @param string $code
+     * @return array|bool
+     */
     public function getCode($type, $code='')
     {
         $codes = array(
@@ -399,7 +529,7 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
                     '14' => Mage::helper('usa')->__('UPS Next Day Air Early A.M.'),
                     '54' => Mage::helper('usa')->__('UPS Worldwide Express Plus'),
                     '59' => Mage::helper('usa')->__('UPS Second Day Air A.M.'),
-                    '65' => Mage::helper('usa')->__('UPS Saver'),
+                    '65' => Mage::helper('usa')->__('UPS Worldwide Saver'),
                 ),
                 // Shipments Originating in Canada
                 'Shipments Originating in Canada' => array(
@@ -497,19 +627,31 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
             'container'=>array(
                 'CP'     => '00', // Customer Packaging
                 'ULE'    => '01', // UPS Letter Envelope
+                'CSP'    => '02', // Customer Supplied Package
                 'UT'     => '03', // UPS Tube
+                'PAK'    => '04', // PAK
                 'UEB'    => '21', // UPS Express Box
                 'UW25'   => '24', // UPS Worldwide 25 kilo
                 'UW10'   => '25', // UPS Worldwide 10 kilo
+                'PLT'    => '30', // Pallet
+                'SEB'    => '2a', // Small Express Box
+                'MEB'    => '2b', // Medium Express Box
+                'LEB'    => '2c', // Large Express Box
             ),
 
             'container_description'=>array(
                 'CP'     => Mage::helper('usa')->__('Customer Packaging'),
                 'ULE'    => Mage::helper('usa')->__('UPS Letter Envelope'),
+                'CSP'    => Mage::helper('usa')->__('Customer Supplied Package'),
                 'UT'     => Mage::helper('usa')->__('UPS Tube'),
+                'PAK'    => Mage::helper('usa')->__('PAK'),
                 'UEB'    => Mage::helper('usa')->__('UPS Express Box'),
                 'UW25'   => Mage::helper('usa')->__('UPS Worldwide 25 kilo'),
                 'UW10'   => Mage::helper('usa')->__('UPS Worldwide 10 kilo'),
+                'PLT'    => Mage::helper('usa')->__('Pallet'),
+                'SEB'    => Mage::helper('usa')->__('Small Express Box'),
+                'MEB'    => Mage::helper('usa')->__('Medium Express Box'),
+                'LEB'    => Mage::helper('usa')->__('Large Express Box'),
             ),
 
             'dest_type'=>array(
@@ -526,24 +668,126 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
                 'LBS'   =>  Mage::helper('usa')->__('Pounds'),
                 'KGS'   =>  Mage::helper('usa')->__('Kilograms'),
             ),
-
+            'containers_filter' => array(
+                array(
+                    'containers' => array('00'), // Customer Packaging
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                '01', // Next Day Air
+                                '13', // Next Day Air Saver
+                                '12', // 3 Day Select
+                                '59', // 2nd Day Air AM
+                                '03', // Ground
+                                '14', // Next Day Air Early AM
+                                '02', // 2nd Day Air
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                '07', // Worldwide Express
+                                '54', // Worldwide Express Plus
+                                '08', // Worldwide Expedited
+                                '65', // Worldwide Saver
+                                '11', // Standard
+                            )
+                        )
+                    )
+                ),
+                array(
+                    // Small Express Box, Medium Express Box, Large Express Box, UPS Tube
+                    'containers' => array('2a', '2b', '2c', '03'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                '01', // Next Day Air
+                                '13', // Next Day Air Saver
+                                '14', // Next Day Air Early AM
+                                '02', // 2nd Day Air
+                                '59', // 2nd Day Air AM
+                                '13', // Next Day Air Saver
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                '07', // Worldwide Express
+                                '54', // Worldwide Express Plus
+                                '08', // Worldwide Expedited
+                                '65', // Worldwide Saver
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('24', '25'), // UPS Worldwide 25 kilo, UPS Worldwide 10 kilo
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array()
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                '07', // Worldwide Express
+                                '54', // Worldwide Express Plus
+                                '65', // Worldwide Saver
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('01', '04'), // UPS Letter, UPS PAK
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                '01', // Next Day Air
+                                '14', // Next Day Air Early AM
+                                '02', // 2nd Day Air
+                                '59', // 2nd Day Air AM
+                                '13', // Next Day Air Saver
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                '07', // Worldwide Express
+                                '54', // Worldwide Express Plus
+                                '65', // Worldwide Saver
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('04'), // UPS PAK
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array()
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                '08', // Worldwide Expedited
+                            )
+                        )
+                    )
+                ),
+            )
         );
 
         if (!isset($codes[$type])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid UPS CGI code type: %s', $type));
             return false;
         } elseif (''===$code) {
             return $codes[$type];
         }
 
         if (!isset($codes[$type][$code])) {
-//            throw Mage::exception('Mage_Shipping', Mage::helper('usa')->__('Invalid UPS CGI code for type %s: %s', $type, $code));
             return false;
         } else {
             return $codes[$type][$code];
         }
     }
 
+    /**
+     * Get xml rates
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getXmlQuotes()
     {
         $url = $this->getConfigData('gateway_xml_url');
@@ -560,7 +804,9 @@ class Mage_Usa_Model_Shipping_Carrier_Ups
             '15_origPostal'  => $r->getOrigPostal(),
             'origCity'       => $r->getOrigCity(),
             'origRegionCode' => $r->getOrigRegionCode(),
-            '19_destPostal'  => 'US' == $r->getDestCountry() ? substr($r->getDestPostal(), 0, 5) : $r->getDestPostal(), // UPS returns error for zip+4 US codes
+            '19_destPostal'  => Mage_Usa_Model_Shipping_Carrier_Abstract::USA_COUNTRY_ID == $r->getDestCountry() ?
+                substr($r->getDestPostal(), 0, 5) :
+                $r->getDestPostal(),
             '22_destCountry' => $r->getDestCountry(),
             'destRegionCode' => $r->getDestRegionCode(),
             '23_weight'      => $r->getWeight(),
@@ -612,12 +858,24 @@ XMLRequest;
             $xmlRequest .= "<ShipperNumber>{$shipper}</ShipperNumber>";
         }
 
+        if ($r->getIsReturn()) {
+            $shipperCity = '';
+            $shipperPostalCode = $params['19_destPostal'];
+            $shipperCountryCode = $params['22_destCountry'];
+            $shipperStateProvince = $params['destRegionCode'];
+        } else {
+            $shipperCity = $params['origCity'];
+            $shipperPostalCode = $params['15_origPostal'];
+            $shipperCountryCode = $params['14_origCountry'];
+            $shipperStateProvince = $params['origRegionCode'];
+        }
+
 $xmlRequest .= <<< XMLRequest
       <Address>
-          <City>{$params['origCity']}</City>
-          <PostalCode>{$params['15_origPostal']}</PostalCode>
-          <CountryCode>{$params['14_origCountry']}</CountryCode>
-          <StateProvinceCode>{$params['origRegionCode']}</StateProvinceCode>
+          <City>{$shipperCity}</City>
+          <PostalCode>{$shipperPostalCode}</PostalCode>
+          <CountryCode>{$shipperCountryCode}</CountryCode>
+          <StateProvinceCode>{$shipperStateProvince}</StateProvinceCode>
       </Address>
     </Shipper>
     <ShipTo>
@@ -628,7 +886,10 @@ $xmlRequest .= <<< XMLRequest
           <StateProvinceCode>{$params['destRegionCode']}</StateProvinceCode>
 XMLRequest;
 
-          $xmlRequest .= ($params['49_residential']==='01' ? "<ResidentialAddressIndicator>{$params['49_residential']}</ResidentialAddressIndicator>" : '');
+          $xmlRequest .= ($params['49_residential']==='01'
+                  ? "<ResidentialAddressIndicator>{$params['49_residential']}</ResidentialAddressIndicator>"
+                  : ''
+          );
 
 $xmlRequest .= <<< XMLRequest
       </Address>
@@ -660,7 +921,6 @@ $xmlRequest .= <<< XMLRequest
 </RatingServiceSelectionRequest>
 XMLRequest;
 
-
         $xmlResponse = $this->_getCachedQuotes($xmlRequest);
         if ($xmlResponse === null) {
             $debugData = array('request' => $xmlRequest);
@@ -705,6 +965,12 @@ XMLRequest;
         return $this->_baseCurrencyRate;
     }
 
+    /**
+     * Prepare shipping rate result based on response
+     *
+     * @param mixed $response
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _parseXmlResponse($xmlResponse)
     {
         $costArr = array();
@@ -728,7 +994,6 @@ XMLRequest;
 
                 foreach ($arr as $shipElement){
                     $code = (string)$shipElement->Service->Code;
-                    #$shipment = $this->getShipmentByCode($code);
                     if (in_array($code, $allowedMethods)) {
 
                         if ($negotiatedActive) {
@@ -742,12 +1007,9 @@ XMLRequest;
                         $responseCurrencyCode = (string) $shipElement->TotalCharges->CurrencyCode;
                         if ($responseCurrencyCode) {
                             if (in_array($responseCurrencyCode, $allowedCurrencies)) {
-                                $cost *= $this->_getBaseCurrencyRate($responseCurrencyCode);
+                                $cost = (float) $cost * $this->_getBaseCurrencyRate($responseCurrencyCode);
                             } else {
-                                $errorTitle = Mage::helper('directory')
-                                    ->__('Can\'t convert rate from "%s-%s".',
-                                        $responseCurrencyCode,
-                                        $this->_request->getPackageCurrency()->getCode());
+                                $errorTitle = Mage::helper('directory')->__('Can\'t convert rate from "%s-%s".', $responseCurrencyCode, $this->_request->getPackageCurrency()->getCode());
                                 $error = Mage::getModel('shipping/rate_result_error');
                                 $error->setCarrier('ups');
                                 $error->setCarrierTitle($this->getConfigData('title'));
@@ -768,7 +1030,6 @@ XMLRequest;
                 $error = Mage::getModel('shipping/rate_result_error');
                 $error->setCarrier('ups');
                 $error->setCarrierTitle($this->getConfigData('title'));
-                Mage::log($errorTitle);
                 $error->setErrorMessage($this->getConfigData('specificerrmsg'));
             }
         }
@@ -782,7 +1043,6 @@ XMLRequest;
             if(!isset($errorTitle)){
                 $errorTitle = Mage::helper('usa')->__('Cannot retrieve shipping rates');
             }
-            Mage::log($errorTitle);
             $error->setErrorMessage($this->getConfigData('specificerrmsg'));
             $result->append($error);
         } else {
@@ -801,6 +1061,12 @@ XMLRequest;
         return $result;
     }
 
+    /**
+     * Get tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     public function getTracking($trackings)
     {
         $return = array();
@@ -819,6 +1085,11 @@ XMLRequest;
         return $this->_result;
     }
 
+    /**
+     * Set xml access request
+     *
+     * @return null
+     */
     protected function setXMLAccessRequest()
     {
         $userid = $this->getConfigData('username');
@@ -835,6 +1106,12 @@ XMLRequest;
 XMLAuth;
     }
 
+    /**
+     * Get cgi tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     protected function _getCgiTracking($trackings)
     {
         //ups no longer support tracking for data streaming version
@@ -847,7 +1124,10 @@ XMLAuth;
             $status->setCarrierTitle($this->getConfigData('title'));
             $status->setTracking($tracking);
             $status->setPopup(1);
-            $status->setUrl("http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&error_carried=true&tracknums_displayed=5&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=$tracking&AgreeToTermsAndConditions=yes");
+            $status->setUrl("http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&error_carried=true"
+                . "&tracknums_displayed=5&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=$tracking"
+                . "&AgreeToTermsAndConditions=yes"
+            );
             $result->append($status);
         }
 
@@ -855,6 +1135,12 @@ XMLAuth;
         return $result;
     }
 
+    /**
+     * Get xml tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     protected function _getXmlTracking($trackings)
     {
         $url = $this->getConfigData('tracking_xml_url');
@@ -902,6 +1188,13 @@ XMLAuth;
         return $this->_result;
     }
 
+    /**
+     * Parse xml tracking response
+     *
+     * @param string $trackingvalue
+     * @param string $response
+     * @return null
+     */
     protected function _parseXmlTrackingResponse($trackingvalue, $xmlResponse)
     {
         $errorTitle = 'Unable to retrieve tracking';
@@ -1008,6 +1301,11 @@ XMLAuth;
         return $this->_result;
     }
 
+    /**
+     * Get tracking response
+     *
+     * @return string
+     */
     public function getResponse()
     {
         $statuses = '';
@@ -1045,4 +1343,467 @@ XMLAuth;
          }
          return $arr;
     }
+
+    /**
+     * Form XML for shipment request
+     *
+     * @param Varien_Object $request
+     * @return string
+     */
+    protected function _formShipmentRequest(Varien_Object $request)
+    {
+        $packageParams = $request->getPackageParams();
+        $height = $packageParams->getHeight();
+        $width = $packageParams->getWidth();
+        $length = $packageParams->getLength();
+        $weightUnits = $packageParams->getWeightUnits() == Zend_Measure_Weight::POUND ? 'LBS' : 'KGS';
+        $dimensionsUnits = $packageParams->getDimensionUnits() == Zend_Measure_Length::INCH ? 'IN' : 'CM';
+
+        $itemsDesc = array();
+        $itemsShipment = $request->getPackageItems();
+        foreach ($itemsShipment as $itemShipment) {
+            $item = new Varien_Object();
+            $item->setData($itemShipment);
+            $itemsDesc[] = $item->getName();
+        }
+
+        $xmlRequest = new SimpleXMLElement('<?xml version = "1.0" ?><ShipmentConfirmRequest xml:lang="en-US"/>');
+        $requestPart = $xmlRequest->addChild('Request');
+        $requestPart->addChild('RequestAction', 'ShipConfirm');
+        $requestPart->addChild('RequestOption', 'nonvalidate');
+
+        $shipmentPart = $xmlRequest->addChild('Shipment');
+        if ($request->getIsReturn()) {
+            $returnPart = $shipmentPart->addChild('ReturnService');
+            // UPS Print Return Label
+            $returnPart->addChild('Code', '9');
+        }
+        $shipmentPart->addChild('Description', substr(implode(' ', $itemsDesc), 0, 35));//empirical
+
+        $shipperPart = $shipmentPart->addChild('Shipper');
+        if ($request->getIsReturn()) {
+            $shipperPart->addChild('Name', $request->getRecipientContactCompanyName());
+            $shipperPart->addChild('AttentionName', $request->getRecipientContactPersonName());
+            $shipperPart->addChild('ShipperNumber', $this->getConfigData('shipper_number'));
+            $shipperPart->addChild('PhoneNumber', $request->getRecipientContactPhoneNumber());
+
+            $addressPart = $shipperPart->addChild('Address');
+            $addressPart->addChild('AddressLine1', $request->getRecipientAddressStreet());
+            $addressPart->addChild('AddressLine2', $request->getRecipientAddressStreet2());
+            $addressPart->addChild('City', $request->getRecipientAddressCity());
+            $addressPart->addChild('CountryCode', $request->getRecipientAddressCountryCode());
+            $addressPart->addChild('PostalCode', $request->getRecipientAddressPostalCode());
+            if ($request->getRecipientAddressStateOrProvinceCode()) {
+                $addressPart->addChild('StateProvinceCode', $request->getRecipientAddressStateOrProvinceCode());
+            }
+        } else {
+            $shipperPart->addChild('Name', $request->getShipperContactCompanyName());
+            $shipperPart->addChild('AttentionName', $request->getShipperContactPersonName());
+            $shipperPart->addChild('ShipperNumber', $this->getConfigData('shipper_number'));
+            $shipperPart->addChild('PhoneNumber', $request->getShipperContactPhoneNumber());
+
+            $addressPart = $shipperPart->addChild('Address');
+            $addressPart->addChild('AddressLine1', $request->getShipperAddressStreet());
+            $addressPart->addChild('AddressLine2', $request->getShipperAddressStreet2());
+            $addressPart->addChild('City', $request->getShipperAddressCity());
+            $addressPart->addChild('CountryCode', $request->getShipperAddressCountryCode());
+            $addressPart->addChild('PostalCode', $request->getShipperAddressPostalCode());
+            if ($request->getShipperAddressStateOrProvinceCode()) {
+                $addressPart->addChild('StateProvinceCode', $request->getShipperAddressStateOrProvinceCode());
+            }
+        }
+
+        $shipToPart = $shipmentPart->addChild('ShipTo');
+        $shipToPart->addChild('AttentionName', $request->getRecipientContactPersonName());
+        $shipToPart->addChild('CompanyName', $request->getRecipientContactCompanyName()
+            ? $request->getRecipientContactCompanyName()
+            : 'N/A');
+        $shipToPart->addChild('PhoneNumber', $request->getRecipientContactPhoneNumber());
+
+        $addressPart = $shipToPart->addChild('Address');
+        $addressPart->addChild('AddressLine1', $request->getRecipientAddressStreet1());
+        $addressPart->addChild('AddressLine2', $request->getRecipientAddressStreet2());
+        $addressPart->addChild('City', $request->getRecipientAddressCity());
+        $addressPart->addChild('CountryCode', $request->getRecipientAddressCountryCode());
+        $addressPart->addChild('PostalCode', $request->getRecipientAddressPostalCode());
+        if ($request->getRecipientAddressStateOrProvinceCode()) {
+            $addressPart->addChild('StateProvinceCode', $request->getRecipientAddressRegionCode());
+        }
+        if ($this->getConfigData('dest_type') == 'RES') {
+            $addressPart->addChild('ResidentialAddress');
+        }
+
+        if ($request->getIsReturn()) {
+            $shipFromPart = $shipmentPart->addChild('ShipFrom');
+            $shipFromPart->addChild('AttentionName', $request->getShipperContactPersonName());
+            $shipFromPart->addChild('CompanyName', $request->getShipperContactCompanyName()
+                ? $request->getShipperContactCompanyName()
+                : $request->getShipperContactPersonName());
+            $shipFromAddress = $shipFromPart->addChild('Address');
+            $shipFromAddress->addChild('AddressLine1', $request->getShipperAddressStreet1());
+            $shipFromAddress->addChild('AddressLine2', $request->getShipperAddressStreet2());
+            $shipFromAddress->addChild('City', $request->getShipperAddressCity());
+            $shipFromAddress->addChild('CountryCode', $request->getShipperAddressCountryCode());
+            $shipFromAddress->addChild('PostalCode', $request->getShipperAddressPostalCode());
+            if ($request->getShipperAddressStateOrProvinceCode()) {
+                $shipFromAddress->addChild('StateProvinceCode', $request->getShipperAddressStateOrProvinceCode());
+            }
+
+            $addressPart = $shipToPart->addChild('Address');
+            $addressPart->addChild('AddressLine1', $request->getShipperAddressStreet1());
+            $addressPart->addChild('AddressLine2', $request->getShipperAddressStreet2());
+            $addressPart->addChild('City', $request->getShipperAddressCity());
+            $addressPart->addChild('CountryCode', $request->getShipperAddressCountryCode());
+            $addressPart->addChild('PostalCode', $request->getShipperAddressPostalCode());
+            if ($request->getShipperAddressStateOrProvinceCode()) {
+                $addressPart->addChild('StateProvinceCode', $request->getShipperAddressStateOrProvinceCode());
+            }
+            if ($this->getConfigData('dest_type') == 'RES') {
+                $addressPart->addChild('ResidentialAddress');
+            }
+        }
+
+        $servicePart = $shipmentPart->addChild('Service');
+        $servicePart->addChild('Code', $request->getShippingMethod());
+        $packagePart = $shipmentPart->addChild('Package');
+        $packagePart->addChild('Description', substr(implode(' ', $itemsDesc), 0, 35));//empirical
+        $packagePart->addChild('PackagingType')
+            ->addChild('Code', $request->getPackagingType());
+        $packageWeight = $packagePart->addChild('PackageWeight');
+        $packageWeight->addChild('Weight', $request->getPackageWeight());
+        $packageWeight->addChild('UnitOfMeasurement')->addChild('Code', $weightUnits);
+
+        // set dimensions
+        if ($length || $width || $height) {
+            $packageDimensions = $packagePart->addChild('Dimensions');
+            $packageDimensions->addChild('UnitOfMeasurement')->addChild('Code', $dimensionsUnits);
+            $packageDimensions->addChild('Length', $length);
+            $packageDimensions->addChild('Width', $width);
+            $packageDimensions->addChild('Height', $height);
+        }
+
+        // ups support reference number only for domestic service
+        if ($this->_isUSCountry($request->getRecipientAddressCountryCode())
+            && $this->_isUSCountry($request->getShipperAddressCountryCode())
+        ) {
+            if ($request->getReferenceData()) {
+                $referenceData = $request->getReferenceData() . $request->getPackageId();
+            } else {
+                $referenceData = 'Order #'
+                                 . $request->getOrderShipment()->getOrder()->getIncrementId()
+                                 . ' P'
+                                 . $request->getPackageId();
+            }
+            $referencePart = $packagePart->addChild('ReferenceNumber');
+            $referencePart->addChild('Code', '02');
+            $referencePart->addChild('Value', $referenceData);
+        }
+
+        $deliveryConfirmation = $packageParams->getDeliveryConfirmation();
+        if ($deliveryConfirmation) {
+            /** @var $serviceOptionsNode SimpleXMLElement */
+            $serviceOptionsNode = null;
+            switch ($this->_getDeliveryConfirmationLevel($request->getRecipientAddressCountryCode())) {
+                case self::DELIVERY_CONFIRMATION_PACKAGE:
+                    $serviceOptionsNode = $packagePart->addChild('PackageServiceOptions');
+                    break;
+                case self::DELIVERY_CONFIRMATION_SHIPMENT:
+                    $serviceOptionsNode = $shipmentPart->addChild('ShipmentServiceOptions');
+                    break;
+            }
+            if (!is_null($serviceOptionsNode)) {
+                $serviceOptionsNode
+                    ->addChild('DeliveryConfirmation')
+                    ->addChild('DCISType', $packageParams->getDeliveryConfirmation());
+            }
+        }
+
+        $shipmentPart->addChild('PaymentInformation')
+            ->addChild('Prepaid')
+            ->addChild('BillShipper')
+            ->addChild('AccountNumber', $this->getConfigData('shipper_number'));
+
+        if ($request->getPackagingType() != $this->getCode('container', 'ULE')
+            && $request->getShipperAddressCountryCode() == Mage_Usa_Model_Shipping_Carrier_Abstract::USA_COUNTRY_ID
+            && ($request->getRecipientAddressCountryCode() == 'CA' //Canada
+                || $request->getRecipientAddressCountryCode() == 'PR' //Puerto Rico
+        )) {
+            $invoiceLineTotalPart = $shipmentPart->addChild('InvoiceLineTotal');
+            $invoiceLineTotalPart->addChild('CurrencyCode', $request->getBaseCurrencyCode());
+            $invoiceLineTotalPart->addChild('MonetaryValue', ceil($packageParams->getCustomsValue()));
+        }
+
+        $labelPart = $xmlRequest->addChild('LabelSpecification');
+        $labelPart->addChild('LabelPrintMethod')
+                ->addChild('Code', 'GIF');
+        $labelPart->addChild('LabelImageFormat')
+                ->addChild('Code', 'GIF');
+
+        $this->setXMLAccessRequest();
+        $xmlRequest = $this->_xmlAccessRequest . $xmlRequest->asXml();
+        return $xmlRequest;
+    }
+
+    /**
+     * Send and process shipment accept request
+     *
+     * @param SimpleXMLElement
+     * @return Varien_Object
+     */
+    protected function _sendShipmentAcceptRequest(SimpleXMLElement $shipmentConfirmResponse)
+    {
+        $xmlRequest = new SimpleXMLElement('<?xml version = "1.0" ?><ShipmentAcceptRequest/>');
+        $request = $xmlRequest->addChild('Request');
+            $request->addChild('RequestAction', 'ShipAccept');
+        $xmlRequest->addChild('ShipmentDigest', $shipmentConfirmResponse->ShipmentDigest);
+
+        $debugData = array('request' => $xmlRequest->asXML());
+        try {
+            $url = $this->_defaultUrls['ShipAccept'];
+
+            $ch = curl_init($url);
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+            curl_setopt($ch, CURLOPT_HEADER, 0);
+            curl_setopt($ch, CURLOPT_POST, 1);
+            curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_xmlAccessRequest . $xmlRequest->asXML());
+            curl_setopt($ch, CURLOPT_TIMEOUT, 30);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, (boolean)$this->getConfigFlag('mode_xml'));
+            $xmlResponse = curl_exec ($ch);
+
+            $debugData['result'] = $xmlResponse;
+            $this->_setCachedQuotes($xmlRequest, $xmlResponse);
+        } catch (Exception $e) {
+            $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
+            $xmlResponse = '';
+        }
+
+        try {
+            $response = new SimpleXMLElement($xmlResponse);
+        } catch (Exception $e) {
+            $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
+        }
+
+        $result = new Varien_Object();
+        if (isset($response->Error)) {
+            $result->setErrors((string)$response->Error->ErrorDescription);
+        } else {
+            $shippingLabelContent = (string)$response->ShipmentResults->PackageResults->LabelImage->GraphicImage;
+            $trackingNumber       = (string)$response->ShipmentResults->PackageResults->TrackingNumber;
+
+            $result->setShippingLabelContent(base64_decode($shippingLabelContent));
+            $result->setTrackingNumber($trackingNumber);
+        }
+
+        $this->_debug($debugData);
+        return $result;
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    protected function _doShipmentRequest(Varien_Object $request)
+    {
+        $this->_prepareShipmentRequest($request);
+        $result = new Varien_Object();
+        $xmlRequest = $this->_formShipmentRequest($request);
+        $xmlResponse = $this->_getCachedQuotes($xmlRequest);
+
+        if ($xmlResponse === null) {
+            $url = $this->getConfigData('url');
+            if (!$url) {
+                $url = $this->_defaultUrls['ShipConfirm'];
+            }
+
+            $debugData = array('request' => $xmlRequest);
+            $ch = curl_init();
+            curl_setopt($ch, CURLOPT_URL, $url);
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+            curl_setopt($ch, CURLOPT_HEADER, 0);
+            curl_setopt($ch, CURLOPT_POST, 1);
+            curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlRequest);
+            curl_setopt($ch, CURLOPT_TIMEOUT, 30);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, (boolean)$this->getConfigFlag('mode_xml'));
+            $xmlResponse = curl_exec($ch);
+            if ($xmlResponse === false) {
+                throw new Exception(curl_error($ch));
+            } else {
+                $debugData['result'] = $xmlResponse;
+                $this->_setCachedQuotes($xmlRequest, $xmlResponse);
+            }
+        }
+
+        try {
+            $response = new SimpleXMLElement($xmlResponse);
+        } catch (Exception $e) {
+            $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
+            $result->setErrors($e->getMessage());
+        }
+
+        if (isset($response->Response->Error)
+            && in_array($response->Response->Error->ErrorSeverity, array('Hard', 'Transient'))
+        ) {
+            $result->setErrors((string)$response->Response->Error->ErrorDescription);
+        }
+
+        $this->_debug($debugData);
+
+        if ($result->hasErrors() || empty($response)) {
+            return $result;
+        } else {
+            return $this->_sendShipmentAcceptRequest($response);
+        }
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        if ($params == null) {
+            return $this->_getAllowedContainers($params);
+        }
+        $method             = $params->getMethod();
+        $countryShipper     = $params->getCountryShipper();
+        $countryRecipient   = $params->getCountryRecipient();
+
+        if (($countryShipper == self::USA_COUNTRY_ID
+            && $countryRecipient == self::CANADA_COUNTRY_ID)
+            || ($countryShipper == self::CANADA_COUNTRY_ID
+            && $countryRecipient == self::USA_COUNTRY_ID)
+            || ($countryShipper == self::MEXICO_COUNTRY_ID
+            && $countryRecipient == self::USA_COUNTRY_ID)
+            && $method == '11' // UPS Standard
+        ) {
+            $containerTypes = array();
+            if ($method == '07' // Worldwide Express
+                || $method == '08' // Worldwide Expedited
+                || $method == '65' // Worldwide Saver
+
+            ) {
+                // Worldwide Expedited
+                if ($method != '08') {
+                    $containerTypes = array(
+                        '01'   => Mage::helper('usa')->__('UPS Letter Envelope'),
+                        '24'   => Mage::helper('usa')->__('UPS Worldwide 25 kilo'),
+                        '25'   => Mage::helper('usa')->__('UPS Worldwide 10 kilo'),
+                    );
+                }
+                $containerTypes = $containerTypes + array(
+                    '03'     => Mage::helper('usa')->__('UPS Tube'),
+                    '04'    => Mage::helper('usa')->__('PAK'),
+                    '2a'    => Mage::helper('usa')->__('Small Express Box'),
+                    '2b'    => Mage::helper('usa')->__('Medium Express Box'),
+                    '2c'    => Mage::helper('usa')->__('Large Express Box'),
+                );
+            }
+            return array('00' => Mage::helper('usa')->__('Customer Packaging')) + $containerTypes;
+        } elseif ($countryShipper == self::USA_COUNTRY_ID && $countryRecipient == self::PUERTORICO_COUNTRY_ID
+            && ($method == '03' // UPS Ground
+            || $method == '02' // UPS Second Day Air
+            || $method == '01' // UPS Next Day Air
+        )) {
+            // Container types should be the same as for domestic
+            $params->setCountryRecipient(self::USA_COUNTRY_ID);
+            $containerTypes = $this->_getAllowedContainers($params);
+            $params->setCountryRecipient($countryRecipient);
+            return $containerTypes;
+        }
+        return $this->_getAllowedContainers($params);
+    }
+
+    /**
+     * Return all container types of carrier
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesAll()
+    {
+        $codes        = $this->getCode('container');
+        $descriptions = $this->getCode('container_description');
+        $result       = array();
+        foreach ($codes as $key => &$code) {
+            $result[$code] = $descriptions[$key];
+        }
+        return $result;
+
+    }
+
+    /**
+     * Return structured data of containers witch related with shipping methods
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesFilter()
+    {
+        return $this->getCode('containers_filter');
+    }
+
+    /**
+     * Return delivery confirmation types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    public function getDeliveryConfirmationTypes(Varien_Object $params = null)
+    {
+        $countryRecipient           = $params != null ? $params->getCountryRecipient() : null;
+        $deliveryConfirmationTypes  = array();
+        switch ($this->_getDeliveryConfirmationLevel($countryRecipient)) {
+            case self::DELIVERY_CONFIRMATION_PACKAGE:
+                $deliveryConfirmationTypes = array(
+                    1 => Mage::helper('usa')->__('Delivery Confirmation'),
+                    2 => Mage::helper('usa')->__('Signature Required'),
+                    3 => Mage::helper('usa')->__('Adult Signature Required'),
+                );
+                break;
+            case self::DELIVERY_CONFIRMATION_SHIPMENT:
+                $deliveryConfirmationTypes = array(
+                    1 => Mage::helper('usa')->__('Signature Required'),
+                    2 => Mage::helper('usa')->__('Adult Signature Required'),
+                );
+        }
+        array_unshift($deliveryConfirmationTypes, Mage::helper('usa')->__('Not Required'));
+
+        return $deliveryConfirmationTypes;
+    }
+
+    /**
+     * Get Container Types, that could be customized for UPS carrier
+     *
+     * @return array
+     */
+    public function getCustomizableContainerTypes()
+    {
+        $result = array();
+        $containerTypes = $this->getCode('container');
+        foreach (parent::getCustomizableContainerTypes() as $containerType) {
+            $result[$containerType] = $containerTypes[$containerType];
+        }
+        return $result;
+    }
+
+    /**
+     * Get delivery confirmation level based on origin/destination
+     * Return null if delivery confirmation is not acceptable
+     *
+     * @var string $countyDest
+     * @return int|null
+     */
+    protected function _getDeliveryConfirmationLevel($countyDest = null) {
+        if (is_null($countyDest)) {
+            return null;
+        }
+
+        if ($countyDest == Mage_Usa_Model_Shipping_Carrier_Abstract::USA_COUNTRY_ID) {
+            return self::DELIVERY_CONFIRMATION_PACKAGE;
+        }
+
+        return self::DELIVERY_CONFIRMATION_SHIPMENT;
+    }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Container.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Container.php
index c39e59f..3c52bf0 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Container.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Container.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/DestType.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/DestType.php
index 8afafe2..ba066fd 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/DestType.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/DestType.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Freemethod.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Freemethod.php
index 824bd83..43c5fed 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Freemethod.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Freemethod.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Method.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Method.php
index 3bc8086..f4da816 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Method.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Method.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Mode.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Mode.php
index b5469d9..1c2c0e5 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Mode.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Mode.php
@@ -20,15 +20,16 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
 /**
- * UPS (UPS XML) Modesource model
+ * UPS (UPS XML) mode source model
  *
- * @category Mage
- * @package Mage_Usa
+ * @deprecated  since 1.7.0.0
+ * @category    Mage
+ * @package     Mage_Usa
  * @author      Magento Core Team <core@magentocommerce.com>
  */
 class Mage_Usa_Model_Shipping_Carrier_Ups_Source_Mode
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/OriginShipment.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/OriginShipment.php
index 3c5dd6c..874176d 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/OriginShipment.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/OriginShipment.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Pickup.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Pickup.php
index 97fdfd6..ca574fe 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Pickup.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Pickup.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Type.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Type.php
index be1b75e..8813e97 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Type.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Type.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Unitofmeasure.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Unitofmeasure.php
index 3c760db..6814edf 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Unitofmeasure.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups/Source/Unitofmeasure.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
index 9b2d24d..62173e8 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
@@ -38,51 +38,98 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
     implements Mage_Shipping_Model_Carrier_Interface
 {
     /**
+     * USPS containers
+     */
+    const CONTAINER_VARIABLE           = 'VARIABLE';
+    const CONTAINER_FLAT_RATE_BOX      = 'FLAT RATE BOX';
+    const CONTAINER_FLAT_RATE_ENVELOPE = 'FLAT RATE ENVELOPE';
+    const CONTAINER_RECTANGULAR        = 'RECTANGULAR';
+    const CONTAINER_NONRECTANGULAR     = 'NONRECTANGULAR';
+
+    /**
+     * USPS size
+     */
+    const SIZE_REGULAR = 'REGULAR';
+    const SIZE_LARGE   = 'LARGE';
+
+    /**
+     * Default api revision
+     *
+     * @var int
+     */
+    const DEFAULT_REVISION = 2;
+
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    const CODE = 'usps';
+
+    /**
+     * Ounces in one pound for conversion
+     */
+    const OUNCES_POUND = 16;
+
+    /**
+     * Code of the carrier
+     *
+     * @var string
+     */
+    protected $_code = self::CODE;
+
+    /**
      * Destination Zip Code required flag
      *
      * @var boolean
+     * @deprecated since 1.7.0 functionality implemented in Mage_Usa_Model_Shipping_Carrier_Abstract
      */
     protected $_isZipCodeRequired;
 
-    protected $_code = 'usps';
-
+    /**
+     * Rate request data
+     *
+     * @var Mage_Shipping_Model_Rate_Request|null
+     */
     protected $_request = null;
 
+    /**
+     * Raw rate request data
+     *
+     * @var Varien_Object|null
+     */
+    protected $_rawRequest = null;
+
+    /**
+     * Rate result data
+     *
+     * @var Mage_Shipping_Model_Rate_Result|null
+     */
     protected $_result = null;
 
+    /**
+     * Default cgi gateway url
+     *
+     * @var string
+     */
     protected $_defaultGatewayUrl = 'http://production.shippingapis.com/ShippingAPI.dll';
 
     /**
-     * Check is Zip Code Required
+     * Container types that could be customized for USPS carrier
      *
-     * @return boolean
+     * @var array
      */
-    public function isZipCodeRequired()
-    {
-        if (!is_null($this->_isZipCodeRequired)) {
-            return $this->_isZipCodeRequired;
-        }
-
-        return parent::isZipCodeRequired();
-    }
+    protected $_customizableContainerTypes = array('VARIABLE', 'RECTANGULAR', 'NONRECTANGULAR');
 
     /**
-     * Processing additional validation to check is carrier applicable.
+     * Collect and get rates
      *
      * @param Mage_Shipping_Model_Rate_Request $request
-     * @return Mage_Shipping_Model_Carrier_Abstract|Mage_Shipping_Model_Rate_Result_Error|boolean
+     * @return Mage_Shipping_Model_Rate_Result|bool|null
      */
-    public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
-    {
-        // zip code required for US
-        $this->_isZipCodeRequired = $this->_isUSCountry($request->getDestCountryId());
-
-        return parent::proccessAdditionalValidation($request);
-    }
-
     public function collectRates(Mage_Shipping_Model_Rate_Request $request)
     {
-        if (!$this->getConfigFlag('active')) {
+        if (!$this->getConfigFlag($this->_activeFlag)) {
             return false;
         }
 
@@ -95,6 +142,12 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         return $this->getResult();
     }
 
+    /**
+     * Prepare and set request to this instance
+     *
+     * @param Mage_Shipping_Model_Rate_Request $request
+     * @return Mage_Usa_Model_Shipping_Carrier_Usps
+     */
     public function setRequest(Mage_Shipping_Model_Rate_Request $request)
     {
         $this->_request = $request;
@@ -128,6 +181,34 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         }
         $r->setSize($size);
 
+        if ($request->getGirth()) {
+            $girth = $request->getGirth();
+        } else {
+            $girth = $this->getConfigData('girth');
+        }
+        $r->setGirth($girth);
+
+        if ($request->getHeight()) {
+            $height = $request->getHeight();
+        } else {
+            $height = $this->getConfigData('height');
+        }
+        $r->setHeight($height);
+
+        if ($request->getLength()) {
+            $length = $request->getLength();
+        } else {
+            $length = $this->getConfigData('length');
+        }
+        $r->setLength($length);
+
+        if ($request->getWidth()) {
+            $width = $request->getWidth();
+        } else {
+            $width = $this->getConfigData('width');
+        }
+        $r->setWidth($width);
+
         if ($request->getUspsMachinable()) {
             $machinable = $request->getUspsMachinable();
         } else {
@@ -138,7 +219,19 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         if ($request->getOrigPostcode()) {
             $r->setOrigPostal($request->getOrigPostcode());
         } else {
-            $r->setOrigPostal(Mage::getStoreConfig(Mage_Shipping_Model_Config::XML_PATH_ORIGIN_POSTCODE, $this->getStore()));
+            $r->setOrigPostal(Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_ZIP,
+                $request->getStoreId()
+            ));
+        }
+
+        if ($request->getOrigCountryId()) {
+            $r->setOrigCountryId($request->getOrigCountryId());
+        } else {
+            $r->setOrigCountryId(Mage::getStoreConfig(
+                Mage_Shipping_Model_Shipping::XML_PATH_STORE_COUNTRY_ID,
+                $request->getStoreId()
+            ));
         }
 
         if ($request->getDestCountryId()) {
@@ -159,7 +252,7 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
 
         $weight = $this->getTotalNumOfBoxes($request->getPackageWeight());
         $r->setWeightPounds(floor($weight));
-        $r->setWeightOunces(round(($weight-floor($weight)) * 16, 1));
+        $r->setWeightOunces(round(($weight-floor($weight)) * self::OUNCES_POUND, 1));
         if ($request->getFreeMethodWeight()!=$request->getPackageWeight()) {
             $r->setFreeMethodWeight($request->getFreeMethodWeight());
         }
@@ -167,28 +260,46 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         $r->setValue($request->getPackageValue());
         $r->setValueWithDiscount($request->getPackageValueWithDiscount());
 
+        $r->setBaseSubtotalInclTax($request->getBaseSubtotalInclTax());
+
         $this->_rawRequest = $r;
 
         return $this;
     }
 
+    /**
+     * Get result of request
+     *
+     * @return mixed
+     */
     public function getResult()
     {
        return $this->_result;
     }
 
+    /**
+     * Get quotes
+     *
+     * @return Mage_Shipping_Model_Rate_Result
+     */
     protected function _getQuotes()
     {
         return $this->_getXmlQuotes();
     }
 
+    /**
+     * Set free method request
+     *
+     * @param  $freeMethod
+     * @return void
+     */
     protected function _setFreeMethodRequest($freeMethod)
     {
         $r = $this->_rawRequest;
 
         $weight = $this->getTotalNumOfBoxes($r->getFreeMethodWeight());
         $r->setWeightPounds(floor($weight));
-        $r->setWeightOunces(round(($weight-floor($weight)) * 16, 1));
+        $r->setWeightOunces(round(($weight-floor($weight)) * self::OUNCES_POUND, 1));
         $r->setService($freeMethod);
     }
 
@@ -201,57 +312,86 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
     protected function _getXmlQuotes()
     {
         $r = $this->_rawRequest;
-        if ($this->_isUSCountry($r->getDestCountryId())) {
-            $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><RateV3Request/>');
 
+        // The origin address(shipper) must be only in USA
+        if(!$this->_isUSCountry($r->getOrigCountryId())){
+            $responseBody = '';
+            return $this->_parseXmlResponse($responseBody);
+        }
+
+        if ($this->_isUSCountry($r->getDestCountryId())) {
+            $xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><RateV4Request/>');
             $xml->addAttribute('USERID', $r->getUserId());
+            // according to usps v4 documentation
+            $xml->addChild('Revision', '2');
+
             $package = $xml->addChild('Package');
-                $package->addAttribute('ID', 0);
-                $service = $this->getCode('service_to_code', $r->getService());
-                if (!$service) {
-                    $service = $r->getService();
-                }
-                $package->addChild('Service', $service);
+            $package->addAttribute('ID', 0);
+            $service = $this->getCode('service_to_code', $r->getService());
+            if (!$service) {
+                $service = $r->getService();
+            }
+            if ($r->getContainer() == 'FLAT RATE BOX' || $r->getContainer() == 'FLAT RATE ENVELOPE') {
+                $service = 'PRIORITY';
+            }
+            $package->addChild('Service', $service);
 
-                // no matter Letter, Flat or Parcel, use Parcel
-                if ($r->getService() == 'FIRST CLASS') {
-                    $package->addChild('FirstClassMailType', 'PARCEL');
-                }
-                $package->addChild('ZipOrigination', $r->getOrigPostal());
-                //only 5 chars avaialble
-                $package->addChild('ZipDestination', substr($r->getDestPostal(),0,5));
-                $package->addChild('Pounds', $r->getWeightPounds());
-                $package->addChild('Ounces', $r->getWeightOunces());
-//                $package->addChild('Pounds', '0');
-//                $package->addChild('Ounces', '3');
-
-                // Because some methods don't accept VARIABLE and (NON)RECTANGULAR containers
-                if (strtoupper($r->getContainer()) == 'FLAT RATE ENVELOPE' || strtoupper($r->getContainer()) == 'FLAT RATE BOX') {
-                    $package->addChild('Container', $r->getContainer());
+            // no matter Letter, Flat or Parcel, use Parcel
+            if ($r->getService() == 'FIRST CLASS' || $r->getService() == 'FIRST CLASS HFP COMMERCIAL') {
+                $package->addChild('FirstClassMailType', 'PARCEL');
+            }
+            $package->addChild('ZipOrigination', $r->getOrigPostal());
+            //only 5 chars avaialble
+            $package->addChild('ZipDestination', substr($r->getDestPostal(), 0, 5));
+            $package->addChild('Pounds', $r->getWeightPounds());
+            $package->addChild('Ounces', $r->getWeightOunces());
+            // Because some methods don't accept VARIABLE and (NON)RECTANGULAR containers
+            $package->addChild('Container', $r->getContainer());
+            $package->addChild('Size', $r->getSize());
+            if ($r->getSize() == 'LARGE') {
+                $package->addChild('Width', $r->getWidth());
+                $package->addChild('Length', $r->getLength());
+                $package->addChild('Height', $r->getHeight());
+                if ($r->getContainer() == 'NONRECTANGULAR' || $r->getContainer() == 'VARIABLE') {
+                    $package->addChild('Girth', $r->getGirth());
                 }
+            }
+            $package->addChild('Machinable', $r->getMachinable());
 
-                $package->addChild('Size', $r->getSize());
-                $package->addChild('Machinable', $r->getMachinable());
-
-            $api = 'RateV3';
-            $request = $xml->asXML();
-
+            $api = 'RateV4';
         } else {
-            $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><IntlRateRequest/>');
-
+            $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><IntlRateV2Request/>');
             $xml->addAttribute('USERID', $r->getUserId());
+            // according to usps v4 documentation
+            $xml->addChild('Revision', '2');
 
             $package = $xml->addChild('Package');
-                $package->addAttribute('ID', 0);
-                $package->addChild('Pounds', $r->getWeightPounds());
-                $package->addChild('Ounces', $r->getWeightOunces());
-                $package->addChild('MailType', 'Package');
-                $package->addChild('ValueOfContents', $r->getValue());
-                $package->addChild('Country', $r->getDestCountryName());
+            $package->addAttribute('ID', 0);
+            $package->addChild('Pounds', $r->getWeightPounds());
+            $package->addChild('Ounces', $r->getWeightOunces());
+            $package->addChild('MailType', 'All');
+            $package->addChild('ValueOfContents', $r->getValue());
+            $package->addChild('Country', $r->getDestCountryName());
+            $package->addChild('Container', $r->getContainer());
+            $package->addChild('Size', $r->getSize());
+            $width = $length = $height = $girth = '';
+            if ($r->getSize() == 'LARGE') {
+                $width = $r->getWidth();
+                $length = $r->getLength();
+                $height = $r->getHeight();
+                if ($r->getContainer() == 'NONRECTANGULAR') {
+                    $girth = $r->getGirth();
+                }
+            }
+            $package->addChild('Width', $width);
+            $package->addChild('Length', $length);
+            $package->addChild('Height', $height);
+            $package->addChild('Girth', $girth);
+
 
-            $api = 'IntlRate';
-            $request = $xml->asXML();
+            $api = 'IntlRateV2';
         }
+        $request = $xml->asXML();
 
         $responseBody = $this->_getCachedQuotes($request);
         if ($responseBody === null) {
@@ -271,8 +411,7 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
 
                 $debugData['result'] = $responseBody;
                 $this->_setCachedQuotes($request, $responseBody);
-            }
-            catch (Exception $e) {
+            } catch (Exception $e) {
                 $debugData['result'] = array('error' => $e->getMessage(), 'code' => $e->getCode());
                 $responseBody = '';
             }
@@ -294,18 +433,32 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         $priceArr = array();
         if (strlen(trim($response)) > 0) {
             if (strpos(trim($response), '<?xml') === 0) {
-                if (preg_match('#<\?xml version="1.0"\?>#', $response)) {
-                    $response = str_replace('<?xml version="1.0"?>', '<?xml version="1.0" encoding="ISO-8859-1"?>', $response);
+                if (strpos($response, '<?xml version="1.0"?>') !== false) {
+                    $response = str_replace(
+                        '<?xml version="1.0"?>',
+                        '<?xml version="1.0" encoding="ISO-8859-1"?>',
+                        $response
+                    );
                 }
 
                 $xml = simplexml_load_string($response);
+
                 if (is_object($xml)) {
+                    if (is_object($xml->Number) && is_object($xml->Description) && (string)$xml->Description!='') {
+                        $errorTitle = (string)$xml->Description;
+                    } elseif (is_object($xml->Package)
+                          && is_object($xml->Package->Error)
+                          && is_object($xml->Package->Error->Description)
+                          && (string)$xml->Package->Error->Description!=''
+                    ) {
+                        $errorTitle = (string)$xml->Package->Error->Description;
+                    } else {
+                        $errorTitle = 'Unknown error';
+                    }
                     $r = $this->_rawRequest;
                     $allowedMethods = explode(",", $this->getConfigData('allowed_methods'));
-
-                    /*
-                     * US Domestic Rates
-                     */
+                    $allMethods = $this->getCode('method');
+                    $newMethod = false;
                     if ($this->_isUSCountry($r->getDestCountryId())) {
                         if (is_object($xml->Package) && is_object($xml->Package->Postage)) {
                             foreach ($xml->Package->Postage as $postage) {
@@ -313,7 +466,13 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                                 $postage->MailService = $serviceName;
                                 if (in_array($serviceName, $allowedMethods)) {
                                     $costArr[$serviceName] = (string)$postage->Rate;
-                                    $priceArr[$serviceName] = $this->getMethodPrice((string)$postage->Rate, $serviceName);
+                                    $priceArr[$serviceName] = $this->getMethodPrice(
+                                        (string)$postage->Rate,
+                                        $serviceName
+                                    );
+                                } elseif (!in_array($serviceName, $allMethods)) {
+                                    $allMethods[] = $serviceName;
+                                    $newMethod = true;
                                 }
                             }
                             asort($priceArr);
@@ -328,13 +487,30 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                                 $service->SvcDescription = $serviceName;
                                 if (in_array($serviceName, $allowedMethods)) {
                                     $costArr[$serviceName] = (string)$service->Postage;
-                                    $priceArr[$serviceName] = $this->getMethodPrice((string)$service->Postage, $serviceName);
+                                    $priceArr[$serviceName] = $this->getMethodPrice(
+                                        (string)$service->Postage,
+                                        $serviceName
+                                    );
+                                } elseif (!in_array($serviceName, $allMethods)) {
+                                    $allMethods[] = $serviceName;
+                                    $newMethod = true;
                                 }
                             }
                             asort($priceArr);
                         }
                     }
+                    /**
+                     * following if statement is obsolete
+                     * we don't have adminhtml/config resoure model
+                     */
+                    if (false && $newMethod) {
+                        sort($allMethods);
+                        $insert['usps']['fields']['methods']['value'] = $allMethods;
+                        Mage::getResourceModel('adminhtml/config')->saveSectionPost('carriers','','',$insert);
+                    }
                 }
+            } else {
+                $errorTitle = 'Response is in the wrong format';
             }
         }
 
@@ -357,10 +533,17 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 $result->append($rate);
             }
         }
-        
+
         return $result;
     }
 
+    /**
+     * Get configuration data of carrier
+     *
+     * @param string $type
+     * @param string $code
+     * @return array|bool
+     */
     public function getCode($type, $code='')
     {
         $codes = array(
@@ -373,37 +556,14 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 'PARCEL'      => Mage::helper('usa')->__('Parcel Post'),
                 'MEDIA'       => Mage::helper('usa')->__('Media Mail'),
                 'LIBRARY'     => Mage::helper('usa')->__('Library'),
-//                'ALL'         => Mage::helper('usa')->__('All Services'),
             ),
 
-/*
-            'method'=>array(
-                'First-Class',
-                'Express Mail',
-                'Express Mail PO to PO',
-                'Priority Mail',
-                'Parcel Post',
-                'Express Mail Flat-Rate Envelope',
-                'Priority Mail Flat-Rate Box',
-                'Bound Printed Matter',
-                'Media Mail',
-                'Library Mail',
-                'Priority Mail Flat-Rate Envelope',
-                'Global Express Guaranteed',
-                'Global Express Guaranteed Non-Document Rectangular',
-                'Global Express Guaranteed Non-Document Non-Rectangular',
-                'Express Mail International (EMS)',
-                'Express Mail International (EMS) Flat Rate Envelope',
-                'Priority Mail International',
-                'Priority Mail International Flat Rate Box',
-            ),
-*/
-
             'service_to_code'=>array(
                 'First-Class'                                   => 'FIRST CLASS',
                 'First-Class Mail International Large Envelope' => 'FIRST CLASS',
                 'First-Class Mail International Letter'         => 'FIRST CLASS',
                 'First-Class Mail International Package'        => 'FIRST CLASS',
+                'First-Class Mail International Parcel'         => 'FIRST CLASS',
                 'First-Class Mail'                 => 'FIRST CLASS',
                 'First-Class Mail Flat'            => 'FIRST CLASS',
                 'First-Class Mail Large Envelope'  => 'FIRST CLASS',
@@ -418,10 +578,14 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 'Express Mail'                     => 'EXPRESS',
                 'Express Mail PO to PO'            => 'EXPRESS',
                 'Express Mail Flat Rate Envelope'  => 'EXPRESS',
+                'Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee'  => 'EXPRESS',
+                'Express Mail Sunday/Holiday Guarantee'            => 'EXPRESS',
                 'Express Mail Flat Rate Envelope Hold For Pickup'  => 'EXPRESS',
+                'Express Mail Hold For Pickup'                     => 'EXPRESS',
                 'Global Express Guaranteed (GXG)'                  => 'EXPRESS',
                 'Global Express Guaranteed Non-Document Rectangular'     => 'EXPRESS',
                 'Global Express Guaranteed Non-Document Non-Rectangular' => 'EXPRESS',
+                'USPS GXG Envelopes'                               => 'EXPRESS',
                 'Express Mail International'                       => 'EXPRESS',
                 'Express Mail International Flat Rate Envelope'    => 'EXPRESS',
                 'Priority Mail'                        => 'PRIORITY',
@@ -452,10 +616,130 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 'NONRECTANGULAR'     => Mage::helper('usa')->__('Non-rectangular'),
             ),
 
+            'containers_filter' => array(
+                array(
+                    'containers' => array('VARIABLE'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'Express Mail Flat Rate Envelope',
+                                'Express Mail Flat Rate Envelope Hold For Pickup',
+                                'Priority Mail Flat Rate Envelope',
+                                'Priority Mail Large Flat Rate Box',
+                                'Priority Mail Medium Flat Rate Box',
+                                'Priority Mail Small Flat Rate Box',
+                                'Express Mail',
+                                'Priority Mail',
+                                'Parcel Post',
+                                'Media Mail',
+                                'First-Class Mail Large Envelope',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'Express Mail International Flat Rate Envelope',
+                                'Priority Mail International Flat Rate Envelope',
+                                'Priority Mail International Large Flat Rate Box',
+                                'Priority Mail International Medium Flat Rate Box',
+                                'Priority Mail International Small Flat Rate Box',
+                                'Global Express Guaranteed (GXG)',
+                                'USPS GXG Envelopes',
+                                'Express Mail International',
+                                'Priority Mail International',
+                                'First-Class Mail International Package',
+                                'First-Class Mail International Large Envelope',
+                                'First-Class Mail International Parcel',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('FLAT RATE BOX'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'Priority Mail Large Flat Rate Box',
+                                'Priority Mail Medium Flat Rate Box',
+                                'Priority Mail Small Flat Rate Box',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'Priority Mail International Large Flat Rate Box',
+                                'Priority Mail International Medium Flat Rate Box',
+                                'Priority Mail International Small Flat Rate Box',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('FLAT RATE ENVELOPE'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'Express Mail Flat Rate Envelope',
+                                'Express Mail Flat Rate Envelope Hold For Pickup',
+                                'Priority Mail Flat Rate Envelope',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'Express Mail International Flat Rate Envelope',
+                                'Priority Mail International Flat Rate Envelope',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('RECTANGULAR'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'Express Mail',
+                                'Priority Mail',
+                                'Parcel Post',
+                                'Media Mail',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'USPS GXG Envelopes',
+                                'Express Mail International',
+                                'Priority Mail International',
+                                'First-Class Mail International Package',
+                                'First-Class Mail International Parcel',
+                            )
+                        )
+                    )
+                ),
+                array(
+                    'containers' => array('NONRECTANGULAR'),
+                    'filters'    => array(
+                        'within_us' => array(
+                            'method' => array(
+                                'Express Mail',
+                                'Priority Mail',
+                                'Parcel Post',
+                                'Media Mail',
+                            )
+                        ),
+                        'from_us' => array(
+                            'method' => array(
+                                'Global Express Guaranteed (GXG)',
+                                'USPS GXG Envelopes',
+                                'Express Mail International',
+                                'Priority Mail International',
+                                'First-Class Mail International Package',
+                                'First-Class Mail International Parcel',
+                            )
+                        )
+                    )
+                ),
+             ),
+
             'size'=>array(
                 'REGULAR'     => Mage::helper('usa')->__('Regular'),
                 'LARGE'       => Mage::helper('usa')->__('Large'),
-                'OVERSIZE'    => Mage::helper('usa')->__('Oversize'),
             ),
 
             'machinable'=>array(
@@ -463,6 +747,10 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 'false'       => Mage::helper('usa')->__('No'),
             ),
 
+            'delivery_confirmation_types' => array(
+                'True' => Mage::helper('usa')->__('Not Required'),
+                'False'  => Mage::helper('usa')->__('Required'),
+            ),
         );
 
         $methods = $this->getConfigData('methods');
@@ -485,6 +773,12 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         }
     }
 
+    /**
+     * Get tracking
+     *
+     * @param mixed $trackings
+     * @return mixed
+     */
     public function getTracking($trackings)
     {
         $this->setTrackingReqeust();
@@ -498,6 +792,11 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         return $this->_result;
     }
 
+    /**
+     * Set tracking request
+     *
+     * @return null
+     */
     protected function setTrackingReqeust()
     {
         $r = new Varien_Object();
@@ -506,9 +805,14 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
         $r->setUserId($userId);
 
         $this->_rawTrackRequest = $r;
-
     }
 
+    /**
+     * Send request for tracking
+     *
+     * @param array $tracking
+     * @return null
+     */
     protected function _getXmlTracking($trackings)
     {
          $r = $this->_rawTrackRequest;
@@ -517,7 +821,6 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
              $xml = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><TrackRequest/>');
              $xml->addAttribute('USERID', $r->getUserId());
 
-
              $trackid = $xml->addChild('TrackID');
              $trackid->addAttribute('ID',$tracking);
 
@@ -549,6 +852,13 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
          }
     }
 
+    /**
+     * Parse xml tracking response
+     *
+     * @param array $trackingvalue
+     * @param string $response
+     * @return null
+     */
     protected function _parseXmlTrackingResponse($trackingvalue, $response)
     {
         $errorTitle = Mage::helper('usa')->__('Unable to retrieve tracking');
@@ -559,7 +869,11 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
                 if (is_object($xml)) {
                     if (isset($xml->Number) && isset($xml->Description) && (string)$xml->Description!='') {
                         $errorTitle = (string)$xml->Description;
-                    } elseif (isset($xml->TrackInfo) && isset($xml->TrackInfo->Error) && isset($xml->TrackInfo->Error->Description) && (string)$xml->TrackInfo->Error->Description!='') {
+                    } elseif (isset($xml->TrackInfo)
+                          && isset($xml->TrackInfo->Error)
+                          && isset($xml->TrackInfo->Error->Description)
+                          && (string)$xml->TrackInfo->Error->Description!=''
+                    ) {
                         $errorTitle = (string)$xml->TrackInfo->Error->Description;
                     } else {
                         $errorTitle = Mage::helper('usa')->__('Unknown error');
@@ -595,6 +909,11 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
          }
     }
 
+    /**
+     * Get tracking response
+     *
+     * @return string
+     */
     public function getResponse()
     {
         $statuses = '';
@@ -633,28 +952,6 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
     }
 
     /**
-     * Check is Ð¡outry U.S. Possessions and Trust Territories
-     *
-     * @param string $countyId
-     * @return boolean
-     */
-    protected function _isUSCountry($countyId)
-    {
-        switch ($countyId) {
-            case 'AS': // Samoa American
-            case 'GU': // Guam
-            case 'MP': // Northern Mariana Islands
-            case 'PW': // Palau
-            case 'PR': // Puerto Rico
-            case 'VI': // Virgin Islands US
-            case 'US'; // United States
-                return true;
-        }
-
-        return false;
-    }
-
-    /**
      * Return USPS county name by country ISO 3166-1-alpha-2 code
      * Return false for unknown countries
      *
@@ -885,6 +1182,7 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
           'ZA' => 'South Africa',
           'ZM' => 'Zambia',
           'ZW' => 'Zimbabwe',
+          'US' => 'United States',
         );
 
         if (isset($countries[$countryId])) {
@@ -902,9 +1200,600 @@ class Mage_Usa_Model_Shipping_Carrier_Usps
      */
     protected function _filterServiceName($name)
     {
-        $name = (string)preg_replace(array('~<[^/!][^>]+>.*</[^>]+>~sU', '~\<!--.*--\>~isU', '~<[^>]+>~is'), '', html_entity_decode($name));
+        $name = (string)preg_replace(array('~<[^/!][^>]+>.*</[^>]+>~sU', '~\<!--.*--\>~isU', '~<[^>]+>~is'), '',
+            html_entity_decode($name)
+        );
         $name = str_replace('*', '', $name);
 
         return $name;
     }
+
+    /**
+     * 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 />
+     *
+     * @param Varien_Object $request
+     * @return string
+     */
+    protected function _formUsExpressShipmentRequest(Varien_Object $request)
+    {
+        $packageParams = $request->getPackageParams();
+
+        $packageWeight = $request->getPackageWeight();
+        if ($packageParams->getWeightUnits() != Zend_Measure_Weight::OUNCE) {
+            $packageWeight = round(Mage::helper('usa')->convertMeasureWeight(
+                $request->getPackageWeight(),
+                $packageParams->getWeightUnits(),
+                Zend_Measure_Weight::OUNCE
+            ));
+        }
+
+        list($fromZip5, $fromZip4) = $this->_parseZip($request->getShipperAddressPostalCode());
+        list($toZip5, $toZip4) = $this->_parseZip($request->getRecipientAddressPostalCode(), true);
+
+        $rootNode = 'ExpressMailLabelRequest';
+        // the wrap node needs for remove xml declaration above
+        $xmlWrap = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><wrap/>');
+        $xml = $xmlWrap->addChild($rootNode);
+        $xml->addAttribute('USERID', $this->getConfigData('userid'));
+        $xml->addAttribute('PASSWORD', $this->getConfigData('password'));
+        $xml->addChild('Option');
+        $xml->addChild('Revision');
+        $xml->addChild('EMCAAccount');
+        $xml->addChild('EMCAPassword');
+        $xml->addChild('ImageParameters');
+        $xml->addChild('FromFirstName', $request->getShipperContactPersonFirstName());
+        $xml->addChild('FromLastName', $request->getShipperContactPersonLastName());
+        $xml->addChild('FromFirm', $request->getShipperContactCompanyName());
+        $xml->addChild('FromAddress1', $request->getShipperAddressStreet2());
+        $xml->addChild('FromAddress2', $request->getShipperAddressStreet1());
+        $xml->addChild('FromCity', $request->getShipperAddressCity());
+        $xml->addChild('FromState', $request->getShipperAddressStateOrProvinceCode());
+        $xml->addChild('FromZip5', $fromZip5);
+        $xml->addChild('FromZip4', $fromZip4);
+        $xml->addChild('FromPhone', $request->getShipperContactPhoneNumber());
+        $xml->addChild('ToFirstName', $request->getRecipientContactPersonFirstName());
+        $xml->addChild('ToLastName', $request->getRecipientContactPersonLastName());
+        $xml->addChild('ToFirm', $request->getRecipientContactCompanyName());
+        $xml->addChild('ToAddress1', $request->getRecipientAddressStreet2());
+        $xml->addChild('ToAddress2', $request->getRecipientAddressStreet1());
+        $xml->addChild('ToCity', $request->getRecipientAddressCity());
+        $xml->addChild('ToState', $request->getRecipientAddressStateOrProvinceCode());
+        $xml->addChild('ToZip5', $toZip5);
+        $xml->addChild('ToZip4', $toZip4);
+        $xml->addChild('ToPhone', $request->getRecipientContactPhoneNumber());
+        $xml->addChild('WeightInOunces', $packageWeight);
+        $xml->addChild('WaiverOfSignature', $packageParams->getDeliveryConfirmation());
+        $xml->addChild('POZipCode');
+        $xml->addChild('ImageType', 'PDF');
+
+        $xml = $xmlWrap->{$rootNode}->asXML();
+        return $xml;
+    }
+
+    /**
+     * 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 />
+     *
+     * @param Varien_Object $request
+     * @param string $serviceType
+     * @return string
+     */
+    protected function _formUsSignatureConfirmationShipmentRequest(Varien_Object $request, $serviceType)
+    {
+        switch ($serviceType) {
+            case 'PRIORITY':
+                $serviceType = 'Priority';
+                break;
+            case 'FIRST CLASS':
+                $serviceType = 'First Class';
+                break;
+            case 'PARCEL':
+                $serviceType = 'Parcel Post';
+                break;
+            case 'MEDIA':
+                $serviceType = 'Media Mail';
+                break;
+            case 'LIBRARY':
+                $serviceType = 'Library Mail';
+                break;
+            default:
+                throw new Exception(Mage::helper('usa')->__('Service type does not match'));
+        }
+        $packageParams = $request->getPackageParams();
+        $packageWeight = $request->getPackageWeight();
+        if ($packageParams->getWeightUnits() != Zend_Measure_Weight::OUNCE) {
+            $packageWeight = round(Mage::helper('usa')->convertMeasureWeight(
+                $request->getPackageWeight(),
+                $packageParams->getWeightUnits(),
+                Zend_Measure_Weight::OUNCE
+            ));
+        }
+
+        list($fromZip5, $fromZip4) = $this->_parseZip($request->getShipperAddressPostalCode());
+        list($toZip5, $toZip4) = $this->_parseZip($request->getRecipientAddressPostalCode(), true);
+
+        if ($this->getConfigData('mode')) {
+            $rootNode = 'SignatureConfirmationV3.0Request';
+        } else {
+            $rootNode = 'SigConfirmCertifyV3.0Request';
+        }
+        // the wrap node needs for remove xml declaration above
+        $xmlWrap = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><wrap/>');
+        $xml = $xmlWrap->addChild($rootNode);
+        $xml->addAttribute('USERID', $this->getConfigData('userid'));
+        $xml->addChild('Option', 1);
+        $xml->addChild('ImageParameters');
+        $xml->addChild('FromName', $request->getShipperContactPersonName());
+        $xml->addChild('FromFirm', $request->getShipperContactCompanyName());
+        $xml->addChild('FromAddress1', $request->getShipperAddressStreet2());
+        $xml->addChild('FromAddress2', $request->getShipperAddressStreet1());
+        $xml->addChild('FromCity', $request->getShipperAddressCity());
+        $xml->addChild('FromState', $request->getShipperAddressStateOrProvinceCode());
+        $xml->addChild('FromZip5', $fromZip5);
+        $xml->addChild('FromZip4', $fromZip4);
+        $xml->addChild('ToName', $request->getRecipientContactPersonName());
+        $xml->addChild('ToFirm', $request->getRecipientContactCompanyName());
+        $xml->addChild('ToAddress1', $request->getRecipientAddressStreet2());
+        $xml->addChild('ToAddress2', $request->getRecipientAddressStreet1());
+        $xml->addChild('ToCity', $request->getRecipientAddressCity());
+        $xml->addChild('ToState', $request->getRecipientAddressStateOrProvinceCode());
+        $xml->addChild('ToZip5', $toZip5);
+        $xml->addChild('ToZip4', $toZip4);
+        $xml->addChild('WeightInOunces', $packageWeight);
+        $xml->addChild('ServiceType', $serviceType);
+        $xml->addChild('WaiverOfSignature', $packageParams->getDeliveryConfirmation());
+        $xml->addChild('ImageType', 'PDF');
+
+        $xml = $xmlWrap->{$rootNode}->asXML();
+        return $xml;
+    }
+
+    /**
+     * Convert decimal weight into pound-ounces format
+     *
+     * @param float $weightInPounds
+     * @return array
+     */
+    protected function _convertPoundOunces($weightInPounds)
+    {
+        $weightInOunces = ceil($weightInPounds * self::OUNCES_POUND);
+        $pounds = floor($weightInOunces / self::OUNCES_POUND);
+        $ounces = $weightInOunces % self::OUNCES_POUND;
+        return array($pounds, $ounces);
+    }
+
+    /**
+     * 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 />
+     *
+     * @param Varien_Object $request
+     * @return string
+     */
+    protected function _formIntlShipmentRequest(Varien_Object $request)
+    {
+        $packageParams = $request->getPackageParams();
+        $height = $packageParams->getHeight();
+        $width = $packageParams->getWidth();
+        $length = $packageParams->getLength();
+        $girth = $packageParams->getGirth();
+        $packageWeight = $request->getPackageWeight();
+        if ($packageParams->getWeightUnits() != Zend_Measure_Weight::POUND) {
+            $packageWeight = Mage::helper('usa')->convertMeasureWeight(
+                $request->getPackageWeight(),
+                $packageParams->getWeightUnits(),
+                Zend_Measure_Weight::POUND
+            );
+        }
+        if ($packageParams->getDimensionUnits() != Zend_Measure_Length::INCH) {
+            $length = round(Mage::helper('usa')->convertMeasureDimension(
+                $packageParams->getLength(),
+                $packageParams->getDimensionUnits(),
+                Zend_Measure_Length::INCH
+            ));
+            $width = round(Mage::helper('usa')->convertMeasureDimension(
+                $packageParams->getWidth(),
+                $packageParams->getDimensionUnits(),
+                Zend_Measure_Length::INCH
+            ));
+            $height = round(Mage::helper('usa')->convertMeasureDimension(
+                $packageParams->getHeight(),
+                $packageParams->getDimensionUnits(),
+                Zend_Measure_Length::INCH
+            ));
+        }
+        if ($packageParams->getGirthDimensionUnits() != Zend_Measure_Length::INCH) {
+            $girth = round(Mage::helper('usa')->convertMeasureDimension(
+                $packageParams->getGirth(),
+                $packageParams->getGirthDimensionUnits(),
+                Zend_Measure_Length::INCH
+            ));
+        }
+
+        $container = $request->getPackagingType();
+        switch ($container) {
+            case 'VARIABLE':
+                $container = 'VARIABLE';
+                break;
+            case 'FLAT RATE ENVELOPE':
+                $container = 'FLATRATEENV';
+                break;
+            case 'FLAT RATE BOX':
+                $container = 'FLATRATEBOX';
+                break;
+            case 'RECTANGULAR':
+                $container = 'RECTANGULAR';
+                break;
+            case 'NONRECTANGULAR':
+                $container = 'NONRECTANGULAR';
+                break;
+            default:
+                $container = 'VARIABLE';
+        }
+        $shippingMethod = $request->getShippingMethod();
+        list($fromZip5, $fromZip4) = $this->_parseZip($request->getShipperAddressPostalCode());
+
+        // the wrap node needs for remove xml declaration above
+        $xmlWrap = new SimpleXMLElement('<?xml version = "1.0" encoding = "UTF-8"?><wrap/>');
+        $method = '';
+        if (stripos($shippingMethod, 'Priority') !== false) {
+            $method = 'Priority';
+            $rootNode = 'PriorityMailIntlRequest';
+            $xml = $xmlWrap->addChild($rootNode);
+        } else if (stripos($shippingMethod, 'First-Class') !== false) {
+            $method = 'FirstClass';
+            $rootNode = 'FirstClassMailIntlRequest';
+            $xml = $xmlWrap->addChild($rootNode);
+        } else {
+            $method = 'Express';
+            $rootNode = 'ExpressMailIntlRequest';
+            $xml = $xmlWrap->addChild($rootNode);
+        }
+
+        $xml->addAttribute('USERID', $this->getConfigData('userid'));
+        $xml->addAttribute('PASSWORD', $this->getConfigData('password'));
+        $xml->addChild('Option');
+        $xml->addChild('Revision', self::DEFAULT_REVISION);
+        $xml->addChild('ImageParameters');
+        $xml->addChild('FromFirstName', $request->getShipperContactPersonFirstName());
+        $xml->addChild('FromLastName', $request->getShipperContactPersonLastName());
+        $xml->addChild('FromFirm', $request->getShipperContactCompanyName());
+        $xml->addChild('FromAddress1', $request->getShipperAddressStreet2());
+        $xml->addChild('FromAddress2', $request->getShipperAddressStreet1());
+        $xml->addChild('FromCity', $request->getShipperAddressCity());
+        $xml->addChild('FromState', $request->getShipperAddressStateOrProvinceCode());
+        $xml->addChild('FromZip5', $fromZip5);
+        $xml->addChild('FromZip4', $fromZip4);
+        $xml->addChild('FromPhone', $request->getShipperContactPhoneNumber());
+        if ($method != 'FirstClass') {
+            if ($request->getReferenceData()) {
+                $referenceData = $request->getReferenceData() . ' P' . $request->getPackageId();
+            } else {
+                $referenceData = $request->getOrderShipment()->getOrder()->getIncrementId()
+                                 . ' P'
+                                 . $request->getPackageId();
+            }
+            $xml->addChild('FromCustomsReference', 'Order #' . $referenceData);
+        }
+        $xml->addChild('ToName', $request->getRecipientContactPersonName());
+        $xml->addChild('ToFirm', $request->getRecipientContactCompanyName());
+        $xml->addChild('ToAddress1', $request->getRecipientAddressStreet1());
+        $xml->addChild('ToAddress2', $request->getRecipientAddressStreet2());
+        $xml->addChild('ToCity', $request->getRecipientAddressCity());
+        $xml->addChild('ToProvince', $request->getRecipientAddressStateOrProvinceCode());
+        $xml->addChild('ToCountry', $this->_getCountryName($request->getRecipientAddressCountryCode()));
+        $xml->addChild('ToPostalCode', $request->getRecipientAddressPostalCode());
+        $xml->addChild('ToPOBoxFlag', 'N');
+        $xml->addChild('ToPhone', $request->getRecipientContactPhoneNumber());
+        $xml->addChild('ToFax');
+        $xml->addChild('ToEmail');
+        if ($method != 'FirstClass') {
+            $xml->addChild('NonDeliveryOption', 'Return');
+        }
+        if ($method == 'FirstClass') {
+            if (stripos($shippingMethod, 'Letter') !== false) {
+                $xml->addChild('FirstClassMailType', 'LETTER');
+            } else if (stripos($shippingMethod, 'Flat') !== false) {
+                $xml->addChild('FirstClassMailType', 'FLAT');
+            } else{
+                $xml->addChild('FirstClassMailType', 'PARCEL');
+            }
+        }
+        if ($method != 'FirstClass') {
+            $xml->addChild('Container', $container);
+        }
+        $shippingContents = $xml->addChild('ShippingContents');
+        $packageItems = $request->getPackageItems();
+        // get countries of manufacture
+        $countriesOfManufacture = array();
+        $productIds = array();
+        foreach ($packageItems as $itemShipment) {
+                $item = new Varien_Object();
+                $item->setData($itemShipment);
+
+                $productIds[]= $item->getProductId();
+        }
+        $productCollection = Mage::getResourceModel('catalog/product_collection')
+            ->addStoreFilter($request->getStoreId())
+            ->addFieldToFilter('entity_id', array('in' => $productIds))
+            ->addAttributeToSelect('country_of_manufacture');
+        foreach ($productCollection as $product) {
+            $countriesOfManufacture[$product->getId()] = $product->getCountryOfManufacture();
+        }
+
+        $packagePoundsWeight = $packageOuncesWeight = 0;
+        // for ItemDetail
+        foreach ($packageItems as $itemShipment) {
+            $item = new Varien_Object();
+            $item->setData($itemShipment);
+
+            $itemWeight = $item->getWeight() * $item->getQty();
+            if ($packageParams->getWeightUnits() != Zend_Measure_Weight::POUND) {
+                $itemWeight = Mage::helper('usa')->convertMeasureWeight(
+                    $itemWeight,
+                    $packageParams->getWeightUnits(),
+                    Zend_Measure_Weight::POUND
+                );
+            }
+            if (!empty($countriesOfManufacture[$item->getProductId()])) {
+                $countryOfManufacture = $this->_getCountryName(
+                    $countriesOfManufacture[$item->getProductId()]
+                );
+            } else {
+                $countryOfManufacture = '';
+            }
+            $itemDetail = $shippingContents->addChild('ItemDetail');
+            $itemDetail->addChild('Description', $item->getName());
+            $ceiledQty = ceil($item->getQty());
+            if ($ceiledQty < 1) {
+                $ceiledQty = 1;
+            }
+            $individualItemWeight = $itemWeight / $ceiledQty;
+            $itemDetail->addChild('Quantity', $ceiledQty);
+            $itemDetail->addChild('Value', $item->getCustomsValue() * $item->getQty());
+            list($individualPoundsWeight, $individualOuncesWeight) = $this->_convertPoundOunces($individualItemWeight);
+            $itemDetail->addChild('NetPounds', $individualPoundsWeight);
+            $itemDetail->addChild('NetOunces', $individualOuncesWeight);
+            $itemDetail->addChild('HSTariffNumber', 0);
+            $itemDetail->addChild('CountryOfOrigin', $countryOfManufacture);
+
+            list($itemPoundsWeight, $itemOuncesWeight) = $this->_convertPoundOunces($itemWeight);
+            $packagePoundsWeight += $itemPoundsWeight;
+            $packageOuncesWeight += $itemOuncesWeight;
+        }
+        $additionalPackagePoundsWeight = floor($packageOuncesWeight / self::OUNCES_POUND);
+        $packagePoundsWeight += $additionalPackagePoundsWeight;
+        $packageOuncesWeight -= $additionalPackagePoundsWeight * self::OUNCES_POUND;
+        if ($packagePoundsWeight + $packageOuncesWeight / self::OUNCES_POUND < $packageWeight) {
+            list($packagePoundsWeight, $packageOuncesWeight) = $this->_convertPoundOunces($packageWeight);
+        }
+
+        $xml->addChild('GrossPounds', $packagePoundsWeight);
+        $xml->addChild('GrossOunces', $packageOuncesWeight);
+        if ($packageParams->getContentType() == 'OTHER' && $packageParams->getContentTypeOther() != null) {
+            $xml->addChild('ContentType', $packageParams->getContentType());
+            $xml->addChild('ContentTypeOther ', $packageParams->getContentTypeOther());
+        } else {
+            $xml->addChild('ContentType', $packageParams->getContentType());
+        }
+
+        $xml->addChild('Agreement', 'y');
+        $xml->addChild('ImageType', 'PDF');
+        $xml->addChild('ImageLayout', 'ALLINONEFILE');
+        if ($method == 'FirstClass') {
+            $xml->addChild('Container', $container);
+        }
+        // set size
+        if ($packageParams->getSize()) {
+            $xml->addChild('Size', $packageParams->getSize());
+        }
+        // set dimensions
+        $xml->addChild('Length', $length);
+        $xml->addChild('Width', $width);
+        $xml->addChild('Height', $height);
+        if ($girth) {
+            $xml->addChild('Girth', $girth);
+        }
+
+        $xml = $xmlWrap->{$rootNode}->asXML();
+        return $xml;
+    }
+
+    /**
+     * Do shipment request to carrier web service, obtain Print Shipping Labels and process errors in response
+     *
+     * @param Varien_Object $request
+     * @return Varien_Object
+     */
+    protected function _doShipmentRequest(Varien_Object $request)
+    {
+        $this->_prepareShipmentRequest($request);
+        $result = new Varien_Object();
+        $service = $this->getCode('service_to_code', $request->getShippingMethod());
+        $recipientUSCountry = $this->_isUSCountry($request->getRecipientAddressCountryCode());
+
+        if ($recipientUSCountry && $service == 'EXPRESS') {
+            $requestXml = $this->_formUsExpressShipmentRequest($request);
+            $api = 'ExpressMailLabel';
+        } else if ($recipientUSCountry) {
+            $requestXml = $this->_formUsSignatureConfirmationShipmentRequest($request, $service);
+            if ($this->getConfigData('mode')) {
+                $api = 'SignatureConfirmationV3';
+            } else {
+                $api = 'SignatureConfirmationCertifyV3';
+            }
+        } else if ($service == 'FIRST CLASS') {
+            $requestXml = $this->_formIntlShipmentRequest($request);
+            $api = 'FirstClassMailIntl';
+        } else if ($service == 'PRIORITY') {
+            $requestXml = $this->_formIntlShipmentRequest($request);
+            $api = 'PriorityMailIntl';
+        } else {
+            $requestXml = $this->_formIntlShipmentRequest($request);
+            $api = 'ExpressMailIntl';
+        }
+
+        $debugData = array('request' => $requestXml);
+        $url = $this->getConfigData('gateway_secure_url');
+        if (!$url) {
+            $url = $this->_defaultGatewayUrl;
+        }
+        $client = new Zend_Http_Client();
+        $client->setUri($url);
+        $client->setConfig(array('maxredirects'=>0, 'timeout'=>30));
+        $client->setParameterGet('API', $api);
+        $client->setParameterGet('XML', $requestXml);
+        $response = $client->request()->getBody();
+
+        $response = simplexml_load_string($response);
+        if ($response === false || $response->getName() == 'Error') {
+            $debugData['result'] = array(
+                'error' => $response->Description,
+                'code' => $response->Number,
+                'xml' => $response->asXML()
+            );
+            $this->_debug($debugData);
+            $result->setErrors($debugData['result']['error']);
+        } else {
+            if ($recipientUSCountry && $service == 'EXPRESS') {
+                $labelContent = base64_decode((string) $response->EMLabel);
+                $trackingNumber = (string) $response->EMConfirmationNumber;
+            } else if ($recipientUSCountry) {
+                $labelContent = base64_decode((string) $response->SignatureConfirmationLabel);
+                $trackingNumber = (string) $response->SignatureConfirmationNumber;
+            } else  {
+                $labelContent = base64_decode((string) $response->LabelImage);
+                $trackingNumber = (string) $response->BarcodeNumber;
+            }
+            $result->setShippingLabelContent($labelContent);
+            $result->setTrackingNumber($trackingNumber);
+        }
+
+        $result->setGatewayResponse($response);
+        $debugData['result'] = $response;
+        $this->_debug($debugData);
+        return $result;
+    }
+
+    /**
+     * Return container types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array|bool
+     */
+    public function getContainerTypes(Varien_Object $params = null)
+    {
+        if (is_null($params)) {
+            return $this->_getAllowedContainers();
+        }
+        return $this->_isUSCountry($params->getCountryRecipient()) ? array() : $this->_getAllowedContainers($params);
+    }
+
+    /**
+     * Return all container types of carrier
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesAll()
+    {
+        return $this->getCode('container');
+    }
+
+    /**
+     * Return structured data of containers witch related with shipping methods
+     *
+     * @return array|bool
+     */
+    public function getContainerTypesFilter()
+    {
+        return $this->getCode('containers_filter');
+    }
+
+    /**
+     * Return delivery confirmation types of carrier
+     *
+     * @param Varien_Object|null $params
+     * @return array
+     */
+    public function getDeliveryConfirmationTypes(Varien_Object $params = null)
+    {
+        if ($params == null) {
+            return array();
+        }
+        $countryRecipient = $params->getCountryRecipient();
+        if ($this->_isUSCountry($countryRecipient)) {
+            return $this->getCode('delivery_confirmation_types');
+        } else {
+            return array();
+        }
+    }
+
+    /**
+     * Check whether girth is allowed for the USPS
+     *
+     * @param null|string $countyDest
+     * @return bool
+     */
+    public function isGirthAllowed($countyDest = null)
+    {
+        return $this->_isUSCountry($countyDest) ? false : true;
+    }
+
+    /**
+     * Return content types of package
+     *
+     * @param Varien_Object $params
+     * @return array
+     */
+    public function getContentTypes(Varien_Object $params)
+    {
+        $countryShipper     = $params->getCountryShipper();
+        $countryRecipient   = $params->getCountryRecipient();
+
+        if ($countryShipper == self::USA_COUNTRY_ID
+            && $countryRecipient != self::USA_COUNTRY_ID
+        ) {
+            return array(
+                'MERCHANDISE' => Mage::helper('usa')->__('Merchandise'),
+                'SAMPLE' => Mage::helper('usa')->__('Sample'),
+                'GIFT' => Mage::helper('usa')->__('Gift'),
+                'DOCUMENTS' => Mage::helper('usa')->__('Documents'),
+                'RETURN' => Mage::helper('usa')->__('Return'),
+                'OTHER' => Mage::helper('usa')->__('Other'),
+            );
+        }
+        return array();
+    }
+
+    /**
+     * Parse zip from string to zip5-zip4
+     *
+     * @param string $zipString
+     * @param bool $returnFull
+     * @return array
+     */
+    protected function _parseZip($zipString, $returnFull = false)
+    {
+        $zip4 = '';
+        $zip5 = '';
+        $zip = array($zipString);
+        if (preg_match('/[\\d\\w]{5}\\-[\\d\\w]{4}/', $zipString) != 0) {
+            $zip = explode('-', $zipString);
+        }
+        for ($i = 0; $i < count($zip); ++$i) {
+            if (strlen($zip[$i]) == 5) {
+                $zip5 = $zip[$i];
+            } elseif (strlen($zip[$i]) == 4) {
+                $zip4 = $zip[$i];
+            }
+        }
+        if (empty($zip5) && empty($zip4) && $returnFull) {
+            $zip5 = $zipString;
+        }
+
+        return array($zip5, $zip4);
+    }
 }
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Container.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Container.php
index 8a6083c..36702b8 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Container.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Container.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Freemethod.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Freemethod.php
index 6e67b46..34d46fb 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Freemethod.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Freemethod.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Machinable.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Machinable.php
index 4bf6192..2566992 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Machinable.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Machinable.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Method.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Method.php
index 06ab114..3671795 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Method.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Method.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Size.php app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Size.php
index 2b89edc..3cf6eed 100644
--- app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Size.php
+++ app/code/core/Mage/Usa/Model/Shipping/Carrier/Usps/Source/Size.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/Model/Tax/Uszip.php app/code/core/Mage/Usa/Model/Tax/Uszip.php
deleted file mode 100644
index c119bf9..0000000
--- app/code/core/Mage/Usa/Model/Tax/Uszip.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * Magento
- *
- * NOTICE OF LICENSE
- *
- * This source file is subject to the Open Software License (OSL 3.0)
- * that is bundled with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://opensource.org/licenses/osl-3.0.php
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@magentocommerce.com so we can send you a copy immediately.
- *
- * DISCLAIMER
- *
- * Do not edit or add to this file if you wish to upgrade Magento to newer
- * versions in the future. If you wish to customize Magento for your
- * needs please refer to http://www.magentocommerce.com for more information.
- *
- * @category    Mage
- * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
- * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
- */
-
-
-class Mage_Usa_Tax_Uszipcode extends Mage_Sales_Model_Tax_Abstract
-{
-
-}
diff --git app/code/core/Mage/Usa/etc/config.xml app/code/core/Mage/Usa/etc/config.xml
index 924a076..5eaa96c 100644
--- app/code/core/Mage/Usa/etc/config.xml
+++ app/code/core/Mage/Usa/etc/config.xml
@@ -21,14 +21,14 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  */
 -->
 <config>
     <modules>
         <Mage_Usa>
-            <version>0.7.1</version>
+            <version>1.6.0.1</version>
         </Mage_Usa>
     </modules>
     <global>
@@ -59,6 +59,9 @@
                     <dhl>
                         <class>Mage_Usa_Model_Shipping_Carrier_Dhl</class>
                     </dhl>
+                    <dhlint>
+                        <class>Mage_Usa_Model_Shipping_Carrier_Dhl_International</class>
+                    </dhlint>
                 </carriers>
             </shipping>
             <tax>
@@ -92,26 +95,33 @@
             </modules>
         </translate>
     </frontend>
-
     <default>
+        <system>
+            <media_storage_configuration>
+                <allowed_resources>
+                    <dhl_folder>dhl</dhl_folder>
+                </allowed_resources>
+            </media_storage_configuration>
+        </system>
         <carriers>
             <dhl>
-                <account></account>
+                <account/>
                 <active>0</active>
                 <sallowspecific>0</sallowspecific>
-                <allowed_methods>E,N,S,G,IE,E SAT,E 10:30AM</allowed_methods>
+                <allowed_methods>IE,E SAT,E 10:30AM,E,N,S,G</allowed_methods>
                 <contentdesc>Big Box</contentdesc>
-                <cutoff_cost></cutoff_cost>
+                <cutoff_cost/>
                 <dutypaymenttype>R</dutypaymenttype>
                 <free_method>G</free_method>
                 <gateway_url>https://eCommerce.airborne.com/ApiLandingTest.asp</gateway_url>
-                <id backend_model="adminhtml/system_config_backend_encrypted"></id>
+                <id backend_model="adminhtml/system_config_backend_encrypted"/>
                 <model>usa/shipping_carrier_dhl</model>
-                <password backend_model="adminhtml/system_config_backend_encrypted"></password>
+                <password backend_model="adminhtml/system_config_backend_encrypted"/>
+                <shipment_requesttype>0</shipment_requesttype>
                 <shipment_type>P</shipment_type>
-                <shipping_key backend_model="adminhtml/system_config_backend_encrypted"></shipping_key>
-                <shipping_intlkey backend_model="adminhtml/system_config_backend_encrypted"></shipping_intlkey>
-                <title>DHL</title>
+                <shipping_key backend_model="adminhtml/system_config_backend_encrypted"/>
+                <shipping_intlkey backend_model="adminhtml/system_config_backend_encrypted"/>
+                <title>DHL (Deprecated)</title>
                 <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
                 <max_package_weight>150</max_package_weight>
                 <handling_type>F</handling_type>
@@ -120,34 +130,37 @@
                 <intl_shipment_days>1,2,3,4,5</intl_shipment_days>
                 <additional_protection_rounding>0</additional_protection_rounding>
             </dhl>
-
             <fedex>
-                <account backend_model="adminhtml/system_config_backend_encrypted"></account>
+                <account backend_model="adminhtml/system_config_backend_encrypted"/>
+                <meter_number backend_model="adminhtml/system_config_backend_encrypted"/>
+                <key backend_model="adminhtml/system_config_backend_encrypted"/>
+                <password backend_model="adminhtml/system_config_backend_encrypted"/>
+                <sandbox_mode>0</sandbox_mode>
+                <shipment_requesttype>0</shipment_requesttype>
                 <active>0</active>
                 <sallowspecific>0</sallowspecific>
-                <allowed_methods>PRIORITYOVERNIGHT,STANDARDOVERNIGHT,FIRSTOVERNIGHT,FEDEX2DAY,FEDEXEXPRESSSAVER,INTERNATIONALPRIORITY,INTERNATIONALECONOMY,INTERNATIONALFIRST,FEDEX1DAYFREIGHT,FEDEX2DAYFREIGHT,FEDEX3DAYFREIGHT,FEDEXGROUND,GROUNDHOMEDELIVERY,INTERNATIONALPRIORITY FREIGHT,INTERNATIONALECONOMY FREIGHT,EUROPEFIRSTINTERNATIONALPRIORITY</allowed_methods>
-                <cutoff_cost></cutoff_cost>
-                <dropoff>REGULARPICKUP</dropoff>
-                <free_method>FEDEXGROUND</free_method>
-                <gateway_url>https://gateway.fedex.com/GatewayDC</gateway_url>
+                <allowed_methods>EUROPE_FIRST_INTERNATIONAL_PRIORITY,FEDEX_1_DAY_FREIGHT,FEDEX_2_DAY_FREIGHT,FEDEX_2_DAY,FEDEX_2_DAY_AM,FEDEX_3_DAY_FREIGHT,FEDEX_EXPRESS_SAVER,FEDEX_GROUND,FIRST_OVERNIGHT,GROUND_HOME_DELIVERY,INTERNATIONAL_ECONOMY,INTERNATIONAL_ECONOMY_FREIGHT,INTERNATIONAL_FIRST,INTERNATIONAL_GROUND,INTERNATIONAL_PRIORITY,INTERNATIONAL_PRIORITY_FREIGHT,PRIORITY_OVERNIGHT,SMART_POST,STANDARD_OVERNIGHT,FEDEX_FREIGHT,FEDEX_NATIONAL_FREIGHT</allowed_methods>
+                <cutoff_cost/>
+                <dropoff>REGULAR_PICKUP</dropoff>
+                <free_method>FEDEX_GROUND</free_method>
                 <handling>0</handling>
                 <model>usa/shipping_carrier_fedex</model>
-                <packaging>YOURPACKAGING</packaging>
+                <packaging>YOUR_PACKAGING</packaging>
                 <title>Federal Express</title>
                 <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
                 <max_package_weight>150</max_package_weight>
                 <handling_type>F</handling_type>
                 <handling_action>O</handling_action>
             </fedex>
-
             <ups>
                 <access_license_number backend_model="adminhtml/system_config_backend_encrypted"/>
                 <active>0</active>
                 <sallowspecific>0</sallowspecific>
-                <allowed_methods>1DM,1DML,1DA,1DAL,1DAPI,1DP,1DPL,2DM,2DML,2DA,2DAL,3DS,GND,GNDCOM,GNDRES,STD,XPR,WXS,XPRL,XDM,XDML,XPD</allowed_methods>
+                <allowed_methods>1DM,1DML,1DA,1DAL,1DAPI,1DP,1DPL,2DM,2DML,2DA,2DAL,3DS,GND,GNDCOM,GNDRES,STD,XPR,WXS,XPRL,XDM,XDML,XPD,01,02,03,07,08,11,12,14,54,59,65</allowed_methods>
                 <origin_shipment>Shipments Originating in United States</origin_shipment>
+                <shipment_requesttype>0</shipment_requesttype>
                 <container>CP</container>
-                <cutoff_cost></cutoff_cost>
+                <cutoff_cost/>
                 <dest_type>RES</dest_type>
                 <free_method>GND</free_method>
                 <gateway_url>http://www.ups.com/using/services/rave/qcostcgi.cgi</gateway_url>
@@ -169,27 +182,50 @@
                 <mode_xml>1</mode_xml>
                 <type>UPS</type>
             </ups>
-
             <usps>
                 <active>0</active>
                 <sallowspecific>0</sallowspecific>
-                <allowed_methods>Bound Printed Matter,Express Mail,Express Mail Flat Rate Envelope,Express Mail Flat Rate Envelope Hold For Pickup,Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee,Express Mail Hold For Pickup,Express Mail International,Express Mail International Flat Rate Envelope,Express Mail PO to PO,Express Mail Sunday/Holiday Guarantee,First-Class Mail International Large Envelope,First-Class Mail International Letters,First-Class Mail International Package,First-Class,First-Class Mail,First-Class Mail Flat,First-Class Mail Large Envelope,First-Class Mail International,First-Class Mail Letter,First-Class Mail Parcel,First-Class Mail Package,Global Express Guaranteed (GXG),Global Express Guaranteed Non-Document Non-Rectangular,Global Express Guaranteed Non-Document Rectangular,Library Mail,Media Mail,Parcel Post,Priority Mail,Priority Mail Small Flat Rate Box,Priority Mail Medium Flat Rate Box,Priority Mail Large Flat Rate Box,Priority Mail Flat Rate Box,Priority Mail Flat Rate Envelope,Priority Mail International,Priority Mail International Flat Rate Box,Priority Mail International Flat Rate Envelope,Priority Mail International Small Flat Rate Box,Priority Mail International Medium Flat Rate Box,Priority Mail International Large Flat Rate Box,USPS GXG Envelopes</allowed_methods>
+                <allowed_methods>Bound Printed Matter,Express Mail,Express Mail Flat Rate Envelope,Express Mail Flat Rate Envelope Hold For Pickup,Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee,Express Mail Hold For Pickup,Express Mail International,Express Mail International Flat Rate Envelope,Express Mail PO to PO,Express Mail Sunday/Holiday Guarantee,First-Class Mail International Large Envelope,First-Class Mail International Letters,First-Class Mail International Package,First-Class Mail International Parcel,First-Class,First-Class Mail,First-Class Mail Flat,First-Class Mail Large Envelope,First-Class Mail International,First-Class Mail Letter,First-Class Mail Parcel,First-Class Mail Package,Global Express Guaranteed (GXG),Global Express Guaranteed Non-Document Non-Rectangular,Global Express Guaranteed Non-Document Rectangular,Library Mail,Media Mail,Parcel Post,Priority Mail,Priority Mail Small Flat Rate Box,Priority Mail Medium Flat Rate Box,Priority Mail Large Flat Rate Box,Priority Mail Flat Rate Box,Priority Mail Flat Rate Envelope,Priority Mail International,Priority Mail International Flat Rate Box,Priority Mail International Flat Rate Envelope,Priority Mail International Small Flat Rate Box,Priority Mail International Medium Flat Rate Box,Priority Mail International Large Flat Rate Box,USPS GXG Envelopes</allowed_methods>
                 <container>VARIABLE</container>
-                <cutoff_cost></cutoff_cost>
-                <free_method></free_method>
+                <cutoff_cost/>
+                <free_method/>
                 <gateway_url>http://production.shippingapis.com/ShippingAPI.dll</gateway_url>
-                <handling></handling>
+                <gateway_secure_url>https://secure.shippingapis.com/ShippingAPI.dll</gateway_secure_url>
+                <shipment_requesttype>0</shipment_requesttype>
+                <handling/>
                 <machinable>true</machinable>
-                <methods>Bound Printed Matter,Express Mail,Express Mail Flat Rate Envelope,Express Mail Flat Rate Envelope Hold For Pickup,Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee,Express Mail Hold For Pickup,Express Mail International,Express Mail International Flat Rate Envelope,Express Mail PO to PO,Express Mail Sunday/Holiday Guarantee,First-Class Mail International Large Envelope,First-Class Mail International Letters,First-Class Mail International Package,First-Class,First-Class Mail,First-Class Mail Flat,First-Class Mail Large Envelope,First-Class Mail International,First-Class Mail Letter,First-Class Mail Parcel,First-Class Mail Package,Global Express Guaranteed (GXG),Global Express Guaranteed Non-Document Non-Rectangular,Global Express Guaranteed Non-Document Rectangular,Library Mail,Media Mail,Parcel Post,Priority Mail,Priority Mail Small Flat Rate Box,Priority Mail Medium Flat Rate Box,Priority Mail Large Flat Rate Box,Priority Mail Flat Rate Box,Priority Mail Flat Rate Envelope,Priority Mail International,Priority Mail International Flat Rate Box,Priority Mail International Flat Rate Envelope,Priority Mail International Small Flat Rate Box,Priority Mail International Medium Flat Rate Box,Priority Mail International Large Flat Rate Box,USPS GXG Envelopes</methods>
+                <methods>Bound Printed Matter,Express Mail,Express Mail Flat Rate Envelope,Express Mail Flat Rate Envelope Hold For Pickup,Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee,Express Mail Hold For Pickup,Express Mail International,Express Mail International Flat Rate Envelope,Express Mail PO to PO,Express Mail Sunday/Holiday Guarantee,First-Class Mail International Large Envelope,First-Class Mail International Letters,First-Class Mail International Package,First-Class Mail International Parcel,First-Class,First-Class Mail,First-Class Mail Flat,First-Class Mail Large Envelope,First-Class Mail International,First-Class Mail Letter,First-Class Mail Parcel,First-Class Mail Package,Global Express Guaranteed (GXG),Global Express Guaranteed Non-Document Non-Rectangular,Global Express Guaranteed Non-Document Rectangular,Library Mail,Media Mail,Parcel Post,Priority Mail,Priority Mail Small Flat Rate Box,Priority Mail Medium Flat Rate Box,Priority Mail Large Flat Rate Box,Priority Mail Flat Rate Box,Priority Mail Flat Rate Envelope,Priority Mail International,Priority Mail International Flat Rate Box,Priority Mail International Flat Rate Envelope,Priority Mail International Small Flat Rate Box,Priority Mail International Medium Flat Rate Box,Priority Mail International Large Flat Rate Box,USPS GXG Envelopes</methods>
                 <model>usa/shipping_carrier_usps</model>
                 <size>REGULAR</size>
                 <title>United States Postal Service</title>
                 <userid backend_model="adminhtml/system_config_backend_encrypted"/>
+                <password backend_model="adminhtml/system_config_backend_encrypted"/>
+                <isproduction>0</isproduction>
                 <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
                 <max_package_weight>70</max_package_weight>
                 <handling_type>F</handling_type>
                 <handling_action>O</handling_action>
             </usps>
+            <dhlint>
+                <model>usa/shipping_carrier_dhl_international</model>
+                <account/>
+                <active>0</active>
+                <title>DHL</title>
+                <sallowspecific>0</sallowspecific>
+                <nondoc_methods>1,3,4,8,P,Q,E,F,H,J,M,V,Y</nondoc_methods>
+                <doc_methods>2,5,6,7,9,B,C,D,U,K,L,G,W,I,N,O,R,S,T,X</doc_methods>
+                <free_method>G</free_method>
+                <gateway_url>https://xmlpi-ea.dhl.com/XMLShippingServlet</gateway_url>
+                <id backend_model="adminhtml/system_config_backend_encrypted"/>
+                <password backend_model="adminhtml/system_config_backend_encrypted"/>
+                <shipment_type>N</shipment_type>
+                <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
+                <divide_order_weight>1</divide_order_weight>
+                <unit_of_measure>K</unit_of_measure>
+                <size>R</size>
+                <handling_type>F</handling_type>
+                <handling_action>O</handling_action>
+            </dhlint>
         </carriers>
     </default>
 </config>
diff --git app/code/core/Mage/Usa/etc/dhl/international/countries.xml app/code/core/Mage/Usa/etc/dhl/international/countries.xml
new file mode 100644
index 0000000..cc6b1f2
--- /dev/null
+++ app/code/core/Mage/Usa/etc/dhl/international/countries.xml
@@ -0,0 +1,1580 @@
+<?xml version="1.0"?>
+<!--
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+-->
+<countries>
+    <AD>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Andorra</name>
+    </AD>
+    <AE>
+        <currency>AED</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>United Arab Emirates</name>
+    </AE>
+    <AF>
+        <currency>AFN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Afghanistan</name>
+    </AF>
+    <AG>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Antigua</name>
+    </AG>
+    <AI>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Anguilla</name>
+    </AI>
+    <AL>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Albania</name>
+    </AL>
+    <AM>
+        <currency>AMD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Armenia</name>
+    </AM>
+    <AN>
+        <currency>ANG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Netherlands Antilles</name>
+    </AN>
+    <AO>
+        <currency>AOA</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Angola</name>
+    </AO>
+    <AR>
+        <currency>ARS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Argentina</name>
+    </AR>
+    <AS>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <name>American Samoa</name>
+    </AS>
+    <AT>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Austria</name>
+        <domestic>1</domestic>
+    </AT>
+    <AU>
+        <currency>AUD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Australia</name>
+    </AU>
+    <AW>
+        <currency>AWG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Aruba</name>
+    </AW>
+    <AZ>
+        <currency>AZM</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Azerbaijan</name>
+    </AZ>
+    <BA>
+        <currency>BAM</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Bosnia and Herzegovina</name>
+    </BA>
+    <BB>
+        <currency>BBD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Barbados</name>
+    </BB>
+    <BD>
+        <currency>BDT</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Bangladesh</name>
+    </BD>
+    <BE>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Belgium</name>
+        <domestic>1</domestic>
+    </BE>
+    <BF>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Burkina Faso</name>
+    </BF>
+    <BG>
+        <currency>BGN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Bulgaria</name>
+        <domestic>1</domestic>
+    </BG>
+    <BH>
+        <currency>BHD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Bahrain</name>
+    </BH>
+    <BI>
+        <currency>BIF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Burundi</name>
+    </BI>
+    <BJ>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Benin</name>
+    </BJ>
+    <BM>
+        <currency>BMD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Bermuda</name>
+    </BM>
+    <BN>
+        <currency>BND</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Brunei</name>
+    </BN>
+    <BO>
+        <currency>BOB</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Bolivia</name>
+    </BO>
+    <BR>
+        <currency>BRL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Brazil</name>
+    </BR>
+    <BS>
+        <currency>BSD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Bahamas</name>
+    </BS>
+    <BT>
+        <currency>BTN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Bhutan</name>
+    </BT>
+    <BW>
+        <currency>BWP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Botswana</name>
+    </BW>
+    <BY>
+        <currency>BYR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Belarus</name>
+    </BY>
+    <BZ>
+        <currency>BZD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Belize</name>
+    </BZ>
+    <CA>
+        <currency>CAD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Canada</name>
+    </CA>
+    <CD>
+        <currency>CDF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Congo, The Democratic Republic of</name>
+    </CD>
+    <CF>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Central African Republic</name>
+    </CF>
+    <CG>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Congo</name>
+    </CG>
+    <CH>
+        <currency>CHF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Switzerland</name>
+    </CH>
+    <CI>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Cote d'Ivoire</name>
+    </CI>
+    <CK>
+        <currency>NZD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Cook Islands</name>
+    </CK>
+    <CL>
+        <currency>CLP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Chile</name>
+    </CL>
+    <CM>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Cameroon</name>
+    </CM>
+    <CN>
+        <currency>CNY</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>China, People's Republic</name>
+    </CN>
+    <CO>
+        <currency>COP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Colombia</name>
+    </CO>
+    <CR>
+        <currency>CRC</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Costa Rica</name>
+    </CR>
+    <CU>
+        <currency>CUP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Cuba</name>
+    </CU>
+    <CV>
+        <currency>CVE</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Cape Verde</name>
+    </CV>
+    <CY>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Cyprus</name>
+        <domestic>1</domestic>
+    </CY>
+    <CZ>
+        <currency>CZK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Czech Republic, The</name>
+        <domestic>1</domestic>
+    </CZ>
+    <DE>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Germany</name>
+        <domestic>1</domestic>
+    </DE>
+    <DJ>
+        <currency>DJF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Djibouti</name>
+    </DJ>
+    <DK>
+        <currency>DKK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Denmark</name>
+        <domestic>1</domestic>
+    </DK>
+    <DM>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Dominica</name>
+    </DM>
+    <DO>
+        <currency>DOP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Dominican Rep.</name>
+    </DO>
+    <DZ>
+        <currency>DZD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Algeria</name>
+    </DZ>
+    <EC>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Ecuador</name>
+    </EC>
+    <EE>
+        <currency>EEK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Estonia</name>
+        <domestic>1</domestic>
+    </EE>
+    <EG>
+        <currency>EGP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Egypt</name>
+    </EG>
+    <ER>
+        <currency>ERN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Eritrea</name>
+    </ER>
+    <ES>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Spain</name>
+        <domestic>1</domestic>
+    </ES>
+    <ET>
+        <currency>ETB</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Ethiopia</name>
+    </ET>
+    <FI>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Finland</name>
+        <domestic>1</domestic>
+    </FI>
+    <FJ>
+        <currency>FJD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Fiji</name>
+    </FJ>
+    <FK>
+        <currency>FKP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Falkland Islands</name>
+    </FK>
+    <FM>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <name>MICRONESIA, FEDERATED STATES OF</name>
+    </FM>
+    <FO>
+        <currency>DKK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Faroe Islands</name>
+    </FO>
+    <FR>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>France</name>
+        <domestic>1</domestic>
+    </FR>
+    <GA>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Gabon</name>
+    </GA>
+    <GB>
+        <currency>GBP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>United Kingdom</name>
+        <domestic>1</domestic>
+    </GB>
+    <GD>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Grenada</name>
+    </GD>
+    <GE>
+        <currency>GEL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Georgia</name>
+    </GE>
+    <GF>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>French Guyana</name>
+    </GF>
+    <GG>
+        <currency>GBP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Guernsey</name>
+    </GG>
+    <GH>
+        <currency>GHS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Ghana</name>
+    </GH>
+    <GI>
+        <currency>GIP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Gibraltar</name>
+    </GI>
+    <GL>
+        <currency>DKK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Greenland</name>
+    </GL>
+    <GM>
+        <currency>GMD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Gambia</name>
+    </GM>
+    <GN>
+        <currency>GNF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Guinea Republic</name>
+    </GN>
+    <GP>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Guadeloupe</name>
+    </GP>
+    <GQ>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Guinea-Equatorial</name>
+    </GQ>
+    <GR>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Greece</name>
+        <domestic>1</domestic>
+    </GR>
+    <GT>
+        <currency>GTQ</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Guatemala</name>
+    </GT>
+    <GU>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <region>AM</region>
+        <name>Guam</name>
+    </GU>
+    <GW>
+        <currency>GWP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Guinea-Bissau</name>
+    </GW>
+    <GY>
+        <currency>GYD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Guyana (British)</name>
+    </GY>
+    <HK>
+        <currency>HKD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Hong Kong</name>
+    </HK>
+    <HN>
+        <currency>HNL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Honduras</name>
+    </HN>
+    <HR>
+        <currency>HRK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Croatia</name>
+    </HR>
+    <HT>
+        <currency>HTG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Haiti</name>
+    </HT>
+    <HU>
+        <currency>HUF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Hungary</name>
+        <domestic>1</domestic>
+    </HU>
+    <IC>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Canary Islands, The</name>
+    </IC>
+    <ID>
+        <currency>IDR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Indonesia</name>
+    </ID>
+    <IE>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Ireland, Republic Of</name>
+        <domestic>1</domestic>
+    </IE>
+    <IL>
+        <currency>ILS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Israel</name>
+    </IL>
+    <IN>
+        <currency>INR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>India</name>
+    </IN>
+    <IQ>
+        <currency>IQD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Iraq</name>
+    </IQ>
+    <IR>
+        <currency>IRR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Iran (Islamic Republic of)</name>
+    </IR>
+    <IS>
+        <currency>ISK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Iceland</name>
+    </IS>
+    <IT>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Italy</name>
+        <domestic>1</domestic>
+    </IT>
+    <JE>
+        <currency>GBP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Jersey</name>
+    </JE>
+    <JM>
+        <currency>JMD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Jamaica</name>
+    </JM>
+    <JO>
+        <currency>JOD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Jordan</name>
+    </JO>
+    <JP>
+        <currency>JPY</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Japan</name>
+    </JP>
+    <KE>
+        <currency>KES</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Kenya</name>
+    </KE>
+    <KG>
+        <currency>KGS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Kyrgyzstan</name>
+    </KG>
+    <KH>
+        <currency>KHR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Cambodia</name>
+    </KH>
+    <KI>
+        <currency>AUD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Kiribati</name>
+    </KI>
+    <KM>
+        <currency>KMF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Comoros</name>
+    </KM>
+    <KN>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>St. Kitts</name>
+    </KN>
+    <KP>
+        <currency>KPW</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Korea, The D.P.R of</name>
+    </KP>
+    <KR>
+        <currency>KRW</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Korea, Republic Of</name>
+    </KR>
+    <KV>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Kosovo</name>
+    </KV>
+    <KW>
+        <currency>KWD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Kuwait</name>
+    </KW>
+    <KY>
+        <currency>KYD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Cayman Islands</name>
+    </KY>
+    <KZ>
+        <currency>KZT</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Kazakhstan</name>
+    </KZ>
+    <LA>
+        <currency>LAK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Lao People's Democratic Republic</name>
+    </LA>
+    <LB>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Lebanon</name>
+    </LB>
+    <LC>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>St. Lucia</name>
+    </LC>
+    <LI>
+        <currency>CHF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Liechtenstein</name>
+    </LI>
+    <LK>
+        <currency>LKR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Sri Lanka</name>
+    </LK>
+    <LR>
+        <currency>LRD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Liberia</name>
+    </LR>
+    <LS>
+        <currency>LSL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Lesotho</name>
+    </LS>
+    <LT>
+        <currency>LTL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Lithuania</name>
+        <domestic>1</domestic>
+    </LT>
+    <LU>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Luxembourg</name>
+        <domestic>1</domestic>
+    </LU>
+    <LV>
+        <currency>LVL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Latvia</name>
+        <domestic>1</domestic>
+    </LV>
+    <LY>
+        <currency>LYD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Libya</name>
+    </LY>
+    <MA>
+        <currency>MAD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Morocco</name>
+    </MA>
+    <MC>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Monaco</name>
+    </MC>
+    <MD>
+        <currency>MDL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Moldova, Republic Of</name>
+    </MD>
+    <ME>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Montenegro, Republic of</name>
+    </ME>
+    <MG>
+        <currency>MGA</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Madagascar</name>
+    </MG>
+    <MH>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <name>Marshall Islands</name>
+    </MH>
+    <MK>
+        <currency>MKD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Macedonia, Rep. of (FYROM)</name>
+    </MK>
+    <ML>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Mali</name>
+    </ML>
+    <MM>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Myanmar</name>
+    </MM>
+    <MN>
+        <currency>MNT</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Mongolia</name>
+    </MN>
+    <MO>
+        <currency>MOP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Macau</name>
+    </MO>
+    <MP>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <name>Saipan</name>
+    </MP>
+    <MQ>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Martinique</name>
+    </MQ>
+    <MR>
+        <currency>MRO</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Mauritania</name>
+    </MR>
+    <MS>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Montserrat</name>
+    </MS>
+    <MT>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Malta</name>
+        <domestic>1</domestic>
+    </MT>
+    <MU>
+        <currency>MUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Mauritius</name>
+    </MU>
+    <MV>
+        <currency>MVR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Maldives</name>
+    </MV>
+    <MW>
+        <currency>MWK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Malawi</name>
+    </MW>
+    <MX>
+        <currency>MXN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Mexico</name>
+    </MX>
+    <MY>
+        <currency>MYR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Malaysia</name>
+    </MY>
+    <MZ>
+        <currency>MZN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Mozambique</name>
+    </MZ>
+    <NA>
+        <currency>ZAR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Namibia</name>
+    </NA>
+    <NC>
+        <currency>XPF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>New Caledonia</name>
+    </NC>
+    <NE>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Niger</name>
+    </NE>
+    <NG>
+        <currency>NGN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Nigeria</name>
+    </NG>
+    <NI>
+        <currency>NIO</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Nicaragua</name>
+    </NI>
+    <NL>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Netherlands, The</name>
+        <domestic>1</domestic>
+    </NL>
+    <NO>
+        <currency>NOK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Norway</name>
+    </NO>
+    <NP>
+        <currency>NPR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Nepal</name>
+    </NP>
+    <NR>
+        <currency>AUD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Nauru, Republic Of</name>
+    </NR>
+    <NU>
+        <currency>NZD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Niue</name>
+    </NU>
+    <NZ>
+        <currency>NZD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>New Zealand</name>
+    </NZ>
+    <OM>
+        <currency>OMR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Oman</name>
+    </OM>
+    <PA>
+        <currency>PAB</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Panama</name>
+    </PA>
+    <PE>
+        <currency>PEN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Peru</name>
+    </PE>
+    <PF>
+        <currency>XPF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Tahiti</name>
+    </PF>
+    <PG>
+        <currency>PGK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Papua New Guinea</name>
+    </PG>
+    <PH>
+        <currency>PHP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Philippines, The</name>
+    </PH>
+    <PK>
+        <currency>PKR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Pakistan</name>
+    </PK>
+    <PL>
+        <currency>PLN</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Poland</name>
+        <domestic>1</domestic>
+    </PL>
+    <PR>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <region>AM</region>
+        <name>Puerto Rico</name>
+    </PR>
+    <PT>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Portugal</name>
+        <domestic>1</domestic>
+    </PT>
+    <PW>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Palau</name>
+    </PW>
+    <PY>
+        <currency>PYG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Paraguay</name>
+    </PY>
+    <QA>
+        <currency>QAR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Qatar</name>
+    </QA>
+    <RE>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Reunion, Island Of</name>
+    </RE>
+    <RO>
+        <currency>RON</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Romania</name>
+        <domestic>1</domestic>
+    </RO>
+    <RS>
+        <currency>RSD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Serbia, Republic of</name>
+    </RS>
+    <RU>
+        <currency>RUB</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Russian Federation, The</name>
+    </RU>
+    <RW>
+        <currency>RWF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Rwanda</name>
+    </RW>
+    <SA>
+        <currency>SAR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Saudi Arabia</name>
+    </SA>
+    <SB>
+        <currency>SBD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Solomon Islands</name>
+    </SB>
+    <SC>
+        <currency>SCR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Seychelles</name>
+    </SC>
+    <SD>
+        <currency>SDG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Sudan</name>
+    </SD>
+    <SE>
+        <currency>SEK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Sweden</name>
+        <domestic>1</domestic>
+    </SE>
+    <SG>
+        <currency>SGD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Singapore</name>
+    </SG>
+    <SI>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Slovenia</name>
+        <domestic>1</domestic>
+    </SI>
+    <SK>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>EA</region>
+        <name>Slovakia</name>
+        <domestic>1</domestic>
+    </SK>
+    <SL>
+        <currency>SLL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Sierra Leone</name>
+    </SL>
+    <SM>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>San Marino</name>
+    </SM>
+    <SN>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Senegal</name>
+    </SN>
+    <SO>
+        <currency>SOS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Somalia</name>
+    </SO>
+    <SR>
+        <currency>SRD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Suriname</name>
+    </SR>
+    <ST>
+        <currency>STD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Sao Tome and Principe</name>
+    </ST>
+    <SV>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>El Salvador</name>
+    </SV>
+    <SY>
+        <currency>SYP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Syria</name>
+    </SY>
+    <SZ>
+        <currency>SZL</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Swaziland</name>
+    </SZ>
+    <TC>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Turks and Caicos Islands</name>
+    </TC>
+    <TD>
+        <currency>XAF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Chad</name>
+    </TD>
+    <TG>
+        <currency>XOF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Togo</name>
+    </TG>
+    <TH>
+        <currency>THB</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Thailand</name>
+    </TH>
+    <TJ>
+        <currency>TJS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Tajikistan</name>
+    </TJ>
+    <TL>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>East Timor</name>
+    </TL>
+    <TN>
+        <currency>TND</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Tunisia</name>
+    </TN>
+    <TO>
+        <currency>TOP</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Tonga</name>
+    </TO>
+    <TR>
+        <currency>TRY</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Turkey</name>
+    </TR>
+    <TT>
+        <currency>TTD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Trinidad and Tobago</name>
+    </TT>
+    <TV>
+        <currency>AUD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Tuvalu</name>
+    </TV>
+    <TW>
+        <currency>TWD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Taiwan</name>
+    </TW>
+    <TZ>
+        <currency>TZS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Tanzania</name>
+    </TZ>
+    <UA>
+        <currency>UAH</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Ukraine</name>
+    </UA>
+    <UG>
+        <currency>UGX</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Uganda</name>
+    </UG>
+    <US>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <region>AM</region>
+        <name>United States Of America</name>
+    </US>
+    <UY>
+        <currency>UYU</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Uruguay</name>
+    </UY>
+    <UZ>
+        <currency>UZS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Uzbekistan</name>
+    </UZ>
+    <VC>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>St. Vincent</name>
+    </VC>
+    <VE>
+        <currency>VEF</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Venezuela</name>
+    </VE>
+    <VG>
+        <currency>USD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Virgin Islands (British)</name>
+    </VG>
+    <VI>
+        <currency>USD</currency>
+        <weight_unit>LB</weight_unit>
+        <measure_unit>IN</measure_unit>
+        <name>Virgin Islands (US)</name>
+    </VI>
+    <VN>
+        <currency>VND</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Vietnam</name>
+    </VN>
+    <VU>
+        <currency>VUV</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Vanuatu</name>
+    </VU>
+    <WS>
+        <currency>WST</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Samoa</name>
+    </WS>
+    <XB>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Bonaire</name>
+    </XB>
+    <XC>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Curacao</name>
+    </XC>
+    <XE>
+        <currency>ANG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>St. Eustatius</name>
+    </XE>
+    <XM>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>St. Maarten</name>
+    </XM>
+    <XN>
+        <currency>XCD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>Nevis</name>
+    </XN>
+    <XS>
+        <currency>SIS</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Somaliland, Rep of (North Somalia)</name>
+    </XS>
+    <XY>
+        <currency>ANG</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AM</region>
+        <name>St. Barthelemy</name>
+    </XY>
+    <YE>
+        <currency>YER</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>Yemen, Republic of</name>
+    </YE>
+    <YT>
+        <currency>EUR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Mayotte</name>
+    </YT>
+    <ZA>
+        <currency>ZAR</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <region>AP</region>
+        <name>South Africa</name>
+    </ZA>
+    <ZM>
+        <currency>ZMK</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Zambia</name>
+    </ZM>
+    <ZW>
+        <currency>ZWD</currency>
+        <weight_unit>KG</weight_unit>
+        <measure_unit>CM</measure_unit>
+        <name>Zimbabwe</name>
+    </ZW>
+</countries>
diff --git app/code/core/Mage/Usa/etc/system.xml app/code/core/Mage/Usa/etc/system.xml
index 62664cb..8c642a1 100644
--- app/code/core/Mage/Usa/etc/system.xml
+++ app/code/core/Mage/Usa/etc/system.xml
@@ -21,7 +21,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  */
 -->
@@ -30,9 +30,9 @@
         <carriers>
             <groups>
                 <dhl translate="label" module="usa">
-                    <label>DHL</label>
+                    <label>DHL (Deprecated)</label>
                     <frontend_type>text</frontend_type>
-                    <sort_order>13</sort_order>
+                    <sort_order>130</sort_order>
                     <show_in_default>1</show_in_default>
                     <show_in_website>1</show_in_website>
                     <show_in_store>1</show_in_store>
@@ -40,16 +40,16 @@
                         <account translate="label">
                             <label>Account Number</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>7</sort_order>
+                            <sort_order>70</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </account>
                         <active translate="label">
-                            <label>Enabled</label>
+                            <label>Enabled for Checkout</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>1</sort_order>
+                            <sort_order>10</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -58,7 +58,7 @@
                             <label>Allowed Methods</label>
                             <frontend_type>multiselect</frontend_type>
                             <source_model>usa/shipping_carrier_dhl_source_method</source_model>
-                            <sort_order>17</sort_order>
+                            <sort_order>170</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -67,7 +67,7 @@
                         <contentdesc translate="label">
                             <label>Package Description</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>12</sort_order>
+                            <sort_order>120</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -80,7 +80,7 @@
                             <label>Free Shipping with Minimum Order Amount</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_enabledisable</source_model>
-                            <sort_order>121</sort_order>
+                            <sort_order>1210</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -88,7 +88,8 @@
                         <free_shipping_subtotal translate="label">
                             <label>Minimum Order Amount for Free Shipping</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>122</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>1220</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -97,7 +98,7 @@
                             <label>Shipment Dutiable</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>13</sort_order>
+                            <sort_order>130</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -106,7 +107,7 @@
                             <label>Shipment Duty Payment Type</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_dhl_source_dutypaymenttype</source_model>
-                            <sort_order>14</sort_order>
+                            <sort_order>140</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -116,7 +117,7 @@
                             <frontend_type>select</frontend_type>
                             <frontend_class>free-method</frontend_class>
                             <source_model>usa/shipping_carrier_dhl_source_freemethod</source_model>
-                            <sort_order>120</sort_order>
+                            <sort_order>1200</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -124,7 +125,7 @@
                         <gateway_url translate="label">
                             <label>Gateway URL</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <sort_order>20</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -133,7 +134,7 @@
                             <label>Calculate Handling Fee</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingType</source_model>
-                            <sort_order>10</sort_order>
+                            <sort_order>100</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -142,7 +143,7 @@
                             <label>Handling Applied</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingAction</source_model>
-                            <sort_order>11</sort_order>
+                            <sort_order>110</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -150,7 +151,8 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>12</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>120</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -158,7 +160,8 @@
                         <max_package_weight translate="label">
                             <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>13</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>130</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -167,7 +170,7 @@
                             <label>Access ID</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>5</sort_order>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -176,16 +179,25 @@
                             <label>Password</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>6</sort_order>
+                            <sort_order>60</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </password>
+                        <shipment_requesttype translate="label">
+                            <label>Packages Request Type</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_abstract_source_requesttype</source_model>
+                            <sort_order>85</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </shipment_requesttype>
                         <shipment_type translate="label">
                             <label>Shipment Type</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_dhl_source_shipmenttype</source_model>
-                            <sort_order>9</sort_order>
+                            <sort_order>90</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -194,7 +206,7 @@
                             <label>Shipping Key (International)</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>8</sort_order>
+                            <sort_order>80</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -203,7 +215,7 @@
                             <label>Shipping Key</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>8</sort_order>
+                            <sort_order>80</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -211,7 +223,7 @@
                         <sort_order translate="label">
                             <label>Sort Order</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>200</sort_order>
+                            <sort_order>2000</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -219,7 +231,7 @@
                         <title translate="label">
                             <label>Title</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <sort_order>20</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>1</show_in_store>
@@ -227,7 +239,7 @@
                         <sallowspecific translate="label">
                             <label>Ship to Applicable Countries</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>190</sort_order>
+                            <sort_order>1900</sort_order>
                             <frontend_class>shipping-applicable-country</frontend_class>
                             <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
                             <show_in_default>1</show_in_default>
@@ -237,7 +249,7 @@
                         <specificcountry translate="label">
                             <label>Ship to Specific Countries</label>
                             <frontend_type>multiselect</frontend_type>
-                            <sort_order>191</sort_order>
+                            <sort_order>1910</sort_order>
                             <source_model>adminhtml/system_config_source_country</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -247,7 +259,7 @@
                         <showmethod translate="label">
                             <label>Show Method if Not Applicable</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>194</sort_order>
+                            <sort_order>1940</sort_order>
                             <frontend_class>shipping-skip-hide</frontend_class>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
                             <show_in_default>1</show_in_default>
@@ -257,7 +269,7 @@
                         <specificerrmsg translate="label">
                             <label>Displayed Error Message</label>
                             <frontend_type>textarea</frontend_type>
-                            <sort_order>80</sort_order>
+                            <sort_order>800</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>1</show_in_store>
@@ -267,7 +279,7 @@
                             <label>Additional Protection Enabled</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>130</sort_order>
+                            <sort_order>1300</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -275,7 +287,8 @@
                         <additional_protection_min_value translate="label">
                             <label>Additional Protection Min Subtotal</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>131</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>1310</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -284,7 +297,7 @@
                             <label>Additional Protection Value</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_dhl_source_protection_value</source_model>
-                            <sort_order>132</sort_order>
+                            <sort_order>1320</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -293,17 +306,17 @@
                             <label>Additional Protection Configuration Value</label>
                             <comment>Used only when "Additional Protection Value" is set to "Configuration". Can contain only numeric amount.</comment>
                             <frontend_type>text</frontend_type>
-                            <sort_order>133</sort_order>
+                            <sort_order>1330</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </additional_protection_value>
 
-                        <additional_protection_rounding translate="label comment">
+                        <additional_protection_rounding translate="label">
                             <label>Additional Protection Value Rounding Method</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_dhl_source_protection_rounding</source_model>
-                            <sort_order>134</sort_order>
+                            <sort_order>1340</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -313,7 +326,7 @@
                             <label>Shipment Contains Hazardous Materials</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>135</sort_order>
+                            <sort_order>1350</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -322,7 +335,7 @@
                         <default_length translate="label">
                             <label>Default Package Length</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>136</sort_order>
+                            <sort_order>1360</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -330,7 +343,7 @@
                         <default_width translate="label">
                             <label>Default Package Width</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>137</sort_order>
+                            <sort_order>1370</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -338,7 +351,7 @@
                         <default_height translate="label">
                             <label>Default Package Height</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>138</sort_order>
+                            <sort_order>1380</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -348,7 +361,7 @@
                             <label>Domestic Shipment Days</label>
                             <frontend_type>multiselect</frontend_type>
                             <source_model>adminhtml/system_config_source_locale_weekdays</source_model>
-                            <sort_order>139</sort_order>
+                            <sort_order>1390</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -359,7 +372,7 @@
                             <label>International Shipment Days</label>
                             <frontend_type>multiselect</frontend_type>
                             <source_model>adminhtml/system_config_source_locale_weekdays</source_model>
-                            <sort_order>140</sort_order>
+                            <sort_order>1400</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -369,7 +382,7 @@
                             <label>Debug</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>195</sort_order>
+                            <sort_order>1950</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -379,89 +392,115 @@
                 <fedex translate="label" module="usa">
                     <label>FedEx</label>
                     <frontend_type>text</frontend_type>
-                    <sort_order>12</sort_order>
+                    <sort_order>120</sort_order>
                     <show_in_default>1</show_in_default>
                     <show_in_website>1</show_in_website>
                     <show_in_store>1</show_in_store>
                     <fields>
+                        <active translate="label">
+                            <label>Enabled for Checkout</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>10</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </active>
+                        <title translate="label">
+                            <label>Title</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>20</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </title>
                         <account translate="label comment">
                             <label>Account ID</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>40</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                             <comment>Please make sure to use only digits here. No dashes are allowed.</comment>
                         </account>
-                        <active translate="label">
-                            <label>Enabled</label>
-                            <frontend_type>select</frontend_type>
-                            <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>1</sort_order>
+                        <meter_number translate="label">
+                            <label>Meter Number</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </active>
-                        <allowed_methods translate="label">
-                            <label>Allowed Methods</label>
-                            <frontend_type>multiselect</frontend_type>
-                            <source_model>usa/shipping_carrier_fedex_source_method</source_model>
-                            <sort_order>17</sort_order>
+                        </meter_number>
+                        <key translate="label">
+                            <label>Key</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>60</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                            <can_be_empty>1</can_be_empty>
-                        </allowed_methods>
-                        <free_shipping_enable translate="label">
-                            <label>Free Shipping with Minimum Order Amount</label>
+                        </key>
+                        <password translate="label">
+                            <label>Password</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>70</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </password>
+                        <sandbox_mode translate="label">
+                            <label>Sandbox Mode</label>
                             <frontend_type>select</frontend_type>
-                            <source_model>adminhtml/system_config_source_enabledisable</source_model>
-                            <sort_order>21</sort_order>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>75</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_shipping_enable>
-                        <free_shipping_subtotal translate="label">
-                            <label>Minimum Order Amount for Free Shipping</label>
-                            <frontend_type>text</frontend_type>
-                            <sort_order>22</sort_order>
+                        </sandbox_mode>
+                        <shipment_requesttype translate="label">
+                            <label>Packages Request Type</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_abstract_source_requesttype</source_model>
+                            <sort_order>77</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_shipping_subtotal>
-                        <dropoff translate="label">
-                            <label>Dropoff</label>
+                        </shipment_requesttype>
+                        <packaging translate="label">
+                            <label>Packaging</label>
                             <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_fedex_source_dropoff</source_model>
-                            <sort_order>5</sort_order>
+                            <source_model>usa/shipping_carrier_fedex_source_packaging</source_model>
+                            <sort_order>80</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </dropoff>
-                        <free_method translate="label">
-                            <label>Free Method</label>
+                        </packaging>
+                        <dropoff translate="label">
+                            <label>Dropoff</label>
                             <frontend_type>select</frontend_type>
-                            <frontend_class>free-method</frontend_class>
-                            <source_model>usa/shipping_carrier_fedex_source_freemethod</source_model>
-                            <sort_order>20</sort_order>
+                            <source_model>usa/shipping_carrier_fedex_source_dropoff</source_model>
+                            <sort_order>90</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_method>
-                        <gateway_url translate="label">
-                            <label>Gateway URL</label>
+                        </dropoff>
+                        <max_package_weight translate="label">
+                            <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>100</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </gateway_url>
+                        </max_package_weight>
                         <handling_type translate="label">
                             <label>Calculate Handling Fee</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingType</source_model>
-                            <sort_order>6</sort_order>
+                            <sort_order>110</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -470,7 +509,7 @@
                             <label>Handling Applied</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingAction</source_model>
-                            <sort_order>7</sort_order>
+                            <sort_order>120</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -478,57 +517,80 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>8</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>130</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </handling_fee>
-                        <max_package_weight translate="label">
-                            <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
-                            <frontend_type>text</frontend_type>
-                            <sort_order>5</sort_order>
+                        <residence_delivery translate="label">
+                            <label>Residential Delivery</label>
+                            <frontend_type>select</frontend_type>
+                            <sort_order>140</sort_order>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </max_package_weight>
-                        <packaging translate="label">
-                            <label>Packaging</label>
-                            <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_fedex_source_packaging</source_model>
-                            <sort_order>4</sort_order>
+                        </residence_delivery>
+                        <allowed_methods translate="label">
+                            <label>Allowed Methods</label>
+                            <frontend_type>multiselect</frontend_type>
+                            <source_model>usa/shipping_carrier_fedex_source_method</source_model>
+                            <sort_order>150</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </packaging>
-                        <sort_order translate="label">
-                            <label>Sort Order</label>
+                            <can_be_empty>1</can_be_empty>
+                        </allowed_methods>
+                        <smartpost_hubid translate="label comment">
+                            <label>Hub ID</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>100</sort_order>
+                            <sort_order>155</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </sort_order>
-                        <title translate="label">
-                            <label>Title</label>
-                            <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <comment>The field is applicable if the Smart Post method is selected.</comment>
+                        </smartpost_hubid>
+                        <free_method translate="label">
+                            <label>Free Method</label>
+                            <frontend_type>select</frontend_type>
+                            <frontend_class>free-method</frontend_class>
+                            <source_model>usa/shipping_carrier_fedex_source_freemethod</source_model>
+                            <sort_order>160</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
-                            <show_in_store>1</show_in_store>
-                        </title>
-                        <residence_delivery translate="label">
-                            <label>Residential Delivery</label>
+                            <show_in_store>0</show_in_store>
+                        </free_method>
+                        <free_shipping_enable translate="label">
+                            <label>Free Shipping with Minimum Order Amount</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>8</sort_order>
-                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <source_model>adminhtml/system_config_source_enabledisable</source_model>
+                            <sort_order>170</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </residence_delivery>
+                        </free_shipping_enable>
+                        <free_shipping_subtotal translate="label">
+                            <label>Minimum Order Amount for Free Shipping</label>
+                            <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>180</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </free_shipping_subtotal>
+                        <specificerrmsg translate="label">
+                            <label>Displayed Error Message</label>
+                            <frontend_type>textarea</frontend_type>
+                            <sort_order>190</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </specificerrmsg>
                         <sallowspecific translate="label">
                             <label>Ship to Applicable Countries</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>90</sort_order>
+                            <sort_order>200</sort_order>
                             <frontend_class>shipping-applicable-country</frontend_class>
                             <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
                             <show_in_default>1</show_in_default>
@@ -538,46 +600,46 @@
                         <specificcountry translate="label">
                             <label>Ship to Specific Countries</label>
                             <frontend_type>multiselect</frontend_type>
-                            <sort_order>91</sort_order>
+                            <sort_order>210</sort_order>
                             <source_model>adminhtml/system_config_source_country</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                             <can_be_empty>1</can_be_empty>
                         </specificcountry>
+                        <debug translate="label">
+                            <label>Debug</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>220</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </debug>
                         <showmethod translate="label">
                             <label>Show Method if Not Applicable</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>92</sort_order>
+                            <sort_order>230</sort_order>
                             <frontend_class>shipping-skip-hide</frontend_class>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </showmethod>
-                        <specificerrmsg translate="label">
-                            <label>Displayed Error Message</label>
-                            <frontend_type>textarea</frontend_type>
-                            <sort_order>80</sort_order>
-                            <show_in_default>1</show_in_default>
-                            <show_in_website>1</show_in_website>
-                            <show_in_store>1</show_in_store>
-                        </specificerrmsg>
-                        <debug translate="label">
-                            <label>Debug</label>
-                            <frontend_type>select</frontend_type>
-                            <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>92</sort_order>
+                        <sort_order translate="label">
+                            <label>Sort Order</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>240</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </debug>
+                        0</sort_order>
                     </fields>
                 </fedex>
                 <ups translate="label" module="usa">
                     <label>UPS</label>
                     <frontend_type>text</frontend_type>
-                    <sort_order>10</sort_order>
+                    <sort_order>100</sort_order>
                     <show_in_default>1</show_in_default>
                     <show_in_website>1</show_in_website>
                     <show_in_store>1</show_in_store>
@@ -586,16 +648,16 @@
                             <label>Access License Number</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </access_license_number>
                         <active translate="label">
-                            <label>Enabled</label>
+                            <label>Enabled for Checkout</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>1</sort_order>
+                            <sort_order>10</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -604,17 +666,26 @@
                             <label>Allowed Methods</label>
                             <frontend_type>multiselect</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_method</source_model>
-                            <sort_order>17</sort_order>
+                            <sort_order>170</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                             <can_be_empty>1</can_be_empty>
                         </allowed_methods>
+                        <shipment_requesttype translate="label">
+                            <label>Packages Request Type</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_abstract_source_requesttype</source_model>
+                            <sort_order>47</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </shipment_requesttype>
                         <container translate="label">
                             <label>Container</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_container</source_model>
-                            <sort_order>5</sort_order>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -623,7 +694,7 @@
                             <label>Free Shipping with Minimum Order Amount</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_enabledisable</source_model>
-                            <sort_order>21</sort_order>
+                            <sort_order>210</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -631,7 +702,8 @@
                         <free_shipping_subtotal translate="label">
                             <label>Minimum Order Amount for Free Shipping</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>22</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>220</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -640,7 +712,7 @@
                             <label>Destination Type</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_destType</source_model>
-                            <sort_order>6</sort_order>
+                            <sort_order>60</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -650,7 +722,7 @@
                             <frontend_type>select</frontend_type>
                             <frontend_class>free-method</frontend_class>
                             <source_model>usa/shipping_carrier_ups_source_freemethod</source_model>
-                            <sort_order>20</sort_order>
+                            <sort_order>200</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -658,7 +730,7 @@
                         <gateway_url translate="label">
                             <label>Gateway URL</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>4</sort_order>
+                            <sort_order>40</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -666,7 +738,7 @@
                         <gateway_xml_url translate="label">
                             <label>Gateway XML URL</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>3</sort_order>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -675,7 +747,7 @@
                             <label>Calculate Handling Fee</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingType</source_model>
-                            <sort_order>11</sort_order>
+                            <sort_order>110</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -684,7 +756,7 @@
                             <label>Handling Applied</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingAction</source_model>
-                            <sort_order>12</sort_order>
+                            <sort_order>120</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -692,7 +764,8 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>13</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>130</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -700,7 +773,8 @@
                         <max_package_weight translate="label">
                             <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>8</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>80</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -708,7 +782,8 @@
                         <min_package_weight translate="label">
                             <label>Minimum Package Weight (Please consult your shipping carrier for minimum supported shipping weight)</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>9</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>90</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -717,7 +792,7 @@
                             <label>Origin of the Shipment</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_originShipment</source_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -726,7 +801,7 @@
                             <label>Password</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -735,7 +810,7 @@
                             <label>Pickup Method</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_pickup</source_model>
-                            <sort_order>8</sort_order>
+                            <sort_order>80</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -743,15 +818,15 @@
                         <sort_order translate="label">
                             <label>Sort Order</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>100</sort_order>
+                            <sort_order>1000</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </sort_order>
+                        0</sort_order>
                         <title translate="label">
                             <label>Title</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>4</sort_order>
+                            <sort_order>40</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>1</show_in_store>
@@ -759,7 +834,7 @@
                         <tracking_xml_url translate="label">
                             <label>Tracking XML URL</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>6</sort_order>
+                            <sort_order>60</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -768,25 +843,25 @@
                             <label>UPS Type</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_type</source_model>
-                            <sort_order>2</sort_order>
+                            <sort_order>20</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </type>
-                        <unit_of_measure translate="label">
+                        <unit_of_measure translate="label comment">
                             <label>Weight Unit</label>
                             <frontend_type>select</frontend_type>
                             <source_model>usa/shipping_carrier_ups_source_unitofmeasure</source_model>
-                            <sort_order>6</sort_order>
+                            <sort_order>60</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </unit_of_measure>
                         <username translate="label">
-                            <label>UserId</label>
+                            <label>User ID</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -795,15 +870,15 @@
                             <label>Enable Negotiated Rates</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>4</sort_order>
+                            <sort_order>40</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </negotiated_active>
-                        <shipper_number translate="label">
+                        <shipper_number translate="label comment">
                             <label>Shipper Number</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>5</sort_order>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -812,7 +887,7 @@
                         <sallowspecific translate="label">
                             <label>Ship to Applicable Countries</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>90</sort_order>
+                            <sort_order>900</sort_order>
                             <frontend_class>shipping-applicable-country</frontend_class>
                             <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
                             <show_in_default>1</show_in_default>
@@ -822,7 +897,7 @@
                         <specificcountry translate="label">
                             <label>Ship to Specific Countries</label>
                             <frontend_type>multiselect</frontend_type>
-                            <sort_order>91</sort_order>
+                            <sort_order>910</sort_order>
                             <source_model>adminhtml/system_config_source_country</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -832,7 +907,7 @@
                         <showmethod translate="label">
                             <label>Show Method if Not Applicable</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>92</sort_order>
+                            <sort_order>920</sort_order>
                             <frontend_class>shipping-skip-hide</frontend_class>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
                             <show_in_default>1</show_in_default>
@@ -842,7 +917,7 @@
                         <specificerrmsg translate="label">
                             <label>Displayed Error Message</label>
                             <frontend_type>textarea</frontend_type>
-                            <sort_order>80</sort_order>
+                            <sort_order>800</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>1</show_in_store>
@@ -851,8 +926,8 @@
                             <label>Mode</label>
                             <comment>Enables/Disables SSL verification of Magento server by UPS.</comment>
                             <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_ups_source_mode</source_model>
-                            <sort_order>3</sort_order>
+                            <source_model>usa/shipping_carrier_abstract_source_mode</source_model>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -861,7 +936,7 @@
                             <label>Debug</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>92</sort_order>
+                            <sort_order>920</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -871,79 +946,157 @@
                 <usps translate="label" module="usa">
                     <label>USPS</label>
                     <frontend_type>text</frontend_type>
-                    <sort_order>11</sort_order>
+                    <sort_order>110</sort_order>
                     <show_in_default>1</show_in_default>
                     <show_in_website>1</show_in_website>
                     <show_in_store>1</show_in_store>
                     <fields>
                         <active translate="label">
-                            <label>Enabled</label>
+                            <label>Enabled for Checkout</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>1</sort_order>
+                            <sort_order>10</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </active>
-                        <allowed_methods translate="label">
-                            <label>Allowed Methods</label>
-                            <frontend_type>multiselect</frontend_type>
-                            <source_model>usa/shipping_carrier_usps_source_method</source_model>
-                            <sort_order>17</sort_order>
+                        <gateway_url translate="label">
+                            <label>Gateway URL</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>20</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                            <can_be_empty>1</can_be_empty>
-                        </allowed_methods>
-                        <container translate="label">
-                            <label>Container</label>
-                            <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_usps_source_container</source_model>
-                            <sort_order>4</sort_order>
+                        </gateway_url>
+                        <gateway_secure_url translate="label">
+                            <label>Secure Gateway URL</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>30</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </container>
-                        <free_shipping_enable translate="label">
-                            <label>Free Shipping with Minimum Order Amount</label>
-                            <frontend_type>select</frontend_type>
-                            <source_model>adminhtml/system_config_source_enabledisable</source_model>
-                            <sort_order>21</sort_order>
+                        </gateway_secure_url>
+                        <title translate="label">
+                            <label>Title</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>40</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </title>
+                        <userid translate="label">
+                            <label>User ID</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_shipping_enable>
-                        <free_shipping_subtotal translate="label">
-                            <label>Minimum Order Amount for Free Shipping</label>
-                            <frontend_type>text</frontend_type>
-                            <sort_order>22</sort_order>
+                        </userid>
+                        <password translate="label">
+                            <label>Password</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>53</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_shipping_subtotal>
-                        <free_method translate="label">
-                            <label>Free Method</label>
+                        </password>
+                        <mode translate="label">
+                            <label>Mode</label>
                             <frontend_type>select</frontend_type>
-                            <frontend_class>free-method</frontend_class>
-                            <source_model>usa/shipping_carrier_usps_source_freemethod</source_model>
-                            <sort_order>20</sort_order>
+                            <sort_order>54</sort_order>
+                            <source_model>usa/shipping_carrier_abstract_source_mode</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </free_method>
-                        <gateway_url translate="label">
-                            <label>Gateway URL</label>
+                        </mode>
+                        <shipment_requesttype translate="label">
+                            <label>Packages Request Type</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_abstract_source_requesttype</source_model>
+                            <sort_order>55</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </shipment_requesttype>
+                        <container translate="label">
+                            <label>Container</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_usps_source_container</source_model>
+                            <sort_order>60</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </container>
+                        <size translate="label">
+                            <label>Size</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_usps_source_size</source_model>
+                            <sort_order>70</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </size>
+                        <width translate="label">
+                            <label>Width</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <sort_order>73</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </gateway_url>
+                            <depends><size>LARGE</size></depends>
+                        </width>
+                        <length translate="label">
+                            <label>Length</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>72</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><size>LARGE</size></depends>
+                        </length>
+                        <height translate="label">
+                            <label>Height</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>74</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><size>LARGE</size></depends>
+                        </height>
+                        <girth translate="label">
+                            <label>Girth</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>76</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><size>LARGE</size></depends>
+                        </girth>
+                        <machinable translate="label">
+                            <label>Machinable</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_usps_source_machinable</source_model>
+                            <sort_order>80</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </machinable>
+                        <max_package_weight translate="label">
+                            <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
+                            <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>90</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </max_package_weight>
                         <handling_type translate="label">
                             <label>Calculate Handling Fee</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingType</source_model>
-                            <sort_order>11</sort_order>
+                            <sort_order>100</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -952,7 +1105,7 @@
                             <label>Handling Applied</label>
                             <frontend_type>select</frontend_type>
                             <source_model>shipping/source_handlingAction</source_model>
-                            <sort_order>12</sort_order>
+                            <sort_order>110</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
@@ -960,66 +1113,344 @@
                         <handling_fee translate="label">
                             <label>Handling Fee</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>13</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>120</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </handling_fee>
-                        <max_package_weight translate="label">
-                            <label>Maximum Package Weight (Please consult your shipping carrier for maximum supported shipping weight)</label>
+                        <allowed_methods translate="label">
+                            <label>Allowed Methods</label>
+                            <frontend_type>multiselect</frontend_type>
+                            <source_model>usa/shipping_carrier_usps_source_method</source_model>
+                            <sort_order>130</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <can_be_empty>1</can_be_empty>
+                        </allowed_methods>
+                        <free_method translate="label">
+                            <label>Free Method</label>
+                            <frontend_type>select</frontend_type>
+                            <frontend_class>free-method</frontend_class>
+                            <source_model>usa/shipping_carrier_usps_source_freemethod</source_model>
+                            <sort_order>140</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </free_method>
+                        <free_shipping_enable translate="label">
+                            <label>Free Shipping with Minimum Order Amount</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_enabledisable</source_model>
+                            <sort_order>1500</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </free_shipping_enable>
+                        <free_shipping_subtotal translate="label">
+                            <label>Minimum Order Amount for Free Shipping</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>8</sort_order>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>160</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </max_package_weight>
-                        <machinable translate="label">
-                            <label>Machinable</label>
+                        </free_shipping_subtotal>
+                        <specificerrmsg translate="label">
+                            <label>Displayed Error Message</label>
+                            <frontend_type>textarea</frontend_type>
+                            <sort_order>170</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </specificerrmsg>
+                        <sallowspecific translate="label">
+                            <label>Ship to Applicable Countries</label>
                             <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_usps_source_machinable</source_model>
-                            <sort_order>6</sort_order>
+                            <sort_order>180</sort_order>
+                            <frontend_class>shipping-applicable-country</frontend_class>
+                            <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </machinable>
-                        <size translate="label">
-                            <label>Size</label>
+                        </sallowspecific>
+                        <specificcountry translate="label">
+                            <label>Ship to Specific Countries</label>
+                            <frontend_type>multiselect</frontend_type>
+                            <sort_order>190</sort_order>
+                            <source_model>adminhtml/system_config_source_country</source_model>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <can_be_empty>1</can_be_empty>
+                        </specificcountry>
+                        <debug translate="label">
+                            <label>Debug</label>
                             <frontend_type>select</frontend_type>
-                            <source_model>usa/shipping_carrier_usps_source_size</source_model>
-                            <sort_order>5</sort_order>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>200</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </size>
+                        </debug>
+                        <showmethod translate="label">
+                            <label>Show Method if Not Applicable</label>
+                            <frontend_type>select</frontend_type>
+                            <sort_order>210</sort_order>
+                            <frontend_class>shipping-skip-hide</frontend_class>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </showmethod>
                         <sort_order translate="label">
                             <label>Sort Order</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>100</sort_order>
+                            <sort_order>220</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </sort_order>
+                        0</sort_order>
+                    </fields>
+                </usps>
+                <dhlint translate="label" module="usa">
+                    <label>DHL</label>
+                    <frontend_type>text</frontend_type>
+                    <sort_order>140</sort_order>
+                    <show_in_default>1</show_in_default>
+                    <show_in_website>1</show_in_website>
+                    <show_in_store>1</show_in_store>
+                    <fields>
+                        <active translate="label">
+                            <label>Enabled for Checkout</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>10</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </active>
+                        <gateway_url translate="label">
+                            <label>Gateway URL</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>20</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </gateway_url>
                         <title translate="label">
                             <label>Title</label>
                             <frontend_type>text</frontend_type>
-                            <sort_order>2</sort_order>
+                            <sort_order>20</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>1</show_in_store>
                         </title>
-                        <userid translate="label">
-                            <label>User ID</label>
+                        <id translate="label">
+                            <label>Access ID</label>
                             <frontend_type>obscure</frontend_type>
                             <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
-                            <sort_order>3</sort_order>
+                            <sort_order>50</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
-                        </userid>
+                        </id>
+                        <password translate="label">
+                            <label>Password</label>
+                            <frontend_type>obscure</frontend_type>
+                            <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
+                            <sort_order>60</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </password>
+                        <account translate="label">
+                            <label>Account Number</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>70</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </account>
+                        <content_type translate="label">
+                            <label>Content Type</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_dhl_international_source_contenttype</source_model>
+                            <sort_order>90</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </content_type>
+                        <handling_type translate="label">
+                            <label>Calculate Handling Fee</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>shipping/source_handlingType</source_model>
+                            <sort_order>100</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </handling_type>
+                        <handling_action translate="label comment">
+                            <label>Handling Applied</label>
+                            <comment>"Per Order" allows single handling fee for entire order. "Per Package" allows individual  handling fee for each package.</comment>
+                            <frontend_type>select</frontend_type>
+                            <source_model>shipping/source_handlingAction</source_model>
+                            <sort_order>110</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </handling_action>
+                        <handling_fee translate="label">
+                            <label>Handling Fee</label>
+                            <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>120</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </handling_fee>
+                        <divide_order_weight translate="label comment">
+                            <label>Divide Order Weight</label>
+                            <comment>Allows breaking total order weight into smaller pieces if it exeeds 70 kg to ensure accurate calculation of shipping charges.</comment>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_yesno</source_model>
+                            <sort_order>130</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </divide_order_weight>
+                        <unit_of_measure translate="label">
+                            <label>Weight Unit</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_unitofmeasure</source_model>
+                            <frontend_model>usa/adminhtml_dhl_unitofmeasure</frontend_model>
+                            <sort_order>140</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </unit_of_measure>
+                        <size translate="label">
+                            <label>Size</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_size</source_model>
+                            <sort_order>150</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </size>
+                        <height translate="label">
+                            <label>Height</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>151</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                            <depends><size>1</size></depends>
+                        </height>
+                        <depth translate="label">
+                            <label>Depth</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>152</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                            <depends><size>1</size></depends>
+                        </depth>
+                        <width translate="label">
+                            <label>Width</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>153</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                            <depends><size>1</size></depends>
+                        </width>
+                        <doc_methods translate="label">
+                            <label>Allowed Methods</label>
+                            <frontend_type>multiselect</frontend_type>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_doc</source_model>
+                            <sort_order>170</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><content_type>D</content_type></depends>
+                        </doc_methods>
+                        <nondoc_methods translate="label">
+                            <label>Allowed Methods</label>
+                            <frontend_type>multiselect</frontend_type>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_nondoc</source_model>
+                            <sort_order>170</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><content_type>N</content_type></depends>
+                        </nondoc_methods>
+                        <ready_time>
+                            <label>Ready time</label>
+                            <comment>Package ready time after order submission (in hours)</comment>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>180</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </ready_time>
+                        <specificerrmsg translate="label">
+                            <label>Displayed Error Message</label>
+                            <frontend_type>textarea</frontend_type>
+                            <sort_order>800</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>1</show_in_store>
+                        </specificerrmsg>
+                        <!--
+                        If the free_shipping_enable flag enable, the system will check free_shipping_subtotal to give free shipping
+                        otherwise will use shopping cart price rule behaviour
+                        -->
+                        <free_method_doc translate="label">
+                            <label>Free Method</label>
+                            <frontend_type>select</frontend_type>
+                            <frontend_class>free-method</frontend_class>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_freedoc</source_model>
+                            <sort_order>1200</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><content_type>D</content_type></depends>
+                        </free_method_doc>
+                        <free_method_nondoc translate="label">
+                            <label>Free Method</label>
+                            <frontend_type>select</frontend_type>
+                            <frontend_class>free-method</frontend_class>
+                            <source_model>usa/shipping_carrier_dhl_international_source_method_freenondoc</source_model>
+                            <sort_order>1200</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                            <depends><content_type>N</content_type></depends>
+                        </free_method_nondoc>
+                        <free_shipping_enable translate="label">
+                            <label>Free Shipping with Minimum Order Amount</label>
+                            <frontend_type>select</frontend_type>
+                            <source_model>adminhtml/system_config_source_enabledisable</source_model>
+                            <sort_order>1210</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </free_shipping_enable>
+                        <free_shipping_subtotal translate="label">
+                            <label>Minimum Order Amount for Free Shipping</label>
+                            <frontend_type>text</frontend_type>
+                            <validate>validate-number validate-zero-or-greater</validate>
+                            <sort_order>1220</sort_order>
+                            <show_in_default>1</show_in_default>
+                            <show_in_website>1</show_in_website>
+                            <show_in_store>0</show_in_store>
+                        </free_shipping_subtotal>
                         <sallowspecific translate="label">
                             <label>Ship to Applicable Countries</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>90</sort_order>
+                            <sort_order>1900</sort_order>
                             <frontend_class>shipping-applicable-country</frontend_class>
                             <source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
                             <show_in_default>1</show_in_default>
@@ -1029,7 +1460,7 @@
                         <specificcountry translate="label">
                             <label>Ship to Specific Countries</label>
                             <frontend_type>multiselect</frontend_type>
-                            <sort_order>91</sort_order>
+                            <sort_order>1910</sort_order>
                             <source_model>adminhtml/system_config_source_country</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
@@ -1039,32 +1470,32 @@
                         <showmethod translate="label">
                             <label>Show Method if Not Applicable</label>
                             <frontend_type>select</frontend_type>
-                            <sort_order>92</sort_order>
+                            <sort_order>1940</sort_order>
                             <frontend_class>shipping-skip-hide</frontend_class>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </showmethod>
-                        <specificerrmsg translate="label">
-                            <label>Displayed Error Message</label>
-                            <frontend_type>textarea</frontend_type>
-                            <sort_order>80</sort_order>
+                        <sort_order translate="label">
+                            <label>Sort Order</label>
+                            <frontend_type>text</frontend_type>
+                            <sort_order>2000</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
-                            <show_in_store>1</show_in_store>
-                        </specificerrmsg>
+                            <show_in_store>0</show_in_store>
+                        </sort_order>
                         <debug translate="label">
                             <label>Debug</label>
                             <frontend_type>select</frontend_type>
                             <source_model>adminhtml/system_config_source_yesno</source_model>
-                            <sort_order>92</sort_order>
+                            <sort_order>1950</sort_order>
                             <show_in_default>1</show_in_default>
                             <show_in_website>1</show_in_website>
                             <show_in_store>0</show_in_store>
                         </debug>
                     </fields>
-                </usps>
+                </dhlint>
             </groups>
         </carriers>
     </sections>
diff --git app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v10.wsdl app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v10.wsdl
new file mode 100644
index 0000000..d7e635a
--- /dev/null
+++ app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v10.wsdl
@@ -0,0 +1,4870 @@
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/rate/v10" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fedex.com/ws/rate/v10" name="RateServiceDefinitions">
+  <types>
+    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/rate/v10">
+      <xs:element name="RateReply" type="ns:RateReply"/>
+      <xs:element name="RateRequest" type="ns:RateRequest"/>
+      <xs:complexType name="AdditionalLabelsDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies additional labels to be produced. All required labels for shipments will be produced without the need to request additional labels. These are only available as thermal labels.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:AdditionalLabelsType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of additional labels to return.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of this type label to return</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="AdditionalLabelsType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of additional labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="CUSTOMS"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="MANIFEST"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Address">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StreetLines" type="xs:string" minOccurs="0" maxOccurs="2">
+            <xs:annotation>
+              <xs:documentation>Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="City" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of city, town, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrbanizationCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relevant only to addresses in Puerto Rico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The two-letter code used to identify a country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Residential" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this address residential (as opposed to commercial).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="B13AFilingOptionType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies which filing option is being exercised by the customer.
+            Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FILED_ELECTRONICALLY"/>
+          <xs:enumeration value="MANUALLY_ATTACHED"/>
+          <xs:enumeration value="NOT_REQUIRED"/>
+          <xs:enumeration value="SUMMARY_REPORTING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="BarcodeSymbologyType">
+        <xs:annotation>
+          <xs:documentation>Identification of the type of barcode (symbology) used on FedEx documents and labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CODABAR"/>
+          <xs:enumeration value="CODE128"/>
+          <xs:enumeration value="CODE128B"/>
+          <xs:enumeration value="CODE128C"/>
+          <xs:enumeration value="CODE39"/>
+          <xs:enumeration value="CODE93"/>
+          <xs:enumeration value="I2OF5"/>
+          <xs:enumeration value="MANUAL"/>
+          <xs:enumeration value="PDF417"/>
+          <xs:enumeration value="POSTNET"/>
+          <xs:enumeration value="UCC128"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CarrierCodeType">
+        <xs:annotation>
+          <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FDXC"/>
+          <xs:enumeration value="FDXE"/>
+          <xs:enumeration value="FDXG"/>
+          <xs:enumeration value="FXCC"/>
+          <xs:enumeration value="FXFR"/>
+          <xs:enumeration value="FXSP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Certificate of Origin ( e.g. whether or not to include the instructions, image type, etc ...)</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentFormat" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ChargeBasisLevelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CURRENT_PACKAGE"/>
+          <xs:enumeration value="SUM_OF_PACKAGES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ClearanceBrokerageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of brokerage to be applied to a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_INCLUSIVE"/>
+          <xs:enumeration value="BROKER_INCLUSIVE_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_SELECT"/>
+          <xs:enumeration value="BROKER_SELECT_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_UNASSIGNED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ClientDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for the client submitting a transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The FedEx account number associated with this transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MeterNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This number is assigned by FedEx and identifies the unique device from which the request is originating</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntegratorId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in transactions which require identification of the Fed Ex Office integrator.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Region" type="ns:ExpressRegionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the region from which the transaction is submitted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to be used for human-readable Notification.localizedMessages in responses to the request containing this ClientDetail object. Different requests from the same client may contain different Localization data. (Contrast with TransactionDetail.localization, which governs data payload language/translation.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodAddTransportationChargeBasisType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COD_SURCHARGE"/>
+          <xs:enumeration value="NET_CHARGE"/>
+          <xs:enumeration value="NET_FREIGHT"/>
+          <xs:enumeration value="TOTAL_CUSTOMER_CHARGE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodAddTransportationChargesDetail">
+        <xs:sequence>
+          <xs:element name="RateTypeBasis" type="ns:RateTypeBasisType" minOccurs="0"/>
+          <xs:element name="ChargeBasis" type="ns:CodAddTransportationChargeBasisType" minOccurs="0"/>
+          <xs:element name="ChargeBasisLevel" type="ns:ChargeBasisLevelType" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodCollectionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of funds FedEx should collect upon shipment delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ANY"/>
+          <xs:enumeration value="CASH"/>
+          <xs:enumeration value="GUARANTEED_FUNDS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CodCollectionAmount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="AddTransportationChargesDetail" type="ns:CodAddTransportationChargesDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the details of the charges are to be added to the COD collect amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectionType" type="ns:CodCollectionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of funds FedEx should collect upon package delivery</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For Express this is the descriptive data that is used for the recipient of the FedEx Letter containing the COD payment. For Ground this is the descriptive data for the party to receive the payment that prints the COD receipt.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceIndicator" type="ns:CodReturnReferenceIndicatorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodReturnReferenceIndicatorType">
+        <xs:annotation>
+          <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INVOICE"/>
+          <xs:enumeration value="PO"/>
+          <xs:enumeration value="REFERENCE"/>
+          <xs:enumeration value="TRACKING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CommercialInvoice">
+        <xs:annotation>
+          <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through the FedEx Systems. Customers are responsible for printing their own Commercial Invoice.If you would likeFedEx to generate a Commercial Invoice and transmit it to Customs. for clearance purposes, you need to specify that in the ShippingDocumentSpecification element. If you would like a copy of the Commercial Invoice that FedEx generated returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies element. Commercial Invoice support consists of maximum of 99 commodity line items.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Comments" type="xs:string" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>Any comments that need to be communicated about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any freight charges that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TaxesOrMiscellaneousCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any taxes or miscellaneous charges(other than Freight charges or Insurance charges) that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TaxesOrMiscellaneousChargeType" type="ns:TaxesOrMiscellaneousChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies which kind of charge is being recorded in the preceding field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any packing costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any handling costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclarationStatment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentTerms" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerInvoiceNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer assigned Invoice number</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginatorName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of the International Expert that completed the Commercial Invoice different from Sender.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsOfSale" type="ns:TermsOfSaleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for dutiable international Express or Ground shipment. This field is not applicable to an international PIB(document) or a non-document which does not require a Commercial Invoice</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoiceDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Commercial Invoice( e.g. image type) Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of a customer supplied image to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommitDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the transit time and delivery commitment date and time.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CommodityName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The Commodity applicable to this commitment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx service type applicable to this commitment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Shows the specific combination of service options combined with the service type that produced this committment in the set returned to the caller.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedSubOptions" type="ns:ServiceSubOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Supporting detail for applied options identified in preceding field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>THe delivery commitment date/time. Express Only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of transit days; applies to Ground and LTL Freight; indicates minimum transit time for SmartPost.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum number of transit days, for SmartPost shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The service area code for the destination of this shipment. Express only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address of the broker to be used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx location identifier for the broker.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerCommitTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment date/time the shipment will arrive at the border.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerCommitDayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week the shipment will arrive at the border.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerToDestinationDays" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of days it will take for the shipment to make it from broker to destination</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProofOfDeliveryDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment date for shipment served by GSP (Global Service Provider)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProofOfDeliveryDayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week for the shipment served by GSP (Global Service Provider)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitMessages" type="ns:Notification" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Messages concerning the ability to provide an accurate delivery commitment on an International commit quote. These could be messages providing information about why a commitment could not be returned or a successful message such as "REQUEST COMPLETED"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryMessages" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Messages concerning the delivery commitment on an International commit quote such as "0:00 A.M. IF NO CUSTOMS DELAY"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DelayDetails" type="ns:DelayDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about why a shipment delivery is delayed and at what level (country/service etc.).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0"/>
+          <xs:element name="RequiredDocuments" type="ns:RequiredShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Required documentation for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCommitDetail" type="ns:FreightCommitDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight origin and destination city center information and total distance between origin and destination city centers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CommitmentDelayType">
+        <xs:annotation>
+          <xs:documentation>The type of delay this shipment will encounter.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HOLIDAY"/>
+          <xs:enumeration value="NON_WORKDAY"/>
+          <xs:enumeration value="NO_CITY_DELIVERY"/>
+          <xs:enumeration value="NO_HOLD_AT_LOCATION"/>
+          <xs:enumeration value="NO_LOCATION_DELIVERY"/>
+          <xs:enumeration value="NO_SERVICE_AREA_DELIVERY"/>
+          <xs:enumeration value="NO_SERVICE_AREA_SPECIAL_SERVICE_DELIVERY"/>
+          <xs:enumeration value="NO_SPECIAL_SERVICE_DELIVERY"/>
+          <xs:enumeration value="NO_ZIP_DELIVERY"/>
+          <xs:enumeration value="WEEKEND"/>
+          <xs:enumeration value="WEEKEND_SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Commodity">
+        <xs:annotation>
+          <xs:documentation>
+            For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+            If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NumberOfPieces" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Complete and accurate description of this commodity.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>450</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryOfManufacture" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Country code where commodity contents were produced or manufactured in their final form.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Unique alpha/numeric representing commodity item.
+                At least one occurrence is required for US Export shipments if the Customs Value is greater than $2500 or if a valid US Export license is required.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of this commodity. 1 explicit decimal position. Max length 11 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of a commodity in total number of pieces for this line item. Max length is 9</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QuantityUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unit of measure used to express the quantity of this commodity line item.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalMeasures" type="ns:Measure" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains only additional quantitative information other than weight and quantity to calculate duties and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UnitPrice" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value of each unit in Quantity. Six explicit decimal positions, Max length 18 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total customs value for this line item.
+                It should equal the commodity unit quantity times commodity unit value.
+                Six explicit decimal positions, max length 18 including decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExciseConditions" type="ns:EdtExciseCondition" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional characteristic of commodity used to calculate duties and taxes</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable to US export shipping only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseExpirationDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="CIMarksAndNumbers" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                An identifying mark or number used on the packaging of a shipment to help customers identify a particular shipment.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaDetail" type="ns:NaftaCommodityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All data required for this commodity in NAFTA Certificate of Origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ConfigurableLabelReferenceEntry">
+        <xs:annotation>
+          <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>1 of 12 possible zones to  position data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifiying text for the data in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A reference to a field in either the request or reply to print in this zone following the header.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A literal value to print after the header in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Contact">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a point-of-contact person.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ContactId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Client provided identifier corresponding to this contact information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's name.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Title" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's title.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompanyName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the company this contact is associated with.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneExtension" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone extension associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagerNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the pager number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the fax number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the email address associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContactAndAddress">
+        <xs:sequence>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="0"/>
+          <xs:element name="Address" type="ns:Address" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContentRecord">
+        <xs:sequence>
+          <xs:element name="PartNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="ItemNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="ReceivedQuantity" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CurrencyExchangeRate">
+        <xs:annotation>
+          <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FromCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the original (converted FROM) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntoCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the final (converted INTO) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rate" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Multiplier used to convert fromCurrency units to intoCurrency units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomDeliveryWindowDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomDeliveryWindowType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of custom delivery being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time by which delivery is requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Range of dates for custom delivery request; only used if type is BETWEEN.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for custom delivery request; only used for types of ON, BETWEEN, or AFTER.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomDeliveryWindowType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AFTER"/>
+          <xs:enumeration value="BEFORE"/>
+          <xs:enumeration value="BETWEEN"/>
+          <xs:enumeration value="ON"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomDocumentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a custom-specified document, either at shipment or package level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Common information controlling document production.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecificationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the formatting specification used to construct this custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBarcodeEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified barcode symbology.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarHeight" type="xs:int" minOccurs="0"/>
+          <xs:element name="ThinBarWidth" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Width of thinnest bar/space element in the barcode.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BarcodeSymbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBoxEntry">
+        <xs:annotation>
+          <xs:documentation>Solid (filled) rectangular area on label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TopLeftCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="BottomRightCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomLabelCoordinateUnits">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MILS"/>
+          <xs:enumeration value="PIXELS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomLabelDetail">
+        <xs:sequence>
+          <xs:element name="CoordinateUnits" type="ns:CustomLabelCoordinateUnits" minOccurs="0"/>
+          <xs:element name="TextEntries" type="ns:CustomLabelTextEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="GraphicEntries" type="ns:CustomLabelGraphicEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BoxEntries" type="ns:CustomLabelBoxEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarcodeEntries" type="ns:CustomLabelBarcodeEntry" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelGraphicEntry">
+        <xs:annotation>
+          <xs:documentation>Image to be included from printer's memory, or from a local file for offline clients.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="PrinterGraphicId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific index of graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FileGraphicFullName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-qualified path and file name for graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelPosition">
+        <xs:sequence>
+          <xs:element name="X" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Horizontal position, relative to left edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Y" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Vertical position, relative to top edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelTextEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified printer font (for thermal labels) or generic font/size (for plain paper labels).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ThermalFontId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific font name for use with thermal printer labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font name for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontSize" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font size for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomerImageUsage">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomerImageUsageType" minOccurs="0"/>
+          <xs:element name="Id" type="ns:ImageId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerImageUsageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LETTER_HEAD"/>
+          <xs:enumeration value="SIGNATURE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerReference">
+        <xs:annotation>
+          <xs:documentation>Reference information to be associated with this package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerReferenceType" type="ns:CustomerReferenceType" minOccurs="1"/>
+          <xs:element name="Value" type="xs:string" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerReferenceType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BILL_OF_LADING"/>
+          <xs:enumeration value="CUSTOMER_REFERENCE"/>
+          <xs:enumeration value="DEPARTMENT_NUMBER"/>
+          <xs:enumeration value="ELECTRONIC_PRODUCT_CODE"/>
+          <xs:enumeration value="INTRACOUNTRY_REGULATORY_REFERENCE"/>
+          <xs:enumeration value="INVOICE_NUMBER"/>
+          <xs:enumeration value="PACKING_SLIP_NUMBER"/>
+          <xs:enumeration value="P_O_NUMBER"/>
+          <xs:enumeration value="SHIPMENT_INTEGRITY"/>
+          <xs:enumeration value="STORE_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerSpecifiedLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomContent" type="ns:CustomLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defines any custom content to print on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfigurableReferenceEntries" type="ns:ConfigurableLabelReferenceEntry" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaskedData" type="ns:LabelMaskableDataType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls which data/sections will be suppressed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SecondaryBarcode" type="ns:SecondaryBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For customers producing their own Ground labels, this field specifies which secondary barcode will be printed on the label; so that the primary barcode produced by FedEx has the corect SCNC.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsAndConditionsLocalization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to use when printing the terms and conditions on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalLabels" type="ns:AdditionalLabelsDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls the number of additional copies of supplemental labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirWaybillSuppressionCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This value reduces the default quantity of destination/consignee air waybill labels. A value of zero indicates no change to default. A minimum of one copy will always be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomsClearanceDetail">
+        <xs:sequence>
+          <xs:element name="Broker" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Descriptive data identifying the Broker responsible for the shipmet.
+                Required if BROKER_SELECT_OPTION is requested in Special Services.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClearanceBrokerage" type="ns:ClearanceBrokerageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Interacts both with properties of the shipment and contractual relationship with the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImporterOfRecord" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Applicable only for Commercial Invoice. If the consignee and importer are not the same, the Following importer fields are required.
+                Importer/Contact/PersonName
+                Importer/Contact/CompanyName
+                Importer/Contact/PhoneNumber
+                Importer/Address/StreetLine[0]
+                Importer/Address/City
+                Importer/Address/StateOrProvinceCode - if Importer Country Code is US or CA
+                Importer/Address/PostalCode - if Importer Country Code is US or CA
+                Importer/Address/CountryCode
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientCustomsId" type="ns:RecipientCustomsId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates how payment of duties for the shipment will be made.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this shipment contains documents only or non-documents.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total customs value for the shipment. This total will rrepresent th esum of the values of all commodities, and may include freight, miscellaneous, and insurance charges. Must contain 2 explicit decimal positions with a max length of 17 including the decimal. For Express International MPS, the Total Customs Value is in the master transaction and all child transactions</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightOnValue" type="ns:FreightOnValueType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InsuranceCharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Documents amount paid to third party for coverage of shipment content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PartiesToTransactionAreRelated" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="CommercialInvoice" type="ns:CommercialInvoice" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through FedEx System. Customers are responsible for printing their own Commercial Invoice. Commercial Invoice support consists of a maximum of 20 commodity line items.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Commodities" type="ns:Commodity" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>
+                For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+                If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportDetail" type="ns:ExportDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RegulatoryControls" type="ns:RegulatoryControlType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DangerousGoodsAccessibilityType">
+        <xs:annotation>
+          <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCESSIBLE"/>
+          <xs:enumeration value="INACCESSIBLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DangerousGoodsDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for a FedEx shipment containing dangerous goods (hazardous materials).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Accessibility" type="ns:DangerousGoodsAccessibilityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CargoAircraftOnly" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipment is packaged/documented for movement ONLY on cargo aircraft.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which kinds of hazardous content are in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:HazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:HazardousCommodityPackagingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging of this commodity, suitable for use on OP-900 and OP-950 forms.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Telephone number to use for contact in the event of an emergency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Offeror" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Offeror's name or contract number, per DOT regulation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DateRange">
+        <xs:sequence>
+          <xs:element name="Begins" type="xs:date" minOccurs="1"/>
+          <xs:element name="Ends" type="xs:date" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DayOfWeekType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FRI"/>
+          <xs:enumeration value="MON"/>
+          <xs:enumeration value="SAT"/>
+          <xs:enumeration value="SUN"/>
+          <xs:enumeration value="THU"/>
+          <xs:enumeration value="TUE"/>
+          <xs:enumeration value="WED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DelayDetail">
+        <xs:annotation>
+          <xs:documentation>Information about why a shipment delivery is delayed and at what level( country/service etc.).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The date of the delay</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DayOfWeek" type="ns:DayOfWeekType" minOccurs="0"/>
+          <xs:element name="Level" type="ns:DelayLevelType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The attribute of the shipment that caused the delay(e.g. Country, City, LocationId, Zip, service area, special handling )</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Point" type="ns:DelayPointType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The point where the delay is occurring (e.g. Origin, Destination, Broker location)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Type" type="ns:CommitmentDelayType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the delay (e.g. holiday, weekend, etc.).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name of the holiday in that country that is causing the delay.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DelayLevelType">
+        <xs:annotation>
+          <xs:documentation>The attribute of the shipment that caused the delay(e.g. Country, City, LocationId, Zip, service area, special handling )</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CITY"/>
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="LOCATION"/>
+          <xs:enumeration value="POSTAL_CODE"/>
+          <xs:enumeration value="SERVICE_AREA"/>
+          <xs:enumeration value="SERVICE_AREA_SPECIAL_SERVICE"/>
+          <xs:enumeration value="SPECIAL_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="DelayPointType">
+        <xs:annotation>
+          <xs:documentation>The point where the delay is occurring ( e.g. Origin, Destination, Broker location).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="ORIGIN_DESTINATION_PAIR"/>
+          <xs:enumeration value="PROOF_OF_DELIVERY_POINT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DestinationControlDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to complete the Destionation Control Statement for US exports.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StatementTypes" type="ns:DestinationControlStatementType" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="DestinationCountries" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Comma-separated list of up to four country codes, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EndUser" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of end user, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DestinationControlStatementType">
+        <xs:annotation>
+          <xs:documentation>Used to indicate whether the Destination Control Statement is of type Department of Commerce, Department of State or both.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DEPARTMENT_OF_COMMERCE"/>
+          <xs:enumeration value="DEPARTMENT_OF_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Dimensions">
+        <xs:annotation>
+          <xs:documentation>The dimensions of this package and the unit type used for the measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Length" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Width" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Height" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Distance">
+        <xs:annotation>
+          <xs:documentation>Driving or other transportation distances, distinct from dimension measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the distance quantity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:DistanceUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure for the distance value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DistanceUnits">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KM"/>
+          <xs:enumeration value="MI"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContent">
+        <xs:sequence>
+          <xs:element name="DocTabContentType" type="ns:DocTabContentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType options available.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Zone001" type="ns:DocTabContentZone001" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to ZONE001 to specify additional Zone details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcoded" type="ns:DocTabContentBarcoded" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to BARCODED to specify additional BarCoded details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContentBarcoded">
+        <xs:sequence>
+          <xs:element name="Symbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+          <xs:element name="Specification" type="ns:DocTabZoneSpecification" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabContentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BARCODED"/>
+          <xs:enumeration value="MINIMUM"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="ZONE001"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContentZone001">
+        <xs:sequence>
+          <xs:element name="DocTabZoneSpecifications" type="ns:DocTabZoneSpecification" minOccurs="1" maxOccurs="12"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabZoneJustificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="RIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabZoneSpecification">
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Zone number can be between 1 and 12.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Header value on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Reference path to the element in the request/reply whose value should be printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form-text to be printed in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Justification" type="ns:DocTabZoneJustificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Justification for the text printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DropoffType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_SERVICE_CENTER"/>
+          <xs:enumeration value="DROP_BOX"/>
+          <xs:enumeration value="REGULAR_PICKUP"/>
+          <xs:enumeration value="REQUEST_COURIER"/>
+          <xs:enumeration value="STATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Specific information about the delivery of the email and options for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="NotificationEMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Email address to send the URL to.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message to be inserted into the email.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EMailNotificationDetail">
+        <xs:annotation>
+          <xs:documentation>Information describing email notifications that will be sent in relation to events that occur during package movement</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PersonalMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message that will be included in the email notifications</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipients" type="ns:EMailNotificationRecipient" minOccurs="0" maxOccurs="6">
+            <xs:annotation>
+              <xs:documentation>Information describing the destination of the email, format of the email and events to be notified on</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationEventType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ON_DELIVERY"/>
+          <xs:enumeration value="ON_EXCEPTION"/>
+          <xs:enumeration value="ON_SHIPMENT"/>
+          <xs:enumeration value="ON_TENDER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="EMailNotificationFormatType">
+        <xs:annotation>
+          <xs:documentation>The format of the email</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HTML"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="WIRELESS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationRecipient">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a FedEx email notification recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailNotificationRecipientType" type="ns:EMailNotificationRecipientType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship this email recipient has to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The email address to send the notification to</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationEventsRequested" type="ns:EMailNotificationEventType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of email notifications being requested for this recipient.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Format" type="ns:EMailNotificationFormatType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The format of the email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language/locale to be used in this email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationRecipientType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid email notification recipient types. For SHIPPER, RECIPIENT and BROKER the email address asssociated with their definitions will be used, any email address sent with the email notification for these three email notification recipient types will be ignored.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtCommodityTax">
+        <xs:sequence>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0"/>
+          <xs:element name="Taxes" type="ns:EdtTaxDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EdtExciseCondition">
+        <xs:sequence>
+          <xs:element name="Category" type="xs:string" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-declared value, with data type and legal values depending on excise condition, used in defining the taxable value of the item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtRequestType">
+        <xs:annotation>
+          <xs:documentation>Specifies the types of Estimated Duties and Taxes to be included in a rate quotation for an international shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ALL"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtTaxDetail">
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:EdtTaxType" minOccurs="0"/>
+          <xs:element name="EffectiveDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="TaxableValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Formula" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtTaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_TAXES"/>
+          <xs:enumeration value="CONSULAR_INVOICE_FEE"/>
+          <xs:enumeration value="CUSTOMS_SURCHARGES"/>
+          <xs:enumeration value="DUTY"/>
+          <xs:enumeration value="EXCISE_TAX"/>
+          <xs:enumeration value="FOREIGN_EXCHANGE_TAX"/>
+          <xs:enumeration value="GENERAL_SALES_TAX"/>
+          <xs:enumeration value="IMPORT_LICENSE_FEE"/>
+          <xs:enumeration value="INTERNAL_ADDITIONAL_TAXES"/>
+          <xs:enumeration value="INTERNAL_SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="STAMP_TAX"/>
+          <xs:enumeration value="STATISTICAL_TAX"/>
+          <xs:enumeration value="TRANSPORT_FACILITIES_TAX"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EtdDetail">
+        <xs:annotation>
+          <xs:documentation>Electronic Trade document references used with the ETD special service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RequestedDocumentCopies" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents produced for the shipper by FedEx (see ShippingDocumentSpecification) which should be copied back to the shipper in the shipment result data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Documents" type="ns:UploadDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentReferences" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExportDetail">
+        <xs:annotation>
+          <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="B13AFilingOption" type="ns:B13AFilingOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Specifies which filing option is being exercised by the customer.
+                Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>General field for exporting-country-specific export data (e.g. B13A for CA, FTSR Exemption or AES Citation for US).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PermitNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field is applicable only to Canada export non-document shipments of any value to any destination. No special characters allowed. </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationControlDetail" type="ns:DestinationControlDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Department of Commerce/Department of State information about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetail">
+        <xs:annotation>
+          <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackingListEnclosed" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or nor a packing list is enclosed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippersLoadAndCount" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total shipment pieces.
+                ie. 3 boxes and 3 pallets of 100 pieces each = Shippers Load and Count of 303.
+                Applicable to International Priority Freight and International Economy Freight.
+                Values must be in the range of 1 - 99999
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BookingConfirmationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for International Freight shipping. Values must be 8- 12 characters in length.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceLabelRequested" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BeforeDeliveryContact" type="ns:ExpressFreightDetailContact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UndeliverableContact" type="ns:ExpressFreightDetailContact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetailContact">
+        <xs:annotation>
+          <xs:documentation>Currently not supported. Delivery contact information for an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="Phone" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ExpressRegionCode">
+        <xs:annotation>
+          <xs:documentation>Indicates a FedEx Express operating region.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APAC"/>
+          <xs:enumeration value="CA"/>
+          <xs:enumeration value="EMEA"/>
+          <xs:enumeration value="LAC"/>
+          <xs:enumeration value="US"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FedExLocationType">
+        <xs:annotation>
+          <xs:documentation>Identifies a kind of FedEx facility.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_EXPRESS_STATION"/>
+          <xs:enumeration value="FEDEX_GROUND_TERMINAL"/>
+          <xs:enumeration value="FEDEX_OFFICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FlatbedTrailerDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies the optional features/characteristics requested for a Freight shipment utilizing a flatbed trailer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Options" type="ns:FlatbedTrailerOption" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FlatbedTrailerOption">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="TARP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightAccountPaymentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="PREPAID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightBaseCharge">
+        <xs:annotation>
+          <xs:documentation>Individual charge which contributes to the total base charge for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedAsClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Effective freight class used for rating this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeRate" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate or factor applied to this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeBasis" type="ns:FreightChargeBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the manner in which the chargeRate for this line item was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExtendedAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net or extended charge for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightBaseChargeCalculationType">
+        <xs:annotation>
+          <xs:documentation>Specifies the way in which base charges for a Freight shipment or shipment leg are calculated.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LINE_ITEMS"/>
+          <xs:enumeration value="UNIT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightChargeBasisType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CWT"/>
+          <xs:enumeration value="FLAT"/>
+          <xs:enumeration value="MINIMUM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightClassType">
+        <xs:annotation>
+          <xs:documentation>These values represent the industry-standard freight classes used for FedEx Freight and FedEx National Freight shipment description. (Note: The alphabetic prefixes are required to distinguish these values from decimal numbers on some client platforms.)</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CLASS_050"/>
+          <xs:enumeration value="CLASS_055"/>
+          <xs:enumeration value="CLASS_060"/>
+          <xs:enumeration value="CLASS_065"/>
+          <xs:enumeration value="CLASS_070"/>
+          <xs:enumeration value="CLASS_077_5"/>
+          <xs:enumeration value="CLASS_085"/>
+          <xs:enumeration value="CLASS_092_5"/>
+          <xs:enumeration value="CLASS_100"/>
+          <xs:enumeration value="CLASS_110"/>
+          <xs:enumeration value="CLASS_125"/>
+          <xs:enumeration value="CLASS_150"/>
+          <xs:enumeration value="CLASS_175"/>
+          <xs:enumeration value="CLASS_200"/>
+          <xs:enumeration value="CLASS_250"/>
+          <xs:enumeration value="CLASS_300"/>
+          <xs:enumeration value="CLASS_400"/>
+          <xs:enumeration value="CLASS_500"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightCommitDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the Freight Service Centers associated with this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OriginDetail" type="ns:FreightServiceCenterDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the origin Freight Service Center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationDetail" type="ns:FreightServiceCenterDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the destination Freight Service Center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDistance" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The distance between the origin and destination FreightService Centers</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightGuaranteeDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:FreightGuaranteeType" minOccurs="0"/>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for all Freight guarantee types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightGuaranteeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GUARANTEED_DATE"/>
+          <xs:enumeration value="GUARANTEED_MORNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightOnValueType">
+        <xs:annotation>
+          <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CARRIER_RISK"/>
+          <xs:enumeration value="OWN_RISK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightRateDetail">
+        <xs:annotation>
+          <xs:documentation>Rate data specific to FedEx Freight or FedEx National Freight services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="QuoteNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a specific rate quotation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseChargeCalculation" type="ns:FreightBaseChargeCalculationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how total base charge is determined.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharges" type="ns:FreightBaseCharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Freight charges which accumulate to the total base charge for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notations" type="ns:FreightRateNotation" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Human-readable descriptions of additional information on this shipment rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightRateNotation">
+        <xs:annotation>
+          <xs:documentation>Additional non-monetary data returned with Freight rates.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unique identifier for notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable explanation of notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightServiceCenterDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the relationship between a customer-specified address and the FedEx Freight / FedEx National Freight Service Center that supports that address.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="InterlineCarrierCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight Industry standard non-FedEx carrier identification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InterlineCarrierName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name of the Interline carrier.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalDays" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Additional time it might take at the origin or destination to pickup or deliver the freight. This is usually due to the remoteness of the location. This time is included in the total transit time.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalService" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Service branding which may be used for local pickup or delivery, distinct from service used for line-haul of customer's shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalDistance" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Distance between customer address (pickup or delivery) and the supporting Freight / National Freight service center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalDuration" type="xs:duration" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time to travel between customer address (pickup or delivery) and the supporting Freight / National Freight service center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalServiceScheduling" type="ns:FreightServiceSchedulingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies when/how the customer can arrange for pickup or delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LimitedServiceDays" type="ns:DayOfWeekType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies days of operation if localServiceScheduling is LIMITED.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GatewayLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight service center that is a gateway on the border of Canada or Mexico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Location" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Alphabetical code identifying a Freight Service Center</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight service center Contact and Address</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightServiceSchedulingType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of service scheduling offered from a Freight or National Freight Service Center to a customer-supplied address.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LIMITED"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="WILL_CALL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FedExFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExNationalFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_NATIONAL_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExNationalFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx National Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Role" type="ns:FreightShipmentRoleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates which of the requester's tariffs will be used for rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValuePerUnit" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value for the shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValueUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value units corresponding to the above defined declared value</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiabilityCoverageDetail" type="ns:LiabilityCoverageDetail" minOccurs="0"/>
+          <xs:element name="Coupons" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifiers for promotional discounts offered to customers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalHandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of individual handling units in the entire shipment (for unit pricing).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDiscountPercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Estimated discount rate provided by client for unsecured rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PalletWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of pallets used in shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Overall shipment dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Comment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicePayments" type="ns:FreightSpecialServicePayment" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies which party will pay surcharges for any special services which support split billing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LineItems" type="ns:FreightShipmentLineItem" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Details of the commodities in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentLineItem">
+        <xs:annotation>
+          <xs:documentation>Description of an individual commodity or class of content in a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification of handling-unit packaging for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FED EX INTERNAL USE ONLY - Individual line item dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Volume" type="ns:Volume" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Volume (cubic measure) for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightShipmentRoleType">
+        <xs:annotation>
+          <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightSpecialServicePayment">
+        <xs:annotation>
+          <xs:documentation>Specifies which party will be responsible for payment of any surcharges for Freight special services for which split billing is allowed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialService" type="ns:ShipmentSpecialServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates who will pay for the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="GeneralAgencyAgreementDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a General Agency Agreement document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:HazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityLabelTextOptionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how the commodity is to be labeled.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPEND"/>
+          <xs:enumeration value="OVERRIDE"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelTextOption" type="ns:HazardousCommodityLabelTextOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the customer wishes the label text to be handled for this commodity in this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSuppliedLabelText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text used in labeling the commodity under control of the labelTextOption field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityOptionType">
+        <xs:annotation>
+          <xs:documentation>Indicates which kind of hazardous content (as defined by DOT) is being reported.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HAZARDOUS_MATERIALS"/>
+          <xs:enumeration value="LITHIUM_BATTERY_EXCEPTION"/>
+          <xs:enumeration value="ORM_D"/>
+          <xs:enumeration value="REPORTABLE_QUANTITIES"/>
+          <xs:enumeration value="SMALL_QUANTITY_EXCEPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityPackagingDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies number and type of packaging units for hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units in which the hazardous commodity is packaged.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityPackingGroupType">
+        <xs:annotation>
+          <xs:documentation>Identifies DOT packing group for a hazardous commodity.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="I"/>
+          <xs:enumeration value="II"/>
+          <xs:enumeration value="III"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityQuantityDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies amount and units for quantity of hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units by which the hazardous commodity is measured.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HoldAtLocationDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact phone number for recipient of shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address of FedEx facility at which shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type of facility at which package/shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Location identification (for facilities identified by an alphanumeric location code).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationNumber" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Location identification (for facilities identified by an numeric location code).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HomeDeliveryPremiumDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required by FedEx for home delivery services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HomeDeliveryPremiumType" type="ns:HomeDeliveryPremiumType" minOccurs="1"/>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain Home Delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain and Appointment Home Delivery.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HomeDeliveryPremiumType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT"/>
+          <xs:enumeration value="DATE_CERTAIN"/>
+          <xs:enumeration value="EVENING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ImageId">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMAGE_1"/>
+          <xs:enumeration value="IMAGE_2"/>
+          <xs:enumeration value="IMAGE_3"/>
+          <xs:enumeration value="IMAGE_4"/>
+          <xs:enumeration value="IMAGE_5"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="InternationalDocumentContentType">
+        <xs:annotation>
+          <xs:documentation>The type of International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DOCUMENTS_ONLY"/>
+          <xs:enumeration value="NON_DOCUMENTS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelFormatType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of label to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON2D"/>
+          <xs:enumeration value="LABEL_DATA_ONLY"/>
+          <xs:enumeration value="MAILROOM"/>
+          <xs:enumeration value="NO_LABEL"/>
+          <xs:enumeration value="OPERATIONAL_LABEL"/>
+          <xs:enumeration value="PRE_COMMON2D"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelMaskableDataType">
+        <xs:annotation>
+          <xs:documentation>Names for data elements / areas which may be suppressed from printing on labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMS_VALUE"/>
+          <xs:enumeration value="DIMENSIONS"/>
+          <xs:enumeration value="DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="FREIGHT_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="PACKAGE_SEQUENCE_AND_COUNT"/>
+          <xs:enumeration value="SHIPPER_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="SUPPLEMENTAL_LABEL_DOC_TAB"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="TOTAL_WEIGHT"/>
+          <xs:enumeration value="TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelPrintingOrientationType">
+        <xs:annotation>
+          <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BOTTOM_EDGE_OF_TEXT_FIRST"/>
+          <xs:enumeration value="TOP_EDGE_OF_TEXT_FIRST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelRotationType">
+        <xs:annotation>
+          <xs:documentation>Relative to normal orientation for the printer.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="NONE"/>
+          <xs:enumeration value="RIGHT"/>
+          <xs:enumeration value="UPSIDE_DOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LabelSpecification">
+        <xs:annotation>
+          <xs:documentation>Description of shipping label to be returned in the reply</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelFormatType" type="ns:LabelFormatType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specify type of label to be returned</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The type of image or printer commands the label is to be formatted in.
+                DPL = Unimark thermal printer language
+                EPL2 = Eltron thermal printer language
+                PDF = a label returned as a pdf image
+                PNG = a label returned as a png image
+                ZPLII = Zebra thermal printer language
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelStockType" type="ns:LabelStockType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For thermal printer lables this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relative to normal orientation for the printer. RIGHT=90 degrees clockwise, UPSIDE_DOWN=180 degrees, LEFT=90 degrees counterclockwise.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedLabelOrigin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If present, this contact and address information will replace the return address information on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSpecifiedDetail" type="ns:CustomerSpecifiedLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LabelStockType">
+        <xs:annotation>
+          <xs:documentation>For thermal printer labels this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_4X8"/>
+          <xs:enumeration value="PAPER_4X9"/>
+          <xs:enumeration value="PAPER_7X4.75"/>
+          <xs:enumeration value="PAPER_8.5X11_BOTTOM_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_8.5X11_TOP_HALF_LABEL"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LiabilityCoverageDetail">
+        <xs:sequence>
+          <xs:element name="CoverageType" type="ns:LiabilityCoverageType" minOccurs="0"/>
+          <xs:element name="CoverageAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the Liability Coverage Amount. For Jan 2010 this value represents coverage amount per pound</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LiabilityCoverageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NEW"/>
+          <xs:enumeration value="USED_OR_RECONDITIONED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LinearMeasure">
+        <xs:annotation>
+          <xs:documentation>Represents a one-dimensional measurement in small units (e.g. suitable for measuring a package or document), contrasted with Distance, which represents a large one-dimensional measurement (e.g. distance between cities).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The numerical quantity of this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The units for this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LinearUnits">
+        <xs:annotation>
+          <xs:documentation>CM = centimeters, IN = inches</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CM"/>
+          <xs:enumeration value="IN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Localization">
+        <xs:annotation>
+          <xs:documentation>Identifies the representation of human-readable text.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LanguageCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for language (e.g. EN, FR, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocaleCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for the region (e.g. us, ca, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Measure">
+        <xs:sequence>
+          <xs:element name="Quantity" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="Units" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="MinimumChargeType">
+        <xs:annotation>
+          <xs:documentation>Internal FedEx use only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="CUSTOMER_FREIGHT_WEIGHT"/>
+          <xs:enumeration value="EARNED_DISCOUNT"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="RATE_SCALE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Money">
+        <xs:sequence>
+          <xs:element name="Currency" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a Certificate of Origin document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="BlanketPeriod" type="ns:DateRange" minOccurs="0"/>
+          <xs:element name="ImporterSpecification" type="ns:NaftaImporterSpecificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which Party (if any) from the shipment is to be used as the source of importer data on the NAFTA COO form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureContact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact information for "Authorized Signature" area of form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerSpecification" type="ns:NaftaProducerSpecificationType" minOccurs="0"/>
+          <xs:element name="Producers" type="ns:NaftaProducer" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCommodityDetail">
+        <xs:sequence>
+          <xs:element name="PreferenceCriterion" type="ns:NaftaPreferenceCriterionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerDetermination" type="ns:NaftaProducerDeterminationCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of which producer is associated with this commodity (if multiple producers are used in a single shipment).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCostMethod" type="ns:NaftaNetCostMethodCode" minOccurs="0"/>
+          <xs:element name="NetCostDateRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date range over which RVC net cost was calculated.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaImporterSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMPORTER_OF_RECORD"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="UNKNOWN"/>
+          <xs:enumeration value="VARIOUS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaNetCostMethodCode">
+        <xs:annotation>
+          <xs:documentation>
+            Net cost method used.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NC"/>
+          <xs:enumeration value="NO"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaPreferenceCriterionCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="A"/>
+          <xs:enumeration value="B"/>
+          <xs:enumeration value="C"/>
+          <xs:enumeration value="D"/>
+          <xs:enumeration value="E"/>
+          <xs:enumeration value="F"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="NaftaProducer">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0"/>
+          <xs:element name="Producer" type="ns:Party" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaProducerDeterminationCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NO_1"/>
+          <xs:enumeration value="NO_2"/>
+          <xs:enumeration value="NO_3"/>
+          <xs:enumeration value="YES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaProducerSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AVAILABLE_UPON_REQUEST"/>
+          <xs:enumeration value="MULTIPLE_SPECIFIED"/>
+          <xs:enumeration value="SAME"/>
+          <xs:enumeration value="SINGLE_SPECIFIED"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Notification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data regarding the result of the submitted transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Severity" type="ns:NotificationSeverityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Source" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the source of this notification. Combined with the Code it uniquely identifies this notification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that represents this notification. Combined with the Source it uniquely identifies this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Message" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text that explains this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalizedMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MessageParameters" type="ns:NotificationParameter" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) witout having to parse the message string.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NotificationParameter">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of data contained in Value (e.g. SERVICE_TYPE, PACKAGE_SEQUENCE, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value of the parameter (e.g. PRIORITY_OVERNIGHT, 2, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NotificationSeverityType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of severity values for a Notification.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ERROR"/>
+          <xs:enumeration value="FAILURE"/>
+          <xs:enumeration value="NOTE"/>
+          <xs:enumeration value="SUCCESS"/>
+          <xs:enumeration value="WARNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Op900Detail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the OP-900 form for hazardous materials packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reference" type="ns:CustomerReferenceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies which reference type (from the package's customer references) is to be used as the source for the reference on this OP-900.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data field to be used when a name is to be printed in the document instead of (or in addition to) a signature image.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="OversizeClassType">
+        <xs:annotation>
+          <xs:documentation>The Oversize classification for a package.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a package's rates, as calculated per a specific rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight that was used to calculate the rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The dimensional weight of this package (if greater than actual).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The oversize weight of this package (if the package is oversize).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The transportation charge only (prior to any discounts applied) for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all discounts on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's baseCharge - totalFreightDiscounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all surcharges on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all taxes on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges + totalTaxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this package (either because of characteristics of the package itself, or because it is carrying per-shipment surcharges for the shipment of which it is a part).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All taxes applicable (or distributed to) this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackageSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special services offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ALCOHOL"/>
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="NON_STANDARD_CONTAINER"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the package level for some or all service types. If the shipper is requesting a special service which requires additional data, the package special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:PackageSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment or package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with FedEx Ground services only; COD must be present in shipment's special services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DangerousGoodsDetail" type="ns:DangerousGoodsDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dangerous materials. This element is required when SpecialServiceType.DANGEROUS_GOODS or HAZARDOUS_MATERIAL is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DryIceWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dry ice. This element is required when SpecialServiceType.DRY_ICE is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOptionDetail" type="ns:SignatureOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx signature services. This element is required when SpecialServiceType.SIGNATURE_OPTION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PriorityAlertDetail" type="ns:PriorityAlertDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To be filled.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackagingType">
+        <xs:annotation>
+          <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_10KG_BOX"/>
+          <xs:enumeration value="FEDEX_25KG_BOX"/>
+          <xs:enumeration value="FEDEX_BOX"/>
+          <xs:enumeration value="FEDEX_ENVELOPE"/>
+          <xs:enumeration value="FEDEX_PAK"/>
+          <xs:enumeration value="FEDEX_TUBE"/>
+          <xs:enumeration value="YOUR_PACKAGING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Party">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a person or company entitiy doing business with FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the customer.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Tins" type="ns:TaxpayerIdentification" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for taxpayer identification information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the point-of-contact person.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for a physical location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Payment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the monetary compensation given to FedEx for services rendered to the customer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PaymentType" type="ns:PaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the method of payment for a service. See PaymentType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payor" type="ns:Payor" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PaymentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method of payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SENDER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Payor">
+        <xs:annotation>
+          <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the country of the payor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes the kind of pending shipment being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PendingShipmentType" minOccurs="1"/>
+          <xs:element name="ExpirationDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date after which the pending shipment will no longer be available for completion.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmailLabelDetail" type="ns:EMailLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with type of EMAIL.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PendingShipmentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EMAIL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PhysicalPackagingType">
+        <xs:annotation>
+          <xs:documentation>This enumeration rationalizes the former FedEx Express international "admissibility package" types (based on ANSI X.12) and the FedEx Freight packaging types. The values represented are those common to both carriers.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BAG"/>
+          <xs:enumeration value="BARREL"/>
+          <xs:enumeration value="BASKET"/>
+          <xs:enumeration value="BOX"/>
+          <xs:enumeration value="BUCKET"/>
+          <xs:enumeration value="BUNDLE"/>
+          <xs:enumeration value="CARTON"/>
+          <xs:enumeration value="CASE"/>
+          <xs:enumeration value="CONTAINER"/>
+          <xs:enumeration value="CRATE"/>
+          <xs:enumeration value="CYLINDER"/>
+          <xs:enumeration value="DRUM"/>
+          <xs:enumeration value="ENVELOPE"/>
+          <xs:enumeration value="HAMPER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PAIL"/>
+          <xs:enumeration value="PALLET"/>
+          <xs:enumeration value="PIECE"/>
+          <xs:enumeration value="REEL"/>
+          <xs:enumeration value="ROLL"/>
+          <xs:enumeration value="SKID"/>
+          <xs:enumeration value="TANK"/>
+          <xs:enumeration value="TUBE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PickupDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the pickup characteristics of a shipment (e.g. for use in a tag request).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReadyDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="LatestPickupDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CourierInstructions" type="xs:string" minOccurs="0"/>
+          <xs:element name="RequestType" type="ns:PickupRequestType" minOccurs="0"/>
+          <xs:element name="RequestSource" type="ns:PickupRequestSourceType" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PickupRequestSourceType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUTOMATION"/>
+          <xs:enumeration value="CUSTOMER_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PickupRequestType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FUTURE_DAY"/>
+          <xs:enumeration value="SAME_DAY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PricingCodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="ALTERNATE"/>
+          <xs:enumeration value="BASE"/>
+          <xs:enumeration value="HUNDREDWEIGHT"/>
+          <xs:enumeration value="HUNDREDWEIGHT_ALTERNATE"/>
+          <xs:enumeration value="INTERNATIONAL_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_SERVICE"/>
+          <xs:enumeration value="LTL_FREIGHT"/>
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+          <xs:enumeration value="SHIPMENT_FIVE_POUND_OPTIONAL"/>
+          <xs:enumeration value="SHIPMENT_OPTIONAL"/>
+          <xs:enumeration value="SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PriorityAlertDetail">
+        <xs:annotation>
+          <xs:documentation>Currently not supported.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Content" type="xs:string" minOccurs="0" maxOccurs="3"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PurposeOfShipmentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GIFT"/>
+          <xs:enumeration value="NOT_SOLD"/>
+          <xs:enumeration value="PERSONAL_EFFECTS"/>
+          <xs:enumeration value="REPAIR_AND_RETURN"/>
+          <xs:enumeration value="SAMPLE"/>
+          <xs:enumeration value="SOLD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateDimensionalDivisorType">
+        <xs:annotation>
+          <xs:documentation>Indicates the reason that a dim divisor value was chose.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRODUCT"/>
+          <xs:enumeration value="WAIVED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateDiscount">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateDiscountType" type="ns:RateDiscountType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateDiscountType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="COUPON"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="VOLUME"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateElementBasisType">
+        <xs:annotation>
+          <xs:documentation>Selects the value from a set of rate data to which the percentage is applied.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BASE_CHARGE"/>
+          <xs:enumeration value="NET_CHARGE"/>
+          <xs:enumeration value="NET_CHARGE_EXCLUDING_TAXES"/>
+          <xs:enumeration value="NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateReply">
+        <xs:annotation>
+          <xs:documentation>The response to a RateRequest. The Notifications indicate whether the request was successful or not.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionId that was sent in the request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The version of this reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateReplyDetails" type="ns:RateReplyDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element contains all rate data for a single service. If service was specified in the request, there will be a single entry in this array; if service was omitted in the request, there will be a separate entry in this array for each service being compared.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RateReplyDetail">
+        <xs:sequence>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Shows the specific combination of service options combined with the service type that produced this committment in the set returned to the caller.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedSubOptions" type="ns:ServiceSubOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Supporting detail for applied options identified in preceding field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryStation" type="xs:string" minOccurs="0"/>
+          <xs:element name="DeliveryDayOfWeek" type="ns:DayOfWeekType" minOccurs="0"/>
+          <xs:element name="DeliveryTimestamp" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CommitDetails" type="ns:CommitDetail" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="DestinationAirportId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of an airport, using standard three-letter abbreviations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IneligibleForMoneyBackGuarantee" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this shipment is eligible for a money back guarantee.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Commitment code for the origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Commitment code for the destination.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time in transit from pickup to delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum expected transit time</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOption" type="ns:SignatureOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The signature option for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The actual rate type of the charges for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedShipmentDetails" type="ns:RatedShipmentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element contains all rate data for a single rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RateRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to rate a package/shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnTransitAndCommit" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows the caller to specify that the transit time and commit data are to be returned in the reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCodes" type="ns:CarrierCodeType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Candidate carriers for rate-shopping use case. This field is only considered if requestedShipment/serviceType is omitted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains zero or more service options whose combinations are to be considered when replying with available services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The shipment for which a rate quote (or rate-shopping comparison) is desired.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateRequestType">
+        <xs:annotation>
+          <xs:documentation>Indicates the type of rates to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCOUNT"/>
+          <xs:enumeration value="LIST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateTypeBasisType">
+        <xs:annotation>
+          <xs:documentation>Select the type of rate from which the element is to be selected.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCOUNT"/>
+          <xs:enumeration value="LIST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RatedPackageDetail">
+        <xs:annotation>
+          <xs:documentation>If requesting rates using the PackageDetails element (one package at a time) in the request, the rates for each package will be returned in this element. Currently total piece total weight rates are also retuned in this element.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TrackingIds" type="ns:TrackingId" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Echoed from the corresponding package in the rate request (if provided).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with request containing PACKAGE_GROUPS, to identify which group of identical packages was used to produce a reply item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The difference between "list" and "account" net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdjustedCodCollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Ground COD is shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeClass" type="ns:OversizeClassType" minOccurs="0"/>
+          <xs:element name="PackageRateDetail" type="ns:PackageRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data that are tied to a specific package and rate type combination.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RatedShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This class groups the shipment and package rating data for a specific rate type for use in a rating reply, which groups result data by rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The difference between "list" and "account" total net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdjustedCodCollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Express COD is shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRateDetail" type="ns:ShipmentRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The shipment-level totals for this rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedPackages" type="ns:RatedPackageDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The package-level data for this rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RatedWeightMethod">
+        <xs:annotation>
+          <xs:documentation>The method used to calculate the weight to be used in rating the package..</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="AVERAGE_PACKAGE_WEIGHT_MINIMUM"/>
+          <xs:enumeration value="BALLOON"/>
+          <xs:enumeration value="DIM"/>
+          <xs:enumeration value="FREIGHT_MINIMUM"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+          <xs:enumeration value="PACKAGING_MINIMUM"/>
+          <xs:enumeration value="WEIGHT_BREAK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rebate">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RebateType" type="ns:RebateType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RebateType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RecipientCustomsId">
+        <xs:annotation>
+          <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:RecipientCustomsIdType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the kind of identification being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the actual ID value, of the type specified above.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RecipientCustomsIdType">
+        <xs:annotation>
+          <xs:documentation>Type of Brazilian taxpayer identifier provided in Recipient/TaxPayerIdentification/Number. For shipments bound for Brazil this overrides the value in Recipient/TaxPayerIdentification/TinType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMPANY"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+          <xs:enumeration value="PASSPORT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RegulatoryControlType">
+        <xs:annotation>
+          <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EU_CIRCULATION"/>
+          <xs:enumeration value="FOOD_OR_PERISHABLE"/>
+          <xs:enumeration value="NAFTA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RequestedPackageLineItem">
+        <xs:annotation>
+          <xs:documentation>This class rationalizes RequestedPackage and RequestedPackageSummary from previous interfaces. The way in which it is uses within a RequestedShipment depends on the RequestedPackageDetailType value specified for that shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with INDIVIDUAL_PACKAGE, as a unique identifier of each requested package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a unique identifier of each group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupPackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a count of packages within a group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0"/>
+          <xs:element name="InsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalInsuredValue and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalweight and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="PhysicalPackaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides additional detail on how the customer has physically packaged this item. As of June 2009, required for packages moving under international and SmartPost services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text describing the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerReferences" type="ns:CustomerReference" minOccurs="0" maxOccurs="3"/>
+          <xs:element name="SpecialServicesRequested" type="ns:PackageSpecialServicesRequested" minOccurs="0"/>
+          <xs:element name="ContentRecords" type="ns:ContentRecord" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RequestedShipment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the shipment being tendered to FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the date and time the package is tendered to FedEx. Both the date and time portions of the string are expected to be used. The date should not be a past date or a date more than 10 days in the future. The time is the local time of the shipment based on the shipper's time zone. The date component must be in the format: YYYY-MM-DD (e.g. 2006-06-26). The time component must be in the format: HH:MM:SS using a 24 hour clock (e.g. 11:00 a.m. is 11:00:00, whereas 5:00 p.m. is 17:00:00). The date and time parts are separated by the letter T (e.g. 2006-06-26T17:00:00). There is also a UTC offset component indicating the number of hours/mainutes from UTC (e.g 2006-06-26T17:00:00-0400 is defined form June 26, 2006 5:00 pm Eastern Time).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DropoffType" type="ns:DropoffType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup. See DropoffType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the total weight of the shipment being conveyed to FedEx.This is only applicable to International shipments and should only be used on the first package of a mutiple piece shipment.This value contains 1 explicit decimal position</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalInsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total insured amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Shipper" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for shipping the package. Shipper and Origin should have the same address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipient" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party receiving the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientLocationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a recipient location</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Origin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Physical starting address for the shipment, if different from shipper's address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingChargesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data indicating the method and means of payment to FedEx for providing shipping services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicesRequested" type="ns:ShipmentSpecialServicesRequested" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data regarding special services requested by the shipper for this shipment. If the shipper is requesting a special service which requires additional data (e.g. COD), the special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object. For example, to request COD, "COD" must be included in the SpecialServiceTypes collection and the CodDetail object must contain the required data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpressFreightDetail" type="ns:ExpressFreightDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightShipmentDetail" type="ns:FreightShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Ground Home Delivery and Freight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsClearanceDetail" type="ns:CustomsClearanceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customs clearance data, used for both international and intra-country shipping.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PickupDetail" type="ns:PickupDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use in "process tag" transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:SmartPostShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the characteristics of a shipment pertaining to SmartPost services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BlockInsightVisibility" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If true, only the shipper/payor will have visibility of this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelSpecification" type="ns:LabelSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about the image format and printer type the label is to returned in.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentSpecification" type="ns:ShippingDocumentSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains data used to create additional (non-label) shipping documents.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateRequestTypes" type="ns:RateRequestType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies whether and what kind of rates the customer wishes to have quoted on this shipment. The reply will also be constrained by other data on the shipment and customer.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EdtRequestType" type="ns:EdtRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether the customer wishes to have Estimated Duties and Taxes provided with the rate quotation on this shipment. Only applies with shipments moving under international services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total number of packages in the entire shipment (even when the shipment spans multiple transactions.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentOnlyFields" type="ns:ShipmentOnlyFieldsType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies which package-level data values are provided at the shipment-level only. The package-level data values types specified here will not be provided at the package-level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedPackageLineItems" type="ns:RequestedPackageLineItem" minOccurs="0" maxOccurs="999">
+            <xs:annotation>
+              <xs:documentation>One or more package-attribute descriptions, each of which describes an individual package, a group of identical packages, or (for the total-piece-total-weight case) common characteristics all packages in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RequestedShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="CUSTOMER_SPECIFIED_LABELS"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RequiredShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CANADIAN_B13A"/>
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="INTERNATIONAL_AIRWAY_BILL"/>
+          <xs:enumeration value="MAIL_SERVICE_AIRWAY_BILL"/>
+          <xs:enumeration value="SHIPPERS_EXPORT_DECLARATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnEMailAllowedSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>These values are used to control the availability of certain special services at the time when a customer uses the e-mail label link to create a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ReturnEMailDetail">
+        <xs:sequence>
+          <xs:element name="MerchantPhoneNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="AllowedSpecialServices" type="ns:ReturnEMailAllowedSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifies the allowed (merchant-authorized) special services which may be selected when the subsequent shipment is created. Only services represented in EMailLabelAllowedSpecialServiceType will be controlled by this list.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ReturnShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Information relating to a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReturnType" type="ns:ReturnType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of return shipment that is being requested. At present the only type of retrun shipment that is supported is PRINT_RETURN_LABEL. With this option you can print a return label to insert into the box of an outbound shipment. This option can not be used to print an outbound label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rma" type="ns:Rma" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnEMailDetail" type="ns:ReturnEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specific information about the delivery of the email and options for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ReturnType">
+        <xs:annotation>
+          <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="PENDING"/>
+          <xs:enumeration value="PRINT_RETURN_LABEL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedRateType">
+        <xs:annotation>
+          <xs:documentation>The "PAYOR..." rates are expressed in the currency identified in the payor's rate table(s). The "RATED..." rates are expressed in the currency of the origin country. Former "...COUNTER..." values have become "...RETAIL..." values, except for PAYOR_COUNTER and RATED_COUNTER, which have been removed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAYOR_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="PAYOR_LIST_PACKAGE"/>
+          <xs:enumeration value="PAYOR_LIST_SHIPMENT"/>
+          <xs:enumeration value="RATED_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="RATED_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="RATED_LIST_PACKAGE"/>
+          <xs:enumeration value="RATED_LIST_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rma">
+        <xs:annotation>
+          <xs:documentation>Return Merchant Authorization</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization Number</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>20</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reason" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the return.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>60</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SecondaryBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON_2D"/>
+          <xs:enumeration value="NONE"/>
+          <xs:enumeration value="SSCC_18"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ServiceOptionType">
+        <xs:annotation>
+          <xs:documentation>These values control the optional features of service that may be combined in a commitment/rate comparision transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SMART_POST_ALLOWED_INDICIA"/>
+          <xs:enumeration value="SMART_POST_HUB_ID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ServiceSubOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Supporting detail for applied options identified in a rate quote.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightGuarantee" type="ns:FreightGuaranteeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of Freight Guarantee applied, if FREIGHT_GUARANTEE is applied to the rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostHubId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the smartPostHubId used during rate quote, if SMART_POST_HUB_ID is a variable option on the rate request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostIndicia" type="ns:SmartPostIndiciaType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the indicia used during rate quote, if SMART_POST_ALLOWED_INDICIA is a variable option on the rate request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EUROPE_FIRST_INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="FEDEX_1_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_2_DAY"/>
+          <xs:enumeration value="FEDEX_2_DAY_AM"/>
+          <xs:enumeration value="FEDEX_2_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_3_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_EXPRESS_SAVER"/>
+          <xs:enumeration value="FEDEX_FIRST_FREIGHT"/>
+          <xs:enumeration value="FEDEX_FREIGHT_ECONOMY"/>
+          <xs:enumeration value="FEDEX_FREIGHT_PRIORITY"/>
+          <xs:enumeration value="FEDEX_GROUND"/>
+          <xs:enumeration value="FIRST_OVERNIGHT"/>
+          <xs:enumeration value="GROUND_HOME_DELIVERY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_FIRST"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_FREIGHT"/>
+          <xs:enumeration value="PRIORITY_OVERNIGHT"/>
+          <xs:enumeration value="SMART_POST"/>
+          <xs:enumeration value="STANDARD_OVERNIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentDryIceDetail">
+        <xs:annotation>
+          <xs:documentation>Shipment-level totals of dry ice data across all packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of packages in the shipment that contain dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total shipment dry ice weight for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentLegRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a single leg of a shipment's total/summary rates, as calculated per a specific rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LegDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text describing the shipment leg.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LegOrigin" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Origin for this leg.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LegDestination" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Destination for this leg.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateScale" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate scale used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateZone" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate zone used (based on origin and destination).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PricingCode" type="ns:PricingCodeType" minOccurs="0"/>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CurrencyExchangeRate" type="ns:CurrencyExchangeRate" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialRatingApplied" type="ns:SpecialRatingAppliedType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisor" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="DimDivisorType" type="ns:RateDimensionalDivisorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FuelSurchargePercent" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="TotalBillingWeight" type="ns:Weight" minOccurs="0"/>
+          <xs:element name="TotalDimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Sum of dimensional weights for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBaseCharge" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalNetFreight" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalNetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of the transportation-based taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetCharge" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of all values under this shipment's dutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetChargeWithDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetCharge + totalDutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment AND duties, taxes and transportation charges are all paid by the same sender's account.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightRateDetail" type="ns:FreightRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data specific to FedEx Freight and FedEx National Freight services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All transportation-based taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesAndTaxes" type="ns:EdtCommodityTax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All commodity-based duties and taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "order level" variable handling charges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalVariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total of all variable handling charges at both shipment (order) and package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShipmentOnlyFieldsType">
+        <xs:annotation>
+          <xs:documentation>These values identify which package-level data values will be provided at the shipment-level.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DIMENSIONS"/>
+          <xs:enumeration value="INSURED_VALUE"/>
+          <xs:enumeration value="WEIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a shipment's total/summary rates, as calculated per a specific rate type. The "total..." fields may differ from the sum of corresponding package data for Multiweight or Express MPS.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateScale" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate scale used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateZone" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate zone used (based on origin and destination).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PricingCode" type="ns:PricingCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of pricing used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CurrencyExchangeRate" type="ns:CurrencyExchangeRate" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialRatingApplied" type="ns:SpecialRatingAppliedType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisor" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value used to calculate the weight based on the dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisorType" type="ns:RateDimensionalDivisorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FuelSurchargePercent" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="TotalBillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight used to calculate these rates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Sum of dimensional weights for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBaseCharge" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total discounts used in the rate calculation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The freight charge minus discounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total amount of all surcharges applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of the transportation-based taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net charge after applying all discounts and surcharges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of all values under this shipment's dutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetChargeWithDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetCharge + totalDutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment AND duties, taxes and transportation charges are all paid by the same sender's account.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentLegRateDetails" type="ns:ShipmentLegRateDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifies the Rate Details per each leg in a Freight Shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightRateDetail" type="ns:FreightRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data specific to FedEx Freight and FedEx National Freight services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All transportation-based taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesAndTaxes" type="ns:EdtCommodityTax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All commodity-based duties and taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "order level" variable handling charges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalVariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total of all variable handling charges at both shipment (order) and package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShipmentSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CALL_BEFORE_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUSTOM_DELIVERY_WINDOW"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DO_NOT_BREAK_DOWN_PALLETS"/>
+          <xs:enumeration value="DO_NOT_STACK_PALLETS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EAST_COAST_SPECIAL"/>
+          <xs:enumeration value="ELECTRONIC_TRADE_DOCUMENTS"/>
+          <xs:enumeration value="EMAIL_NOTIFICATION"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FOOD"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FUTURE_DAY_SHIPMENT"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_PREMIUM"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="PENDING_SHIPMENT"/>
+          <xs:enumeration value="POISON"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="RETURN_SHIPMENT"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="TOP_LOAD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the shipment level for some or all service types. If the shipper is requesting a special service which requires additional data (such as the COD amount), the shipment special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:ShipmentSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment (or other shipment-level transaction).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment. This element is required when SpecialServiceType.COD is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldAtLocationDetail" type="ns:HoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient. This element is required when SpecialServiceType.HOLD_AT_LOCATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailNotificationDetail" type="ns:EMailNotificationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for FedEx to provide email notification to the customer regarding the shipment. This element is required when SpecialServiceType.EMAIL_NOTIFICATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnShipmentDetail" type="ns:ReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Printed Return Label. This element is required when SpecialServiceType.PRINTED_RETURN_LABEL is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PendingShipmentDetail" type="ns:PendingShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field should be populated for pending shipments (e.g. e-mail label) It is required by a PENDING_SHIPMENT special service type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDryIceDetail" type="ns:ShipmentDryIceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of packages with dry ice and the total weight of the dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HomeDeliveryPremiumDetail" type="ns:HomeDeliveryPremiumDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Home Delivery options. This element is required when SpecialServiceType.HOME_DELIVERY_PREMIUM is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FlatbedTrailerDetail" type="ns:FlatbedTrailerDetail" minOccurs="0"/>
+          <xs:element name="FreightGuaranteeDetail" type="ns:FreightGuaranteeDetail" minOccurs="0"/>
+          <xs:element name="EtdDetail" type="ns:EtdDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Electronic Trade document references.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDeliveryWindowDetail" type="ns:CustomDeliveryWindowDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification for date or range of dates on which delivery is to be attempted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentDispositionDetail">
+        <xs:annotation>
+          <xs:documentation>Each occurrence of this class specifies a particular way in which a kind of shipping document is to be produced and provided.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DispositionType" type="ns:ShippingDocumentDispositionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Values in this field specify how to create and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to organize all documents of this type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailDetail" type="ns:ShippingDocumentEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to e-mail document images.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintDetail" type="ns:ShippingDocumentPrintDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how a queued document is to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentDispositionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to return a shipping document to the caller.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONFIRMED"/>
+          <xs:enumeration value="DEFERRED_RETURNED"/>
+          <xs:enumeration value="DEFERRED_STORED"/>
+          <xs:enumeration value="EMAILED"/>
+          <xs:enumeration value="QUEUED"/>
+          <xs:enumeration value="RETURNED"/>
+          <xs:enumeration value="STORED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies how to e-mail shipping documents.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailRecipients" type="ns:ShippingDocumentEMailRecipient" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Provides the roles and email addresses for e-mail recipients.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentEMailGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the convention by which documents are to be grouped as e-mail attachments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentEMailGroupingType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BY_RECIPIENT"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailRecipient">
+        <xs:annotation>
+          <xs:documentation>Specifies an individual recipient of e-mailed shipping document(s).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RecipientType" type="ns:EMailNotificationRecipientType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship of this recipient in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Address to which the document is to be sent.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentFormat">
+        <xs:annotation>
+          <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TopOfPageOffset" type="ns:LinearMeasure" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how far down the page to move the beginning of the image; allows for printing on letterhead and other pre-printed stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0"/>
+          <xs:element name="StockType" type="ns:ShippingDocumentStockType" minOccurs="0"/>
+          <xs:element name="ProvideInstructions" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For those shipping document types which have both a "form" and "instructions" component (e.g. NAFTA Certificate of Origin and General Agency Agreement), this field indicates whether to provide the instructions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs the language to be used for this individual document, independently from other content returned for the same shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentGroupingType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to organize all shipping documents of the same type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSOLIDATED_BY_DOCUMENT_TYPE"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ShippingDocumentImageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DPL"/>
+          <xs:enumeration value="EPL2"/>
+          <xs:enumeration value="PDF"/>
+          <xs:enumeration value="PNG"/>
+          <xs:enumeration value="ZPLII"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentPrintDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies printing options for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PrinterId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides environment-specific printer identification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentSpecification">
+        <xs:annotation>
+          <xs:documentation>Contains all data required for additional (non-label) shipping documents to be produced in conjunction with a specific shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShippingDocumentTypes" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents requested by the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CertificateOfOrigin" type="ns:CertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="CommercialInvoiceDetail" type="ns:CommercialInvoiceDetail" minOccurs="0"/>
+          <xs:element name="CustomPackageDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of each package-level custom document (the same specification is used for all packages).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomShipmentDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of a shipment-level custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GeneralAgencyAgreementDetail" type="ns:GeneralAgencyAgreementDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details pertaining to the GAA.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaCertificateOfOriginDetail" type="ns:NaftaCertificateOfOriginDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details pertaining to NAFTA COO.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Op900Detail" type="ns:Op900Detail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentStockType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of paper (stock) on which a document will be printed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OP_900_LG_B"/>
+          <xs:enumeration value="OP_900_LL_B"/>
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureOptionDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for FedEx delivery signature services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OptionType" type="ns:SignatureOptionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature services option selected by the customer for this shipment. See OptionType for the list of valid values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureReleaseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature release authorization number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SignatureOptionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the delivery signature services options offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADULT"/>
+          <xs:enumeration value="DIRECT"/>
+          <xs:enumeration value="INDIRECT"/>
+          <xs:enumeration value="NO_SIGNATURE_REQUIRED"/>
+          <xs:enumeration value="SERVICE_DEFAULT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostAncillaryEndorsementType">
+        <xs:annotation>
+          <xs:documentation>These values are mutually exclusive; at most one of them can be attached to a SmartPost shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS_CORRECTION"/>
+          <xs:enumeration value="CARRIER_LEAVE_IF_NO_RESPONSE"/>
+          <xs:enumeration value="CHANGE_SERVICE"/>
+          <xs:enumeration value="FORWARDING_SERVICE"/>
+          <xs:enumeration value="RETURN_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostIndiciaType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MEDIA_MAIL"/>
+          <xs:enumeration value="PARCEL_RETURN"/>
+          <xs:enumeration value="PARCEL_SELECT"/>
+          <xs:enumeration value="PRESORTED_BOUND_PRINTED_MATTER"/>
+          <xs:enumeration value="PRESORTED_STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SmartPostShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required for shipments handled under the SMART_POST and GROUND_SMART_POST service types.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Indicia" type="ns:SmartPostIndiciaType" minOccurs="0"/>
+          <xs:element name="AncillaryEndorsement" type="ns:SmartPostAncillaryEndorsementType" minOccurs="0"/>
+          <xs:element name="HubId" type="xs:string" minOccurs="0"/>
+          <xs:element name="CustomerManifestId" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SpecialRatingAppliedType">
+        <xs:annotation>
+          <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_FUEL_SURCHARGE"/>
+          <xs:enumeration value="IMPORT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Surcharge">
+        <xs:annotation>
+          <xs:documentation>Identifies each surcharge applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SurchargeType" type="ns:SurchargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Level" type="ns:SurchargeLevelType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SurchargeLevelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SurchargeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_HANDLING"/>
+          <xs:enumeration value="ANCILLARY_FEE"/>
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CANADIAN_DESTINATION"/>
+          <xs:enumeration value="CLEARANCE_ENTRY_FEE"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUT_FLOWERS"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DELIVERY_AREA"/>
+          <xs:enumeration value="DELIVERY_CONFIRMATION"/>
+          <xs:enumeration value="DOCUMENTATION_FEE"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EMAIL_LABEL"/>
+          <xs:enumeration value="EUROPE_FIRST"/>
+          <xs:enumeration value="EXCESS_VALUE"/>
+          <xs:enumeration value="EXHIBITION"/>
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="FICE"/>
+          <xs:enumeration value="FLATBED"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FREIGHT_ON_VALUE"/>
+          <xs:enumeration value="FUEL"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_APPOINTMENT"/>
+          <xs:enumeration value="HOME_DELIVERY_DATE_CERTAIN"/>
+          <xs:enumeration value="HOME_DELIVERY_EVENING"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="INSURED_VALUE"/>
+          <xs:enumeration value="INTERHAWAII"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="METRO_DELIVERY"/>
+          <xs:enumeration value="METRO_PICKUP"/>
+          <xs:enumeration value="NON_MACHINABLE"/>
+          <xs:enumeration value="OFFSHORE"/>
+          <xs:enumeration value="ON_CALL_PICKUP"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="OUT_OF_DELIVERY_AREA"/>
+          <xs:enumeration value="OUT_OF_PICKUP_AREA"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="PIECE_COUNT_VERIFICATION"/>
+          <xs:enumeration value="PRE_DELIVERY_NOTIFICATION"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="REGIONAL_MALL_DELIVERY"/>
+          <xs:enumeration value="REGIONAL_MALL_PICKUP"/>
+          <xs:enumeration value="RESIDENTIAL_DELIVERY"/>
+          <xs:enumeration value="RESIDENTIAL_PICKUP"/>
+          <xs:enumeration value="RETURN_LABEL"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+          <xs:enumeration value="TARP"/>
+          <xs:enumeration value="THIRD_PARTY_CONSIGNEE"/>
+          <xs:enumeration value="TRANSMART_SERVICE_FEE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Tax">
+        <xs:annotation>
+          <xs:documentation>Identifies each tax applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:TaxType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="GST"/>
+          <xs:enumeration value="HST"/>
+          <xs:enumeration value="INTRACOUNTRY"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PST"/>
+          <xs:enumeration value="VAT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TaxesOrMiscellaneousChargeType">
+        <xs:annotation>
+          <xs:documentation>Specifice the kind of tax or miscellaneous charge being reported on a Commercial Invoice.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMISSIONS"/>
+          <xs:enumeration value="DISCOUNTS"/>
+          <xs:enumeration value="HANDLING_FEES"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="ROYALTIES_AND_LICENSE_FEES"/>
+          <xs:enumeration value="TAXES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TaxpayerIdentification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for taxpayer identification information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TinType" type="ns:TinType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the category of the taxpayer identification number. See TinType for the list of values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the taxpayer identification number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>18</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Usage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the usage of Tax Identification Number in Shipment processing</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TermsOfSaleType">
+        <xs:annotation>
+          <xs:documentation>
+            Required for dutiable international express or ground shipment. This field is not applicable to an international PIB (document) or a non-document which does not require a commercial invoice express shipment.
+            CFR_OR_CPT (Cost and Freight/Carriage Paid TO)
+            CIF_OR_CIP (Cost Insurance and Freight/Carraige Insurance Paid)
+            DDP (Delivered Duty Paid)
+            DDU (Delivered Duty Unpaid)
+            EXW (Ex Works)
+            FOB_OR_FCA (Free On Board/Free Carrier)
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CFR_OR_CPT"/>
+          <xs:enumeration value="CIF_OR_CIP"/>
+          <xs:enumeration value="DDP"/>
+          <xs:enumeration value="DDU"/>
+          <xs:enumeration value="EXW"/>
+          <xs:enumeration value="FOB_OR_FCA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TinType">
+        <xs:annotation>
+          <xs:documentation>Identifies the category of the taxpayer identification number.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_NATIONAL"/>
+          <xs:enumeration value="BUSINESS_STATE"/>
+          <xs:enumeration value="PERSONAL_NATIONAL"/>
+          <xs:enumeration value="PERSONAL_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackingId">
+        <xs:sequence>
+          <xs:element name="TrackingIdType" type="ns:TrackingIdType" minOccurs="0"/>
+          <xs:element name="FormId" type="xs:string" minOccurs="0"/>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackingIdType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPRESS"/>
+          <xs:enumeration value="FEDEX"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TransactionDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerTransactionId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form text to be echoed back in the reply. Used to match requests and replies.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs data payload language/translations (contrasted with ClientDetail.localization, which governs Notification.localizedMessage language selection).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TransitTimeType">
+        <xs:annotation>
+          <xs:documentation>Time in transit from pickup to delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EIGHTEEN_DAYS"/>
+          <xs:enumeration value="EIGHT_DAYS"/>
+          <xs:enumeration value="ELEVEN_DAYS"/>
+          <xs:enumeration value="FIFTEEN_DAYS"/>
+          <xs:enumeration value="FIVE_DAYS"/>
+          <xs:enumeration value="FOURTEEN_DAYS"/>
+          <xs:enumeration value="FOUR_DAYS"/>
+          <xs:enumeration value="NINETEEN_DAYS"/>
+          <xs:enumeration value="NINE_DAYS"/>
+          <xs:enumeration value="ONE_DAY"/>
+          <xs:enumeration value="SEVENTEEN_DAYS"/>
+          <xs:enumeration value="SEVEN_DAYS"/>
+          <xs:enumeration value="SIXTEEN_DAYS"/>
+          <xs:enumeration value="SIX_DAYS"/>
+          <xs:enumeration value="TEN_DAYS"/>
+          <xs:enumeration value="THIRTEEN_DAYS"/>
+          <xs:enumeration value="THREE_DAYS"/>
+          <xs:enumeration value="TWELVE_DAYS"/>
+          <xs:enumeration value="TWENTY_DAYS"/>
+          <xs:enumeration value="TWO_DAYS"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="FileName" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentContent" type="xs:base64Binary" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentIdProducer">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CSHP"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentProducerType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CLS"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentReferenceDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="DocumentId" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentIdProducer" type="ns:UploadDocumentIdProducer" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="VariableHandlingChargeDetail">
+        <xs:annotation>
+          <xs:documentation>This definition of variable handling charge detail is intended for use in Jan 2011 corp load.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FixedValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Variable handling charge type of FIXED_VALUE. Contains the amount to be added to the freight charge. Contains 2 explicit decimal positions with a total max length of 10 including the decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PercentValue" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual percentage (10 means 10%, which is a mutiplier of 0.1)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateElementBasis" type="ns:RateElementBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Select the value from a set of rate data to which the percentage is applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateTypeBasis" type="ns:RateTypeBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Select the type of rate from which the element is to be selected.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VariableHandlingCharges">
+        <xs:annotation>
+          <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charge amount calculated based on the requested variable handling charge detail.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalCustomerCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The calculated varibale handling charge plus the net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Volume">
+        <xs:annotation>
+          <xs:documentation>Three-dimensional volume/cubic measurement.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:VolumeUnits" minOccurs="0"/>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VolumeUnits">
+        <xs:annotation>
+          <xs:documentation>Units of three-dimensional volume/cubic measure.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUBIC_FT"/>
+          <xs:enumeration value="CUBIC_M"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Weight">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the heaviness of an object.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:WeightUnits" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure associated with a weight value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:decimal" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the weight value of a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="WeightUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the unit of measure associated with a weight value. See WeightUnits for the list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KG"/>
+          <xs:enumeration value="LB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="WebAuthenticationDetail">
+        <xs:annotation>
+          <xs:documentation>Used in authentication of the sender's identity.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UserCredential" type="ns:WebAuthenticationCredential" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Credential used to authenticate a specific software application. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="WebAuthenticationCredential">
+        <xs:annotation>
+          <xs:documentation>Two part authentication string used for the sender's identity</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Key" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifying part of authentication credential. This value is provided by FedEx after registration</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Secret part of authentication key. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VersionId">
+        <xs:annotation>
+          <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ServiceId" type="xs:string" fixed="crs" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies a system or sub-system which performs an operation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Major" type="xs:int" fixed="10" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service business level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Intermediate" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service interface level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Minor" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service code level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="RateRequest">
+    <part name="RateRequest" element="ns:RateRequest"/>
+  </message>
+  <message name="RateReply">
+    <part name="RateReply" element="ns:RateReply"/>
+  </message>
+  <portType name="RatePortType">
+    <operation name="getRates" parameterOrder="RateRequest">
+      <input message="ns:RateRequest"/>
+      <output message="ns:RateReply"/>
+    </operation>
+  </portType>
+  <binding name="RateServiceSoapBinding" type="ns:RatePortType">
+    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="getRates">
+      <s1:operation soapAction="getRates" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="RateService">
+    <port name="RateServicePort" binding="ns:RateServiceSoapBinding">
+      <s1:address location="https://wsbeta.fedex.com:443/web-services/rate"/>
+    </port>
+  </service>
+</definitions>
\ No newline at end of file
diff --git app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v9.wsdl app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v9.wsdl
new file mode 100644
index 0000000..bc35b1d
--- /dev/null
+++ app/code/core/Mage/Usa/etc/wsdl/FedEx/RateService_v9.wsdl
@@ -0,0 +1,4756 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/rate/v9" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fedex.com/ws/rate/v9" name="RateServiceDefinitions">
+  <types>
+    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/rate/v9">
+      <xs:element name="RateRequest" type="ns:RateRequest"/>
+      <xs:element name="RateReply" type="ns:RateReply"/>
+      <xs:complexType name="AdditionalLabelsDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies additional labels to be produced. All required labels for shipments will be produced without the need to request additional labels. These are only available as thermal labels.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:AdditionalLabelsType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of additional labels to return.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of this type label to return</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="AdditionalLabelsType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of additional labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="CUSTOMS"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="MANIFEST"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Address">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StreetLines" type="xs:string" minOccurs="0" maxOccurs="2">
+            <xs:annotation>
+              <xs:documentation>Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="City" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of city, town, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrbanizationCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relevant only to addresses in Puerto Rico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The two-letter code used to identify a country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Residential" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this address is residential (as opposed to commercial).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="B13AFilingOptionType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies which filing option is being exercised by the customer.
+            Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FILED_ELECTRONICALLY"/>
+          <xs:enumeration value="MANUALLY_ATTACHED"/>
+          <xs:enumeration value="NOT_REQUIRED"/>
+          <xs:enumeration value="SUMMARY_REPORTING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="BarcodeSymbologyType">
+        <xs:annotation>
+          <xs:documentation>Identification of the type of barcode (symbology) used on FedEx documents and labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CODABAR"/>
+          <xs:enumeration value="CODE128"/>
+          <xs:enumeration value="CODE128B"/>
+          <xs:enumeration value="CODE128C"/>
+          <xs:enumeration value="CODE39"/>
+          <xs:enumeration value="CODE93"/>
+          <xs:enumeration value="I2OF5"/>
+          <xs:enumeration value="MANUAL"/>
+          <xs:enumeration value="PDF417"/>
+          <xs:enumeration value="POSTNET"/>
+          <xs:enumeration value="UCC128"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CarrierCodeType">
+        <xs:annotation>
+          <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FDXC"/>
+          <xs:enumeration value="FDXE"/>
+          <xs:enumeration value="FDXG"/>
+          <xs:enumeration value="FXCC"/>
+          <xs:enumeration value="FXFR"/>
+          <xs:enumeration value="FXSP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Certificate of Origin ( e.g. whether or not to include the instructions, image type, etc ...)</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentFormat" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ClearanceBrokerageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of brokerage to be applied to a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_INCLUSIVE"/>
+          <xs:enumeration value="BROKER_INCLUSIVE_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_SELECT"/>
+          <xs:enumeration value="BROKER_SELECT_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_UNASSIGNED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ClientDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for the client submitting a transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The FedEx account number associated with this transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MeterNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This number is assigned by FedEx and identifies the unique device from which the request is originating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntegratorId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in transactions which require identification of the Fed Ex Office integrator.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Region" type="ns:ExpressRegionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the region from which the transaction is submitted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to be used for human-readable Notification.localizedMessages in responses to the request containing this ClientDetail object. Different requests from the same client may contain different Localization data. (Contrast with TransactionDetail.localization, which governs data payload language/translation.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodAddTransportationChargesType">
+        <xs:annotation>
+          <xs:documentation>Identifies what freight charges should be added to the COD collect amount.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADD_ACCOUNT_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_CHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_ACCOUNT_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_LIST_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CodCollectionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of funds FedEx should collect upon shipment delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ANY"/>
+          <xs:enumeration value="CASH"/>
+          <xs:enumeration value="GUARANTEED_FUNDS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CodCollectionAmount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="AddTransportationCharges" type="ns:CodAddTransportationChargesType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies if freight charges are to be added to the COD amount. This element determines which freight charges should be added to the COD collect amount. See CodAddTransportationChargesType for a list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectionType" type="ns:CodCollectionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of funds FedEx should collect upon package delivery</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For Express this is the descriptive data that is used for the recipient of the FedEx Letter containing the COD payment. For Ground this is the descriptive data for the party to receive the payment that prints the COD receipt.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceIndicator" type="ns:CodReturnReferenceIndicatorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodReturnReferenceIndicatorType">
+        <xs:annotation>
+          <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INVOICE"/>
+          <xs:enumeration value="PO"/>
+          <xs:enumeration value="REFERENCE"/>
+          <xs:enumeration value="TRACKING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CommercialInvoice">
+        <xs:annotation>
+          <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through the FedEx Systems. Customers are responsible for printing their own Commercial Invoice.If you would likeFedEx to generate a Commercial Invoice and transmit it to Customs. for clearance purposes, you need to specify that in the ShippingDocumentSpecification element. If you would like a copy of the Commercial Invoice that FedEx generated returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies element. Commercial Invoice support consists of maximum of 99 commodity line items.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Comments" type="xs:string" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>Any comments that need to be communicated about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any freight charges that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TaxesOrMiscellaneousCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any taxes or miscellaneous charges(other than Freight charges or Insurance charges) that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any packing costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any handling costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclarationStatment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentTerms" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PurposeOfShipmentDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive text for the purpose of the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerInvoiceNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer assigned invoice number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginatorName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of the International Expert that completed the Commercial Invoice different from Sender.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsOfSale" type="ns:TermsOfSaleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for dutiable international Express or Ground shipment. This field is not applicable to an international PIB(document) or a non-document which does not require a Commercial Invoice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoiceDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Commercial Invoice( e.g. image type) Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of a customer supplied image to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommitDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the transit time and delivery commitment date and time.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CommodityName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The Commodity applicable to this commitment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx service type applicable to this commitment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Shows the specific combination of service options combined with the service type that produced this committment in the set returned to the caller.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedSubOptions" type="ns:ServiceSubOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Supporting detail for applied options identified in preceding field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>THe delivery commitment date/time. Express Only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of transit days; applies to Ground and LTL Freight; indicates minimum transit time for SmartPost.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum number of transit days, for SmartPost shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The service area code for the destination of this shipment. Express only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address of the broker to be used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx location identifier for the broker.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerCommitTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment date/time the shipment will arrive at the border.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerCommitDayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week the shipment will arrive at the border.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BrokerToDestinationDays" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of days it will take for the shipment to make it from broker to destination</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProofOfDeliveryDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment date for shipment served by GSP (Global Service Provider)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProofOfDeliveryDayOfWeek" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The delivery commitment day of the week for the shipment served by GSP (Global Service Provider)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitMessages" type="ns:Notification" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Messages concerning the ability to provide an accurate delivery commitment on an International commit quote. These could be messages providing information about why a commitment could not be returned or a successful message such as "REQUEST COMPLETED"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryMessages" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Messages concerning the delivery commitment on an International commit quote such as "0:00 A.M. IF NO CUSTOMS DELAY"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DelayDetails" type="ns:DelayDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about why a shipment delivery is delayed and at what level (country/service etc.).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0"/>
+          <xs:element name="RequiredDocuments" type="ns:RequiredShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Required documentation for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCommitDetail" type="ns:FreightCommitDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight origin and destination city center information and total distance between origin and destination city centers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CommitmentDelayType">
+        <xs:annotation>
+          <xs:documentation>The type of delay this shipment will encounter.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HOLIDAY"/>
+          <xs:enumeration value="NON_WORKDAY"/>
+          <xs:enumeration value="NO_CITY_DELIVERY"/>
+          <xs:enumeration value="NO_HOLD_AT_LOCATION"/>
+          <xs:enumeration value="NO_LOCATION_DELIVERY"/>
+          <xs:enumeration value="NO_SERVICE_AREA_DELIVERY"/>
+          <xs:enumeration value="NO_SERVICE_AREA_SPECIAL_SERVICE_DELIVERY"/>
+          <xs:enumeration value="NO_SPECIAL_SERVICE_DELIVERY"/>
+          <xs:enumeration value="NO_ZIP_DELIVERY"/>
+          <xs:enumeration value="WEEKEND"/>
+          <xs:enumeration value="WEEKEND_SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Commodity">
+        <xs:annotation>
+          <xs:documentation>
+            For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+            If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NumberOfPieces" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Complete and accurate description of this commodity.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>450</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryOfManufacture" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Country code where commodity contents were produced or manufactured in their final form.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Unique alpha/numeric representing commodity item.
+                At least one occurrence is required for US Export shipments if the Customs Value is greater than $2500 or if a valid US Export license is required.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of this commodity. 1 explicit decimal position. Max length 11 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of a commodity in total number of pieces for this line item. Max length is 9</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QuantityUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unit of measure used to express the quantity of this commodity line item.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalMeasures" type="ns:Measure" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains only additional quantitative information other than weight and quantity to calculate duties and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UnitPrice" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value of each unit in Quantity. Six explicit decimal positions, Max length 18 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total customs value for this line item.
+                It should equal the commodity unit quantity times commodity unit value.
+                Six explicit decimal positions, max length 18 including decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExciseConditions" type="ns:EdtExciseCondition" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional characteristic of commodity used to calculate duties and taxes</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable to US export shipping only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseExpirationDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="CIMarksAndNumbers" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                An identifying mark or number used on the packaging of a shipment to help customers identify a particular shipment.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaDetail" type="ns:NaftaCommodityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All data required for this commodity in NAFTA Certificate of Origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ConfigurableLabelReferenceEntry">
+        <xs:annotation>
+          <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>1 of 12 possible zones to  position data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifiying text for the data in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A reference to a field in either the request or reply to print in this zone following the header.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A literal value to print after the header in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Contact">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a point-of-contact person.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ContactId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Client provided identifier corresponding to this contact information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's name.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Title" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's title.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompanyName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the company this contact is associated with.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneExtension" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone extension associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagerNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the pager number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the fax number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the email address associated with this contact.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>
+                  <ns:Express>120</ns:Express>
+                  <ns:Ground>35</ns:Ground>
+                </xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContactAndAddress">
+        <xs:sequence>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="0"/>
+          <xs:element name="Address" type="ns:Address" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContentRecord">
+        <xs:sequence>
+          <xs:element name="PartNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="ItemNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="ReceivedQuantity" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CurrencyExchangeRate">
+        <xs:annotation>
+          <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FromCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the original (converted FROM) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntoCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the final (converted INTO) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rate" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Multiplier used to convert fromCurrency units to intoCurrency units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomDeliveryWindowDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomDeliveryWindowType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of custom delivery being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time by which delivery is requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Range of dates for custom delivery request; only used if type is BETWEEN.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for custom delivery request; only used for types of ON, BETWEEN, or AFTER.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomDeliveryWindowType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AFTER"/>
+          <xs:enumeration value="BEFORE"/>
+          <xs:enumeration value="BETWEEN"/>
+          <xs:enumeration value="ON"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomDocumentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a custom-specified document, either at shipment or package level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Common information controlling document production.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecificationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the formatting specification used to construct this custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBarcodeEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified barcode symbology.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarHeight" type="xs:int" minOccurs="0"/>
+          <xs:element name="ThinBarWidth" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Width of thinnest bar/space element in the barcode.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BarcodeSymbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBoxEntry">
+        <xs:annotation>
+          <xs:documentation>Solid (filled) rectangular area on label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TopLeftCorner" type="ns:CustomLabelPosition"/>
+          <xs:element name="BottomRightCorner" type="ns:CustomLabelPosition"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomLabelCoordinateUnits">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MILS"/>
+          <xs:enumeration value="PIXELS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomLabelDetail">
+        <xs:sequence>
+          <xs:element name="CoordinateUnits" type="ns:CustomLabelCoordinateUnits" minOccurs="0"/>
+          <xs:element name="TextEntries" type="ns:CustomLabelTextEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="GraphicEntries" type="ns:CustomLabelGraphicEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BoxEntries" type="ns:CustomLabelBoxEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarcodeEntries" type="ns:CustomLabelBarcodeEntry" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelGraphicEntry">
+        <xs:annotation>
+          <xs:documentation>Image to be included from printer's memory, or from a local file for offline clients.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="PrinterGraphicId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific index of graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FileGraphicFullName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-qualified path and file name for graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelPosition">
+        <xs:sequence>
+          <xs:element name="X" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Horizontal position, relative to left edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Y" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Vertical position, relative to top edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelTextEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified printer font (for thermal labels) or generic font/size (for plain paper labels).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ThermalFontId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific font name for use with thermal printer labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font name for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontSize" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font size for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomerImageUsage">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomerImageUsageType" minOccurs="0"/>
+          <xs:element name="Id" type="ns:ImageId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerImageUsageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LETTER_HEAD"/>
+          <xs:enumeration value="SIGNATURE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerReference">
+        <xs:annotation>
+          <xs:documentation>Reference information to be associated with this package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerReferenceType" type="ns:CustomerReferenceType">
+          </xs:element>
+          <xs:element name="Value" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerReferenceType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BILL_OF_LADING"/>
+          <xs:enumeration value="CUSTOMER_REFERENCE"/>
+          <xs:enumeration value="DEPARTMENT_NUMBER"/>
+          <xs:enumeration value="ELECTRONIC_PRODUCT_CODE"/>
+          <xs:enumeration value="INTRACOUNTRY_REGULATORY_REFERENCE"/>
+          <xs:enumeration value="INVOICE_NUMBER"/>
+          <xs:enumeration value="P_O_NUMBER"/>
+          <xs:enumeration value="SHIPMENT_INTEGRITY"/>
+          <xs:enumeration value="STORE_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerSpecifiedLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomContent" type="ns:CustomLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defines any custom content to print on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfigurableReferenceEntries" type="ns:ConfigurableLabelReferenceEntry" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaskedData" type="ns:LabelMaskableDataType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls which data/sections will be suppressed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsAndConditionsLocalization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to use when printing the terms and conditions on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalLabels" type="ns:AdditionalLabelsDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls the number of additional copies of supplemental labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirWaybillSuppressionCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This value reduces the default quantity of destination/consignee air waybill labels. A value of zero indicates no change to default. A minimum of one copy will always be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomsClearanceDetail">
+        <xs:sequence>
+          <xs:element name="Broker" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Descriptive data identifying the Broker responsible for the shipmet.
+                Required if BROKER_SELECT_OPTION is requested in Special Services.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClearanceBrokerage" type="ns:ClearanceBrokerageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Interacts both with properties of the shipment and contractual relationship with the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImporterOfRecord" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Applicable only for Commercial Invoice. If the consignee and importer are not the same, the Following importer fields are required.
+                Importer/Contact/PersonName
+                Importer/Contact/CompanyName
+                Importer/Contact/PhoneNumber
+                Importer/Address/StreetLine[0]
+                Importer/Address/City
+                Importer/Address/StateOrProvinceCode - if Importer Country Code is US or CA
+                Importer/Address/PostalCode - if Importer Country Code is US or CA
+                Importer/Address/CountryCode
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientCustomsId" type="ns:RecipientCustomsId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates how payment of duties for the shipment will be made.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this shipment contains documents only or non-documents.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total customs value for the shipment. This total will rrepresent th esum of the values of all commodities, and may include freight, miscellaneous, and insurance charges. Must contain 2 explicit decimal positions with a max length of 17 including the decimal. For Express International MPS, the Total Customs Value is in the master transaction and all child transactions</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightOnValue" type="ns:FreightOnValueType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InsuranceCharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Documents amount paid to third party for coverage of shipment content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PartiesToTransactionAreRelated" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="CommercialInvoice" type="ns:CommercialInvoice" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through FedEx System. Customers are responsible for printing their own Commercial Invoice. Commercial Invoice support consists of a maximum of 20 commodity line items.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Commodities" type="ns:Commodity" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>
+                For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+                If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportDetail" type="ns:ExportDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RegulatoryControls" type="ns:RegulatoryControlType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DangerousGoodsAccessibilityType">
+        <xs:annotation>
+          <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCESSIBLE"/>
+          <xs:enumeration value="INACCESSIBLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DangerousGoodsDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for a FedEx shipment containing dangerous goods (hazardous materials).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Accessibility" type="ns:DangerousGoodsAccessibilityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CargoAircraftOnly" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipment is packaged/documented for movement ONLY on cargo aircraft.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which kinds of hazardous content are in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:HazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:HazardousCommodityPackagingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging of this commodity, suitable for use on OP-900 and OP-950 forms.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Telephone number to use for contact in the event of an emergency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DateRange">
+        <xs:sequence>
+          <xs:element name="Begins" type="xs:date">
+          </xs:element>
+          <xs:element name="Ends" type="xs:date">
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DayOfWeekType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FRI"/>
+          <xs:enumeration value="MON"/>
+          <xs:enumeration value="SAT"/>
+          <xs:enumeration value="SUN"/>
+          <xs:enumeration value="THU"/>
+          <xs:enumeration value="TUE"/>
+          <xs:enumeration value="WED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DelayDetail">
+        <xs:annotation>
+          <xs:documentation>Information about why a shipment delivery is delayed and at what level( country/service etc.).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The date of the delay</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DayOfWeek" type="ns:DayOfWeekType" minOccurs="0"/>
+          <xs:element name="Level" type="ns:DelayLevelType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The attribute of the shipment that caused the delay(e.g. Country, City, LocationId, Zip, service area, special handling )</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Point" type="ns:DelayPointType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The point where the delay is occurring (e.g. Origin, Destination, Broker location)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Type" type="ns:CommitmentDelayType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the delay (e.g. holiday, weekend, etc.).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name of the holiday in that country that is causing the delay.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DelayLevelType">
+        <xs:annotation>
+          <xs:documentation>The attribute of the shipment that caused the delay(e.g. Country, City, LocationId, Zip, service area, special handling )</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CITY"/>
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="LOCATION"/>
+          <xs:enumeration value="POSTAL_CODE"/>
+          <xs:enumeration value="SERVICE_AREA"/>
+          <xs:enumeration value="SERVICE_AREA_SPECIAL_SERVICE"/>
+          <xs:enumeration value="SPECIAL_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="DelayPointType">
+        <xs:annotation>
+          <xs:documentation>The point where the delay is occurring ( e.g. Origin, Destination, Broker location).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="ORIGIN_DESTINATION_PAIR"/>
+          <xs:enumeration value="PROOF_OF_DELIVERY_POINT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DestinationControlDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to complete the Destionation Control Statement for US exports.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StatementTypes" type="ns:DestinationControlStatementType" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="DestinationCountries" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Comma-separated list of up to four country codes, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EndUser" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of end user, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DestinationControlStatementType">
+        <xs:annotation>
+          <xs:documentation>Used to indicate whether the Destination Control Statement is of type Department of Commerce, Department of State or both.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DEPARTMENT_OF_COMMERCE"/>
+          <xs:enumeration value="DEPARTMENT_OF_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Dimensions">
+        <xs:annotation>
+          <xs:documentation>The dimensions of this package and the unit type used for the measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Length" minOccurs="1">
+            <xs:simpleType>
+              <xs:restriction base="xs:nonNegativeInteger"/>
+            </xs:simpleType>
+          </xs:element>
+          <xs:element name="Width" minOccurs="1">
+            <xs:simpleType>
+              <xs:restriction base="xs:nonNegativeInteger"/>
+            </xs:simpleType>
+          </xs:element>
+          <xs:element name="Height" minOccurs="1">
+            <xs:simpleType>
+              <xs:restriction base="xs:nonNegativeInteger"/>
+            </xs:simpleType>
+          </xs:element>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Distance">
+        <xs:annotation>
+          <xs:documentation>Driving or other transportation distances, distinct from dimension measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the distance quantity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:DistanceUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure for the distance value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DistanceUnits">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KM"/>
+          <xs:enumeration value="MI"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContent">
+        <xs:sequence>
+          <xs:element name="DocTabContentType" type="ns:DocTabContentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType options available.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Zone001" type="ns:DocTabContentZone001" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to ZONE001 to specify additional Zone details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcoded" type="ns:DocTabContentBarcoded" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to BARCODED to specify additional BarCoded details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContentBarcoded">
+        <xs:sequence>
+          <xs:element name="Symbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+          <xs:element name="Specification" type="ns:DocTabZoneSpecification" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabContentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BARCODED"/>
+          <xs:enumeration value="MINIMUM"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="ZONE001"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContentZone001">
+        <xs:sequence>
+          <xs:element name="DocTabZoneSpecifications" type="ns:DocTabZoneSpecification" minOccurs="1" maxOccurs="12"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabZoneJustificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="RIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabZoneSpecification">
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Zone number can be between 1 and 12.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Header value on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Reference path to the element in the request/reply whose value should be printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form-text to be printed in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Justification" type="ns:DocTabZoneJustificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Justification for the text printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DropoffType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_SERVICE_CENTER"/>
+          <xs:enumeration value="DROP_BOX"/>
+          <xs:enumeration value="REGULAR_PICKUP"/>
+          <xs:enumeration value="REQUEST_COURIER"/>
+          <xs:enumeration value="STATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Specific information about the delivery of the email and options for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="NotificationEMailAddress" type="xs:string">
+            <xs:annotation>
+              <xs:documentation>Email address to send the URL to.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message to be inserted into the email.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EMailNotificationDetail">
+        <xs:annotation>
+          <xs:documentation>Information describing email notifications that will be sent in relation to events that occur during package movement</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PersonalMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message that will be included in the email notifications</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>120</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipients" type="ns:EMailNotificationRecipient" minOccurs="0" maxOccurs="6">
+            <xs:annotation>
+              <xs:documentation>Information describing the destination of the email, format of the email and events to be notified on</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationFormatType">
+        <xs:annotation>
+          <xs:documentation>The format of the email.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HTML"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="WIRELESS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationRecipient">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a FedEx email notification recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailNotificationRecipientType" type="ns:EMailNotificationRecipientType">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship this email recipient has to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string">
+            <xs:annotation>
+              <xs:documentation>The email address to send the notification to</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>
+                  <ns:Express>120</ns:Express>
+                  <ns:Ground>35</ns:Ground>
+                </xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnShipment" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been shipped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnException" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient if this shipment encounters a problem while in route</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnDelivery" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been delivered.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Format" type="ns:EMailNotificationFormatType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The format of the email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language/locale to be used in this email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationRecipientType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid email notification recipient types. For SHIPPER, RECIPIENT and BROKER the email address asssociated with their definitions will be used, any email address sent with the email notification for these three email notification recipient types will be ignored.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtCommodityTax">
+        <xs:sequence>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0"/>
+          <xs:element name="Taxes" type="ns:EdtTaxDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EdtExciseCondition">
+        <xs:sequence>
+          <xs:element name="Category" type="xs:string" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-declared value, with data type and legal values depending on excise condition, used in defining the taxable value of the item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtRequestType">
+        <xs:annotation>
+          <xs:documentation>Specifies the types of Estimated Duties and Taxes to be included in a rate quotation for an international shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ALL"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtTaxDetail">
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:EdtTaxType" minOccurs="0"/>
+          <xs:element name="EffectiveDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="TaxableValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Formula" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtTaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_TAXES"/>
+          <xs:enumeration value="CONSULAR_INVOICE_FEE"/>
+          <xs:enumeration value="CUSTOMS_SURCHARGES"/>
+          <xs:enumeration value="DUTY"/>
+          <xs:enumeration value="EXCISE_TAX"/>
+          <xs:enumeration value="FOREIGN_EXCHANGE_TAX"/>
+          <xs:enumeration value="GENERAL_SALES_TAX"/>
+          <xs:enumeration value="IMPORT_LICENSE_FEE"/>
+          <xs:enumeration value="INTERNAL_ADDITIONAL_TAXES"/>
+          <xs:enumeration value="INTERNAL_SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="STAMP_TAX"/>
+          <xs:enumeration value="STATISTICAL_TAX"/>
+          <xs:enumeration value="TRANSPORT_FACILITIES_TAX"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EtdDetail">
+        <xs:annotation>
+          <xs:documentation>Electronic Trade document references used with the ETD special service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RequestedDocumentCopies" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents produced for the shipper by FedEx (see ShippingDocumentSpecification) which should be copied back to the shipper in the shipment result data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Documents" type="ns:UploadDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentReferences" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExportDetail">
+        <xs:annotation>
+          <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="B13AFilingOption" type="ns:B13AFilingOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Specifies which filing option is being exercised by the customer.
+                Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Required only if B13AFilingOption is one of the following:
+                FILED_ELECTRONICALLY
+                MANUALLY_ATTACHED
+                SUMMARY_REPORTING
+                If B13AFilingOption = NOT_REQUIRED, this field should contain a valid B13A Exception Number.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>50</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PermitNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field is applicable only to Canada export non-document shipments of any value to any destination. No special characters allowed. </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationControlDetail" type="ns:DestinationControlDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Department of Commerce/Department of State information about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetail">
+        <xs:annotation>
+          <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackingListEnclosed" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or nor a packing list is enclosed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippersLoadAndCount" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total shipment pieces.
+                ie. 3 boxes and 3 pallets of 100 pieces each = Shippers Load and Count of 303.
+                Applicable to International Priority Freight and International Economy Freight.
+                Values must be in the range of 1 - 99999
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BookingConfirmationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for International Freight shipping. Values must be 8- 12 characters in length.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceLabelRequested" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BeforeDeliveryContact" type="ns:ExpressFreightDetailContact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UndeliverableContact" type="ns:ExpressFreightDetailContact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetailContact">
+        <xs:annotation>
+          <xs:documentation>Currently not supported. Delivery contact information for an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="Phone" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ExpressRegionCode">
+        <xs:annotation>
+          <xs:documentation>Indicates a FedEx Express operating region.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APAC"/>
+          <xs:enumeration value="CA"/>
+          <xs:enumeration value="EMEA"/>
+          <xs:enumeration value="LAC"/>
+          <xs:enumeration value="US"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FedExLocationType">
+        <xs:annotation>
+          <xs:documentation>Identifies a kind of FedEx facility.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_EXPRESS_STATION"/>
+          <xs:enumeration value="FEDEX_GROUND_TERMINAL"/>
+          <xs:enumeration value="FEDEX_OFFICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FlatbedTrailerDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies the optional features/characteristics requested for a Freight shipment utilizing a flatbed trailer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Options" type="ns:FlatbedTrailerOption" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FlatbedTrailerOption">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="TARP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightAccountPaymentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="PREPAID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightBaseCharge">
+        <xs:annotation>
+          <xs:documentation>Individual charge which contributes to the total base charge for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedAsClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Effective freight class used for rating this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeRate" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate or factor applied to this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeBasis" type="ns:FreightChargeBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the manner in which the chargeRate for this line item was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExtendedAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net or extended charge for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightBaseChargeCalculationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LINE_ITEMS"/>
+          <xs:enumeration value="UNIT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightChargeBasisType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CWT"/>
+          <xs:enumeration value="FLAT"/>
+          <xs:enumeration value="MINIMUM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightClassType">
+        <xs:annotation>
+          <xs:documentation>These values represent the industry-standard freight classes used for FedEx Freight and FedEx National Freight shipment description. (Note: The alphabetic prefixes are required to distinguish these values from decimal numbers on some client platforms.)</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CLASS_050"/>
+          <xs:enumeration value="CLASS_055"/>
+          <xs:enumeration value="CLASS_060"/>
+          <xs:enumeration value="CLASS_065"/>
+          <xs:enumeration value="CLASS_070"/>
+          <xs:enumeration value="CLASS_077_5"/>
+          <xs:enumeration value="CLASS_085"/>
+          <xs:enumeration value="CLASS_092_5"/>
+          <xs:enumeration value="CLASS_100"/>
+          <xs:enumeration value="CLASS_110"/>
+          <xs:enumeration value="CLASS_125"/>
+          <xs:enumeration value="CLASS_150"/>
+          <xs:enumeration value="CLASS_175"/>
+          <xs:enumeration value="CLASS_200"/>
+          <xs:enumeration value="CLASS_250"/>
+          <xs:enumeration value="CLASS_300"/>
+          <xs:enumeration value="CLASS_400"/>
+          <xs:enumeration value="CLASS_500"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightCommitDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the Freight Service Centers associated with this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OriginDetail" type="ns:FreightServiceCenterDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the origin Freight Service Center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationDetail" type="ns:FreightServiceCenterDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the destination Freight Service Center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDistance" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The distance between the origin and destination FreightService Centers</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightGuaranteeDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:FreightGuaranteeType" minOccurs="0"/>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for all Freight guarantee types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Time" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time for GUARANTEED_TIME only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightGuaranteeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GUARANTEED_DATE"/>
+          <xs:enumeration value="GUARANTEED_MORNING"/>
+          <xs:enumeration value="GUARANTEED_TIME"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightOnValueType">
+        <xs:annotation>
+          <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CARRIER_RISK"/>
+          <xs:enumeration value="OWN_RISK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightRateDetail">
+        <xs:annotation>
+          <xs:documentation>Rate data specific to FedEx Freight or FedEx National Freight services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="QuoteNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a specific rate quotation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseChargeCalculation" type="ns:FreightBaseChargeCalculationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the way in which base charges for a Freight shipment are calculated.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharges" type="ns:FreightBaseCharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Freight charges which accumulate to the total base charge for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notations" type="ns:FreightRateNotation" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Human-readable descriptions of additional information on this shipment rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightRateNotation">
+        <xs:annotation>
+          <xs:documentation>Additional non-monetary data returned with Freight rates.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unique identifier for notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable explanation of notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightServiceCenterDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the relationship between a customer-specified address and the FedEx Freight / FedEx National Freight Service Center that supports that address.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="InterlineCarrierCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight Industry standard non-FedEx carrier identification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InterlineCarrierName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name of the Interline carrier.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalDays" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Additional time it might take at the origin or destination to pickup or deliver the freight. This is usually due to the remoteness of the location. This time is included in the total transit time.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalService" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Service branding which may be used for local pickup or delivery, distinct from service used for line-haul of customer's shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalDistance" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Distance between customer address (pickup or delivery) and the supporting Freight / National Freight service center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalDuration" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time to travel between customer address (pickup or delivery) and the supporting Freight / National Freight service center.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalServiceScheduling" type="ns:FreightServiceSchedulingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies when/how the customer can arrange for pickup or delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LimitedServiceDays" type="ns:DayOfWeekType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies days of operation if localServiceScheduling is LIMITED.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GatewayLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight service center that is a gateway on the border of Canada or Mexico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Location" minOccurs="0" type="xs:string">
+            <xs:annotation>
+              <xs:documentation>Alphabetical code identifying a Freight Service Center</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ContactAndAddress" minOccurs="0" type="ns:ContactAndAddress">
+            <xs:annotation>
+              <xs:documentation>Freight service center Contact and Address</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightServiceSchedulingType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of service scheduling offered from a Freight or National Freight Service Center to a customer-supplied address.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LIMITED"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="WILL_CALL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FedExFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExNationalFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_NATIONAL_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExNationalFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx National Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Role" type="ns:FreightShipmentRoleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates which of the requester's tariffs will be used for rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValuePerUnit" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value for the shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValueUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value units corresponding to the above defined declared value</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiabilityCoverageDetail" type="ns:LiabilityCoverageDetail" minOccurs="0"/>
+          <xs:element name="Coupons" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifiers for promotional discounts offered to customers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalHandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of individual handling units in the entire shipment (for unit pricing).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDiscountPercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Estimated discount rate provided by client for unsecured rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PalletWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of pallets used in shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Overall shipment dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Comment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicePayments" type="ns:FreightSpecialServicePayment" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies which party will pay surcharges for any special services which support split billing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LineItems" type="ns:FreightShipmentLineItem" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Details of the commodities in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentLineItem">
+        <xs:annotation>
+          <xs:documentation>Description of an individual commodity or class of content in a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification of handling-unit packaging for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FED EX INTERNAL USE ONLY - Individual line item dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Volume" type="ns:Volume" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Volume (cubic measure) for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightShipmentRoleType">
+        <xs:annotation>
+          <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightSpecialServicePayment">
+        <xs:annotation>
+          <xs:documentation>Specifies which party will be responsible for payment of any surcharges for Freight special services for which split billing is allowed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialService" type="ns:ShipmentSpecialServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates who will pay for the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="GeneralAgencyAgreementDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a General Agency Agreement document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:HazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityLabelTextOptionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how the commodity is to be labeled.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPEND"/>
+          <xs:enumeration value="OVERRIDE"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelTextOption" type="ns:HazardousCommodityLabelTextOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the customer wishes the label text to be handled for this commodity in this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSuppliedLabelText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text used in labeling the commodity under control of the labelTextOption field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityOptionType">
+        <xs:annotation>
+          <xs:documentation>Indicates which kind of hazardous content (as defined by DOT) is being reported.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HAZARDOUS_MATERIALS"/>
+          <xs:enumeration value="LITHIUM_BATTERY_EXCEPTION"/>
+          <xs:enumeration value="ORM_D"/>
+          <xs:enumeration value="REPORTABLE_QUANTITIES"/>
+          <xs:enumeration value="SMALL_QUANTITY_EXCEPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityPackagingDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies number and type of packaging units for hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units in which the hazardous commodity is packaged.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityPackingGroupType">
+        <xs:annotation>
+          <xs:documentation>Identifies DOT packing group for a hazardous commodity.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="I"/>
+          <xs:enumeration value="II"/>
+          <xs:enumeration value="III"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityQuantityDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies amount and units for quantity of hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units by which the hazardous commodity is measured.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HoldAtLocationDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact phone number for recipient of shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address of FedEx facility at which shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type of facility at which package/shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Location identification (for facilities identified by an alphanumeric location code).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationNumber" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Location identification (for facilities identified by an numeric location code).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HomeDeliveryPremiumDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required by FedEx for home delivery services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HomeDeliveryPremiumType" type="ns:HomeDeliveryPremiumType" minOccurs="1">
+          </xs:element>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain Home Delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain and Appointment Home Delivery.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HomeDeliveryPremiumType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT"/>
+          <xs:enumeration value="DATE_CERTAIN"/>
+          <xs:enumeration value="EVENING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ImageId">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMAGE_1"/>
+          <xs:enumeration value="IMAGE_2"/>
+          <xs:enumeration value="IMAGE_3"/>
+          <xs:enumeration value="IMAGE_4"/>
+          <xs:enumeration value="IMAGE_5"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="InternationalDocumentContentType">
+        <xs:annotation>
+          <xs:documentation>The type of International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DOCUMENTS_ONLY"/>
+          <xs:enumeration value="NON_DOCUMENTS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelFormatType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of label to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON2D"/>
+          <xs:enumeration value="LABEL_DATA_ONLY"/>
+          <xs:enumeration value="MAILROOM"/>
+          <xs:enumeration value="NO_LABEL"/>
+          <xs:enumeration value="PRE_COMMON2D"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelMaskableDataType">
+        <xs:annotation>
+          <xs:documentation>Names for data elements / areas which may be suppressed from printing on labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMS_VALUE"/>
+          <xs:enumeration value="DIMENSIONS"/>
+          <xs:enumeration value="DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="FREIGHT_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="PACKAGE_SEQUENCE_AND_COUNT"/>
+          <xs:enumeration value="SHIPPER_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="SUPPLEMENTAL_LABEL_DOC_TAB"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="TOTAL_WEIGHT"/>
+          <xs:enumeration value="TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelPrintingOrientationType">
+        <xs:annotation>
+          <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BOTTOM_EDGE_OF_TEXT_FIRST"/>
+          <xs:enumeration value="TOP_EDGE_OF_TEXT_FIRST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelRotationType">
+        <xs:annotation>
+          <xs:documentation>Relative to normal orientation for the printer. RIGHT=90 degrees clockwise, UPSIDE_DOWN=180 degrees, LEFT=90 degrees counterclockwise.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="NONE"/>
+          <xs:enumeration value="RIGHT"/>
+          <xs:enumeration value="UPSIDE_DOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LabelSpecification">
+        <xs:annotation>
+          <xs:documentation>Description of shipping label to be returned in the reply</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelFormatType" type="ns:LabelFormatType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specify type of label to be returned</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The type of image or printer commands the label is to be formatted in.
+                DPL = Unimark thermal printer language
+                EPL2 = Eltron thermal printer language
+                PDF = a label returned as a pdf image
+                PNG = a label returned as a png image
+                ZPLII = Zebra thermal printer language
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelStockType" type="ns:LabelStockType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For thermal printer lables this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relative to normal orientation for the printer. RIGHT=90 degrees clockwise, UPSIDE_DOWN=180 degrees, LEFT=90 degrees counterclockwise.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedLabelOrigin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If present, this contact and address information will replace the return address information on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSpecifiedDetail" type="ns:CustomerSpecifiedLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LabelStockType">
+        <xs:annotation>
+          <xs:documentation>For thermal printer labels this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_4X8"/>
+          <xs:enumeration value="PAPER_4X9"/>
+          <xs:enumeration value="PAPER_7X4.75"/>
+          <xs:enumeration value="PAPER_8.5X11_BOTTOM_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_8.5X11_TOP_HALF_LABEL"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LiabilityCoverageDetail">
+        <xs:sequence>
+          <xs:element name="CoverageType" type="ns:LiabilityCoverageType" minOccurs="0"/>
+          <xs:element name="CoverageAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the Liability Coverage Amount. For Jan 2010 this value represents coverage amount per pound</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LiabilityCoverageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NEW"/>
+          <xs:enumeration value="USED_OR_RECONDITIONED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LinearMeasure">
+        <xs:annotation>
+          <xs:documentation>Represents a one-dimensional measurement in small units (e.g. suitable for measuring a package or document), contrasted with Distance, which represents a large one-dimensional measurement (e.g. distance between cities).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The numerical quantity of this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The units for this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LinearUnits">
+        <xs:annotation>
+          <xs:documentation>CM = centimeters, IN = inches</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CM"/>
+          <xs:enumeration value="IN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Localization">
+        <xs:annotation>
+          <xs:documentation>Identifies the representation of human-readable text.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LanguageCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for language (e.g. EN, FR, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocaleCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for the region (e.g. us, ca, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Measure">
+        <xs:sequence>
+          <xs:element name="Quantity" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="Units" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="MinimumChargeType">
+        <xs:annotation>
+          <xs:documentation>Internal FedEx use only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="CUSTOMER_FREIGHT_WEIGHT"/>
+          <xs:enumeration value="EARNED_DISCOUNT"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="RATE_SCALE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Money">
+        <xs:sequence>
+          <xs:element name="Currency" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a Certificate of Origin document.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="BlanketPeriod" type="ns:DateRange" minOccurs="0"/>
+          <xs:element name="ImporterSpecification" type="ns:NaftaImporterSpecificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which Party (if any) from the shipment is to be used as the source of importer data on the NAFTA COO form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureContact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact information for "Authorized Signature" area of form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerSpecification" type="ns:NaftaProducerSpecificationType" minOccurs="0"/>
+          <xs:element name="Producers" type="ns:NaftaProducer" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCommodityDetail">
+        <xs:sequence>
+          <xs:element name="PreferenceCriterion" type="ns:NaftaPreferenceCriterionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerDetermination" type="ns:NaftaProducerDeterminationCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of which producer is associated with this commodity (if multiple producers are used in a single shipment).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCostMethod" type="ns:NaftaNetCostMethodCode" minOccurs="0"/>
+          <xs:element name="NetCostDateRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date range over which RVC net cost was calculated.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaImporterSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMPORTER_OF_RECORD"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="UNKNOWN"/>
+          <xs:enumeration value="VARIOUS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaNetCostMethodCode">
+        <xs:annotation>
+          <xs:documentation>
+            Net cost method used.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NC"/>
+          <xs:enumeration value="NO"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaPreferenceCriterionCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="A"/>
+          <xs:enumeration value="B"/>
+          <xs:enumeration value="C"/>
+          <xs:enumeration value="D"/>
+          <xs:enumeration value="E"/>
+          <xs:enumeration value="F"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="NaftaProducer">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0"/>
+          <xs:element name="Producer" type="ns:Party" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaProducerDeterminationCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NO_1"/>
+          <xs:enumeration value="NO_2"/>
+          <xs:enumeration value="NO_3"/>
+          <xs:enumeration value="YES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaProducerSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AVAILABLE_UPON_REQUEST"/>
+          <xs:enumeration value="MULTIPLE_SPECIFIED"/>
+          <xs:enumeration value="SAME"/>
+          <xs:enumeration value="SINGLE_SPECIFIED"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Notification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data regarding the result of the submitted transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Severity" type="ns:NotificationSeverityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Source" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the source of this notification. Combined with the Code it uniquely identifies this notification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that represents this notification. Combined with the Source it uniquely identifies this notification.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>8</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Message" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text that explains this notification.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>255</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalizedMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MessageParameters" type="ns:NotificationParameter" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) witout having to parse the message string.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NotificationParameter">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of data contained in Value (e.g. SERVICE_TYPE, PACKAGE_SEQUENCE, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value of the parameter (e.g. PRIORITY_OVERNIGHT, 2, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NotificationSeverityType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of severity values for a Notification.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ERROR"/>
+          <xs:enumeration value="FAILURE"/>
+          <xs:enumeration value="NOTE"/>
+          <xs:enumeration value="SUCCESS"/>
+          <xs:enumeration value="WARNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Op900Detail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the OP-900 form for hazardous materials packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reference" type="ns:CustomerReferenceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies which reference type (from the package's customer references) is to be used as the source for the reference on this OP-900.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data field to be used when a name is to be printed in the document instead of (or in addition to) a signature image.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="OversizeClassType">
+        <xs:annotation>
+          <xs:documentation>The Oversize classification for a package.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a package's rates, as calculated per a specific rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Internal FedEx use only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight that was used to calculate the rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The dimensional weight of this package (if greater than actual).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The oversize weight of this package (if the package is oversize).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The transportation charge only (prior to any discounts applied) for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all discounts on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's baseCharge - totalFreightDiscounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all surcharges on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all taxes on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges + totalTaxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this package (either because of characteristics of the package itself, or because it is carrying per-shipment surcharges for the shipment of which it is a part).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All taxes applicable (or distributed to) this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackageSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special services offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="NON_STANDARD_CONTAINER"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the package level for some or all service types. If the shipper is requesting a special service which requires additional data, the package special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:PackageSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment or package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with FedEx Ground services only; COD must be present in shipment's special services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DangerousGoodsDetail" type="ns:DangerousGoodsDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dangerous materials. This element is required when SpecialServiceType.DANGEROUS_GOODS or HAZARDOUS_MATERIAL is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DryIceWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dry ice. This element is required when SpecialServiceType.DRY_ICE is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOptionDetail" type="ns:SignatureOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx signature services. This element is required when SpecialServiceType.SIGNATURE_OPTION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PriorityAlertDetail" type="ns:PriorityAlertDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To be filled.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackagingType">
+        <xs:annotation>
+          <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_10KG_BOX"/>
+          <xs:enumeration value="FEDEX_25KG_BOX"/>
+          <xs:enumeration value="FEDEX_BOX"/>
+          <xs:enumeration value="FEDEX_ENVELOPE"/>
+          <xs:enumeration value="FEDEX_PAK"/>
+          <xs:enumeration value="FEDEX_TUBE"/>
+          <xs:enumeration value="YOUR_PACKAGING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Party">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a person or company entitiy doing business with FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the customer.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Tins" type="ns:TaxpayerIdentification" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for taxpayer identification information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the point-of-contact person.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for a physical location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Payment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the monetary compensation given to FedEx for services rendered to the customer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PaymentType" type="ns:PaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the method of payment for a service. See PaymentType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payor" type="ns:Payor" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PaymentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method of payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SENDER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Payor">
+        <xs:annotation>
+          <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the country of the payor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes the kind of pending shipment being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PendingShipmentType">
+          </xs:element>
+          <xs:element name="ExpirationDate" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date after which the pending shipment will no longer be available for completion.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmailLabelDetail" type="ns:EMailLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with type of EMAIL.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PendingShipmentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EMAIL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PhysicalPackagingType">
+        <xs:annotation>
+          <xs:documentation>This enumeration rationalizes the former FedEx Express international "admissibility package" types (based on ANSI X.12) and the FedEx Freight packaging types. The values represented are those common to both carriers.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BAG"/>
+          <xs:enumeration value="BARREL"/>
+          <xs:enumeration value="BASKET"/>
+          <xs:enumeration value="BOX"/>
+          <xs:enumeration value="BUCKET"/>
+          <xs:enumeration value="BUNDLE"/>
+          <xs:enumeration value="CARTON"/>
+          <xs:enumeration value="CASE"/>
+          <xs:enumeration value="CONTAINER"/>
+          <xs:enumeration value="CRATE"/>
+          <xs:enumeration value="CYLINDER"/>
+          <xs:enumeration value="DRUM"/>
+          <xs:enumeration value="ENVELOPE"/>
+          <xs:enumeration value="HAMPER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PAIL"/>
+          <xs:enumeration value="PALLET"/>
+          <xs:enumeration value="PIECE"/>
+          <xs:enumeration value="REEL"/>
+          <xs:enumeration value="ROLL"/>
+          <xs:enumeration value="SKID"/>
+          <xs:enumeration value="TANK"/>
+          <xs:enumeration value="TUBE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PickupDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the pickup characteristics of a shipment (e.g. for use in a tag request).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReadyDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="LatestPickupDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CourierInstructions" type="xs:string" minOccurs="0"/>
+          <xs:element name="RequestType" type="ns:PickupRequestType" minOccurs="0"/>
+          <xs:element name="RequestSource" type="ns:PickupRequestSourceType" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PickupRequestSourceType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUTOMATION"/>
+          <xs:enumeration value="CUSTOMER_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PickupRequestType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FUTURE_DAY"/>
+          <xs:enumeration value="SAME_DAY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PricingCodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="ALTERNATE"/>
+          <xs:enumeration value="BASE"/>
+          <xs:enumeration value="HUNDREDWEIGHT"/>
+          <xs:enumeration value="HUNDREDWEIGHT_ALTERNATE"/>
+          <xs:enumeration value="INTERNATIONAL_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_SERVICE"/>
+          <xs:enumeration value="LTL_FREIGHT"/>
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+          <xs:enumeration value="SHIPMENT_FIVE_POUND_OPTIONAL"/>
+          <xs:enumeration value="SHIPMENT_OPTIONAL"/>
+          <xs:enumeration value="SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PriorityAlertDetail">
+        <xs:annotation>
+          <xs:documentation>Currently not supported.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Content" type="xs:string" minOccurs="0" maxOccurs="3"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PurposeOfShipmentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GIFT"/>
+          <xs:enumeration value="NOT_SOLD"/>
+          <xs:enumeration value="PERSONAL_EFFECTS"/>
+          <xs:enumeration value="REPAIR_AND_RETURN"/>
+          <xs:enumeration value="SAMPLE"/>
+          <xs:enumeration value="SOLD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateDimensionalDivisorType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRODUCT"/>
+          <xs:enumeration value="WAIVED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateDiscount">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateDiscountType" type="ns:RateDiscountType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateDiscountType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="COUPON"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="VOLUME"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateReply">
+        <xs:annotation>
+          <xs:documentation>The response to a RateRequest. The Notifications indicate whether the request was successful or not.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionId that was sent in the request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId">
+            <xs:annotation>
+              <xs:documentation>The version of this reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateReplyDetails" type="ns:RateReplyDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element contains all rate data for a single service. If service was specified in the request, there will be a single entry in this array; if service was omitted in the request, there will be a separate entry in this array for each service being compared.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RateReplyDetail">
+        <xs:sequence>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Shows the specific combination of service options combined with the service type that produced this committment in the set returned to the caller.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AppliedSubOptions" type="ns:ServiceSubOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Supporting detail for applied options identified in preceding field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryStation" type="xs:string" minOccurs="0"/>
+          <xs:element name="DeliveryDayOfWeek" type="ns:DayOfWeekType" minOccurs="0"/>
+          <xs:element name="DeliveryTimestamp" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CommitDetails" type="ns:CommitDetail" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="DestinationAirportId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of an airport, using standard three-letter abbreviations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IneligibleForMoneyBackGuarantee" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this shipment is eligible for a money back guarantee.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Commitment code for the origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Commitment code for the destination.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time in transit from pickup to delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum expected transit time.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOption" type="ns:SignatureOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The signature option for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The actual rate type of the charges for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedShipmentDetails" type="ns:RatedShipmentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element contains all rate data for a single rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RateRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to rate a package/shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnTransitAndCommit" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows the caller to specify that the transit time and commit data are to be returned in the reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCodes" type="ns:CarrierCodeType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Candidate carriers for rate-shopping use case. This field is only considered if requestedShipment/serviceType is omitted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableOptions" type="ns:ServiceOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains zero or more service options whose combinations are to be considered when replying with available services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment">
+            <xs:annotation>
+              <xs:documentation>The shipment for which a rate quote (or rate-shopping comparison) is desired.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateRequestType">
+        <xs:annotation>
+          <xs:documentation>Indicates the type of rates to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCOUNT"/>
+          <xs:enumeration value="LIST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RatedPackageDetail">
+        <xs:annotation>
+          <xs:documentation>If requesting rates using the PackageDetails element (one package at a time) in the request, the rates for each package will be returned in this element. Currently total piece total weight rates are also retuned in this element.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TrackingIds" type="ns:TrackingId" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Echoed from the corresponding package in the rate request (if provided).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with request containing PACKAGE_GROUPS, to identify which group of identical packages was used to produce a reply item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The difference between "list" and "account" net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdjustedCodCollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Ground COD is package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeClass" type="ns:OversizeClassType" minOccurs="0"/>
+          <xs:element name="PackageRateDetail" type="ns:PackageRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data that are tied to a specific package and rate type combination.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RatedShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This class groups the shipment and package rating data for a specific rate type for use in a rating reply, which groups result data by rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The difference between "list" and "account" total net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdjustedCodCollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Ground COD is package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRateDetail" type="ns:ShipmentRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The shipment-level totals for this rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedPackages" type="ns:RatedPackageDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The package-level data for this rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RatedWeightMethod">
+        <xs:annotation>
+          <xs:documentation>The method used to calculate the weight to be used in rating the package..</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="AVERAGE_PACKAGE_WEIGHT_MINIMUM"/>
+          <xs:enumeration value="BALLOON"/>
+          <xs:enumeration value="DIM"/>
+          <xs:enumeration value="FREIGHT_MINIMUM"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+          <xs:enumeration value="PACKAGING_MINIMUM"/>
+          <xs:enumeration value="WEIGHT_BREAK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rebate">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RebateType" type="ns:RebateType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RebateType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RecipientCustomsId">
+        <xs:annotation>
+          <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:RecipientCustomsIdType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the kind of identification being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the actual ID value, of the type specified above.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RecipientCustomsIdType">
+        <xs:annotation>
+          <xs:documentation>Type of Brazilian taxpayer identifier provided in Recipient/TaxPayerIdentification/Number. For shipments bound for Brazil this overrides the value in Recipient/TaxPayerIdentification/TinType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMPANY"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+          <xs:enumeration value="PASSPORT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RegulatoryControlType">
+        <xs:annotation>
+          <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EU_CIRCULATION"/>
+          <xs:enumeration value="FOOD_OR_PERISHABLE"/>
+          <xs:enumeration value="NAFTA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RequestedPackageDetailType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INDIVIDUAL_PACKAGES"/>
+          <xs:enumeration value="PACKAGE_GROUPS"/>
+          <xs:enumeration value="PACKAGE_SUMMARY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RequestedPackageLineItem">
+        <xs:annotation>
+          <xs:documentation>This class rationalizes RequestedPackage and RequestedPackageSummary from previous interfaces. The way in which it is uses within a RequestedShipment depends on the RequestedPackageDetailType value specified for that shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with INDIVIDUAL_PACKAGE, as a unique identifier of each requested package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a unique identifier of each group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupPackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a count of packages within a group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0"/>
+          <xs:element name="InsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalInsuredValue and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalweight and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="PhysicalPackaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides additional detail on how the customer has physically packaged this item. As of June 2009, required for packages moving under international and SmartPost services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text describing the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerReferences" type="ns:CustomerReference" minOccurs="0" maxOccurs="3"/>
+          <xs:element name="SpecialServicesRequested" type="ns:PackageSpecialServicesRequested" minOccurs="0"/>
+          <xs:element name="ContentRecords" type="ns:ContentRecord" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RequestedShipment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the shipment being tendered to FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the date and time the package is tendered to FedEx. Both the date and time portions of the string are expected to be used. The date should not be a past date or a date more than 10 days in the future. The time is the local time of the shipment based on the shipper's time zone. The date component must be in the format: YYYY-MM-DD (e.g. 2006-06-26). The time component must be in the format: HH:MM:SS using a 24 hour clock (e.g. 11:00 a.m. is 11:00:00, whereas 5:00 p.m. is 17:00:00). The date and time parts are separated by the letter T (e.g. 2006-06-26T17:00:00). There is also a UTC offset component indicating the number of hours/mainutes from UTC (e.g 2006-06-26T17:00:00-0400 is defined form June 26, 2006 5:00 pm Eastern Time).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DropoffType" type="ns:DropoffType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup. See DropoffType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the total weight of the shipment being conveyed to FedEx.This is only applicable to International shipments and should only be used on the first package of a mutiple piece shipment.This value contains 1 explicit decimal position</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalInsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total insured amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Shipper" type="ns:Party">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for shipping the package. Shipper and Origin should have the same address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipient" type="ns:Party">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party receiving the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientLocationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a recipient location</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Origin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Physical starting address for the shipment, if different from shipper's address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingChargesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data indicating the method and means of payment to FedEx for providing shipping services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicesRequested" type="ns:ShipmentSpecialServicesRequested" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data regarding special services requested by the shipper for this shipment. If the shipper is requesting a special service which requires additional data (e.g. COD), the special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object. For example, to request COD, "COD" must be included in the SpecialServiceTypes collection and the CodDetail object must contain the required data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpressFreightDetail" type="ns:ExpressFreightDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightShipmentDetail" type="ns:FreightShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Ground Home Delivery and Freight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsClearanceDetail" type="ns:CustomsClearanceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customs clearance data, used for both international and intra-country shipping.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PickupDetail" type="ns:PickupDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use in "process tag" transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:SmartPostShipmentDetail" minOccurs="0"/>
+          <xs:element name="BlockInsightVisibility" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If true, only the shipper/payor will have visibility of this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelSpecification" type="ns:LabelSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about the image format and printer type the label is to returned in.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentSpecification" type="ns:ShippingDocumentSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details such as shipping document types, NAFTA information, CI information, and GAA information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateRequestTypes" type="ns:RateRequestType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies whether and what kind of rates the customer wishes to have quoted on this shipment. The reply will also be constrained by other data on the shipment and customer.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EdtRequestType" type="ns:EdtRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether the customer wishes to have Estimated Duties and Taxes provided with the rate quotation on this shipment. Only applies with shipments moving under international services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For a multiple piece shipment this is the total number of packages in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDetail" type="ns:RequestedPackageDetailType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether packages are described individually, in groups, or summarized in a single description for total-piece-total-weight. This field controls which fields of the RequestedPackageLineItem will be used, and how many occurrences are expected.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedPackageLineItems" type="ns:RequestedPackageLineItem" minOccurs="0" maxOccurs="999">
+            <xs:annotation>
+              <xs:documentation>One or more package-attribute descriptions, each of which describes an individual package, a group of identical packages, or (for the total-piece-total-weight case) common characteristics all packages in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RequestedShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:enumeration>
+          <xs:enumeration value="COMMERCIAL_INVOICE">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:enumeration>
+          <xs:enumeration value="CUSTOMER_SPECIFIED_LABELS"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:enumeration>
+          <xs:enumeration value="PRO_FORMA_INVOICE">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:enumeration>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RequiredShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CANADIAN_B13A"/>
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="INTERNATIONAL_AIRWAY_BILL"/>
+          <xs:enumeration value="MAIL_SERVICE_AIRWAY_BILL"/>
+          <xs:enumeration value="SHIPPERS_EXPORT_DECLARATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnEMailAllowedSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>These values are used to control the availability of certain special services at the time when a customer uses the e-mail label link to create a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ReturnEMailDetail">
+        <xs:sequence>
+          <xs:element name="MerchantPhoneNumber" type="xs:string" minOccurs="0"/>
+          <xs:element name="AllowedSpecialServices" type="ns:ReturnEMailAllowedSpecialServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the allowed (merchant-authorized) special services which may be selected when the subsequent shipment is created. Only services represented in EMailLabelAllowedSpecialServiceType will be controlled by this list.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ReturnShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Information relating to a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReturnType" type="ns:ReturnType">
+            <xs:annotation>
+              <xs:documentation>The type of return shipment that is being requested. At present the only type of retrun shipment that is supported is PRINT_RETURN_LABEL. With this option you can print a return label to insert into the box of an outbound shipment. This option can not be used to print an outbound label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rma" type="ns:Rma" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnEMailDetail" type="ns:ReturnEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specific information about the delivery of the email and options for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ReturnType">
+        <xs:annotation>
+          <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="PENDING"/>
+          <xs:enumeration value="PRINT_RETURN_LABEL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedRateType">
+        <xs:annotation>
+          <xs:documentation>The "PAYOR..." rates are expressed in the currency identified in the payor's rate table(s). The "RATED..." rates are expressed in the currency of the origin country.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAYOR_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="PAYOR_LIST_PACKAGE"/>
+          <xs:enumeration value="PAYOR_LIST_SHIPMENT"/>
+          <xs:enumeration value="RATED_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="RATED_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="RATED_LIST_PACKAGE"/>
+          <xs:enumeration value="RATED_LIST_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rma">
+        <xs:annotation>
+          <xs:documentation>Return Merchant Authorization</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization Number</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>20</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reason" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the return.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>60</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ServiceOptionType">
+        <xs:annotation>
+          <xs:documentation>These values control the optional features of service that may be combined in a commitment/rate comparision transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SMART_POST_ALLOWED_INDICIA"/>
+          <xs:enumeration value="SMART_POST_HUB_ID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ServiceSubOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Supporting detail for applied options identified in a rate quote.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightGuarantee" type="ns:FreightGuaranteeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of Freight Guarantee applied, if FREIGHT_GUARANTEE is applied to the rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostHubId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the smartPostHubId used during rate quote, if SMART_POST_HUB_ID is a variable option on the rate request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostIndicia" type="ns:SmartPostIndiciaType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the indicia used during rate quote, if SMART_POST_ALLOWED_INDICIA is a variable option on the rate request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EUROPE_FIRST_INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="FEDEX_1_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_2_DAY"/>
+          <xs:enumeration value="FEDEX_2_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_3_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_EXPRESS_SAVER"/>
+          <xs:enumeration value="FEDEX_FREIGHT"/>
+          <xs:enumeration value="FEDEX_GROUND"/>
+          <xs:enumeration value="FEDEX_NATIONAL_FREIGHT"/>
+          <xs:enumeration value="FIRST_OVERNIGHT"/>
+          <xs:enumeration value="GROUND_HOME_DELIVERY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_FIRST"/>
+          <xs:enumeration value="INTERNATIONAL_GROUND"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_FREIGHT"/>
+          <xs:enumeration value="PRIORITY_OVERNIGHT"/>
+          <xs:enumeration value="SMART_POST"/>
+          <xs:enumeration value="STANDARD_OVERNIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentDryIceDetail">
+        <xs:annotation>
+          <xs:documentation>Shipment-level totals of dry ice data across all packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of packages in the shipment that contain dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total shipment dry ice weight for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a shipment's total/summary rates, as calculated per a specific rate type. The "total..." fields may differ from the sum of corresponding package data for Multiweight or Express MPS.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateScale" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate scale used.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateZone" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate zone used (based on origin and destination).</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>1</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PricingCode" type="ns:PricingCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of pricing used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CurrencyExchangeRate" type="ns:CurrencyExchangeRate" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialRatingApplied" type="ns:SpecialRatingAppliedType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisor" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value used to calculate the weight based on the dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisorType" type="ns:RateDimensionalDivisorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FuelSurchargePercent" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="TotalBillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight used to calculate these rates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Sum of dimensional weights for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBaseCharge" type="ns:Money" minOccurs="0"/>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total discounts used in the rate calculation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The freight charge minus discounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total amount of all surcharges applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of the transportation-based taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net charge after applying all discounts and surcharges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of all values under this shipment's dutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetChargeWithDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetCharge + totalDutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment AND duties, taxes and transportation charges are all paid by the same sender's account.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightRateDetail" type="ns:FreightRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data specific to FedEx Freight and FedEx National Freight services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+               <xs:documentation>All rebates that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All transportation-based taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesAndTaxes" type="ns:EdtCommodityTax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All commodity-based duties and taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "order level" variable handling charges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalVariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total of all variable handling charges at both shipment (order) and package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShipmentSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CALL_BEFORE_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUSTOM_DELIVERY_WINDOW"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DO_NOT_BREAK_DOWN_PALLETS"/>
+          <xs:enumeration value="DO_NOT_STACK_PALLETS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EAST_COAST_SPECIAL"/>
+          <xs:enumeration value="ELECTRONIC_TRADE_DOCUMENTS"/>
+          <xs:enumeration value="EMAIL_NOTIFICATION"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FOOD"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FUTURE_DAY_SHIPMENT"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_PREMIUM"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="PENDING_SHIPMENT"/>
+          <xs:enumeration value="POISON"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="RETURN_SHIPMENT"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="TOP_LOAD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the shipment level for some or all service types. If the shipper is requesting a special service which requires additional data (such as the COD amount), the shipment special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:ShipmentSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment (or other shipment-level transaction).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment. This element is required when SpecialServiceType.COD is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldAtLocationDetail" type="ns:HoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient. This element is required when SpecialServiceType.HOLD_AT_LOCATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailNotificationDetail" type="ns:EMailNotificationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for FedEx to provide email notification to the customer regarding the shipment. This element is required when SpecialServiceType.EMAIL_NOTIFICATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnShipmentDetail" type="ns:ReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Printed Return Label. This element is required when SpecialServiceType.PRINTED_RETURN_LABEL is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PendingShipmentDetail" type="ns:PendingShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field should be populated for pending shipments (e.g. e-mail label) It is required by a PENDING_SHIPMENT special service type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDryIceDetail" type="ns:ShipmentDryIceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of packages with dry ice and the total weight of the dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HomeDeliveryPremiumDetail" type="ns:HomeDeliveryPremiumDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Home Delivery options. This element is required when SpecialServiceType.HOME_DELIVERY_PREMIUM is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FlatbedTrailerDetail" type="ns:FlatbedTrailerDetail" minOccurs="0"/>
+          <xs:element name="FreightGuaranteeDetail" type="ns:FreightGuaranteeDetail" minOccurs="0"/>
+          <xs:element name="EtdDetail" type="ns:EtdDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Electronic Trade document references.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDeliveryWindowDetail" type="ns:CustomDeliveryWindowDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification for date or range of dates on which delivery is to be attempted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentDispositionDetail">
+        <xs:annotation>
+          <xs:documentation>Each occurrence of this class specifies a particular way in which a kind of shipping document is to be produced and provided.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DispositionType" type="ns:ShippingDocumentDispositionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Values in this field specify how to create and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to organize all documents of this type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailDetail" type="ns:ShippingDocumentEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to e-mail document images.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintDetail" type="ns:ShippingDocumentPrintDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how a queued document is to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentDispositionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to return a shipping document to the caller.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONFIRMED"/>
+          <xs:enumeration value="DEFERRED_RETURNED"/>
+          <xs:enumeration value="DEFERRED_STORED"/>
+          <xs:enumeration value="EMAILED"/>
+          <xs:enumeration value="QUEUED"/>
+          <xs:enumeration value="RETURNED"/>
+          <xs:enumeration value="STORED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies how to e-mail shipping documents.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailRecipients" type="ns:ShippingDocumentEMailRecipient" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Provides the roles and email addresses for e-mail recipients.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentEMailGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the convention by which documents are to be grouped as e-mail attachments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentEMailGroupingType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BY_RECIPIENT"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailRecipient">
+        <xs:annotation>
+          <xs:documentation>Specifies an individual recipient of e-mailed shipping document(s).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RecipientType" type="ns:EMailNotificationRecipientType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship of this recipient in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Address to which the document is to be sent.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentFormat">
+        <xs:annotation>
+          <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TopOfPageOffset" type="ns:LinearMeasure" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how far down the page to move the beginning of the image; allows for printing on letterhead and other pre-printed stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0"/>
+          <xs:element name="StockType" type="ns:ShippingDocumentStockType" minOccurs="0"/>
+          <xs:element name="ProvideInstructions" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For those shipping document types which have both a "form" and "instructions" component (e.g. NAFTA Certificate of Origin and General Agency Agreement), this field indicates whether to provide the instructions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs the language to be used for this individual document, independently from other content returned for the same shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentGroupingType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to organize all shipping documents of the same type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSOLIDATED_BY_DOCUMENT_TYPE"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ShippingDocumentImageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DPL"/>
+          <xs:enumeration value="EPL2"/>
+          <xs:enumeration value="PDF"/>
+          <xs:enumeration value="PNG"/>
+          <xs:enumeration value="ZPLII"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentPrintDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies printing options for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PrinterId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides environment-specific printer identification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentSpecification">
+        <xs:annotation>
+          <xs:documentation>Contains all data required for additional (non-label) shipping documents to be produced in conjunction with a specific shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShippingDocumentTypes" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents requested by the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CertificateOfOrigin" type="ns:CertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="CommercialInvoiceDetail" type="ns:CommercialInvoiceDetail" minOccurs="0"/>
+          <xs:element name="CustomPackageDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of each package-level custom document (the same specification is used for all packages).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomShipmentDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of a shipment-level custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GeneralAgencyAgreementDetail" type="ns:GeneralAgencyAgreementDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details pertaining to the GAA.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaCertificateOfOriginDetail" type="ns:NaftaCertificateOfOriginDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details pertaining to NAFTA COO.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Op900Detail" type="ns:Op900Detail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentStockType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of paper (stock) on which a document will be printed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OP_900_LG_B"/>
+          <xs:enumeration value="OP_900_LL_B"/>
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureOptionDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for FedEx delivery signature services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OptionType" type="ns:SignatureOptionType">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature services option selected by the customer for this shipment. See OptionType for the list of valid values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureReleaseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature release authorization number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SignatureOptionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the delivery signature services options offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADULT"/>
+          <xs:enumeration value="DIRECT"/>
+          <xs:enumeration value="INDIRECT"/>
+          <xs:enumeration value="NO_SIGNATURE_REQUIRED"/>
+          <xs:enumeration value="SERVICE_DEFAULT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostAncillaryEndorsementType">
+        <xs:annotation>
+          <xs:documentation>These values are mutually exclusive; at most one of them can be attached to a SmartPost shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS_CORRECTION"/>
+          <xs:enumeration value="CARRIER_LEAVE_IF_NO_RESPONSE"/>
+          <xs:enumeration value="CHANGE_SERVICE"/>
+          <xs:enumeration value="FORWARDING_SERVICE"/>
+          <xs:enumeration value="RETURN_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostIndiciaType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MEDIA_MAIL"/>
+          <xs:enumeration value="PARCEL_RETURN"/>
+          <xs:enumeration value="PARCEL_SELECT"/>
+          <xs:enumeration value="PRESORTED_BOUND_PRINTED_MATTER"/>
+          <xs:enumeration value="PRESORTED_STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SmartPostShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required for shipments handled under the SMART_POST and GROUND_SMART_POST service types.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Indicia" type="ns:SmartPostIndiciaType" minOccurs="0"/>
+          <xs:element name="AncillaryEndorsement" type="ns:SmartPostAncillaryEndorsementType" minOccurs="0"/>
+          <xs:element name="HubId" type="xs:string" minOccurs="0"/>
+          <xs:element name="CustomerManifestId" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SpecialRatingAppliedType">
+        <xs:annotation>
+          <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_FUEL_SURCHARGE"/>
+          <xs:enumeration value="IMPORT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Surcharge">
+        <xs:annotation>
+          <xs:documentation>Identifies each surcharge applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SurchargeType" type="ns:SurchargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Level" type="ns:SurchargeLevelType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SurchargeLevelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SurchargeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_HANDLING"/>
+          <xs:enumeration value="ANCILLARY_FEE"/>
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CANADIAN_DESTINATION"/>
+          <xs:enumeration value="CLEARANCE_ENTRY_FEE"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUT_FLOWERS"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DELIVERY_AREA"/>
+          <xs:enumeration value="DELIVERY_CONFIRMATION"/>
+          <xs:enumeration value="DOCUMENTATION_FEE"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EMAIL_LABEL"/>
+          <xs:enumeration value="EUROPE_FIRST"/>
+          <xs:enumeration value="EXCESS_VALUE"/>
+          <xs:enumeration value="EXHIBITION"/>
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="FICE"/>
+          <xs:enumeration value="FLATBED"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FREIGHT_ON_VALUE"/>
+          <xs:enumeration value="FUEL"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_APPOINTMENT"/>
+          <xs:enumeration value="HOME_DELIVERY_DATE_CERTAIN"/>
+          <xs:enumeration value="HOME_DELIVERY_EVENING"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="INSURED_VALUE"/>
+          <xs:enumeration value="INTERHAWAII"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="METRO_DELIVERY"/>
+          <xs:enumeration value="METRO_PICKUP"/>
+          <xs:enumeration value="NON_MACHINABLE"/>
+          <xs:enumeration value="OFFSHORE"/>
+          <xs:enumeration value="ON_CALL_PICKUP"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="OUT_OF_DELIVERY_AREA"/>
+          <xs:enumeration value="OUT_OF_PICKUP_AREA"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="PIECE_COUNT_VERIFICATION"/>
+          <xs:enumeration value="PRE_DELIVERY_NOTIFICATION"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="REGIONAL_MALL_DELIVERY"/>
+          <xs:enumeration value="REGIONAL_MALL_PICKUP"/>
+          <xs:enumeration value="RESIDENTIAL_DELIVERY"/>
+          <xs:enumeration value="RESIDENTIAL_PICKUP"/>
+          <xs:enumeration value="RETURN_LABEL"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+          <xs:enumeration value="TARP"/>
+          <xs:enumeration value="THIRD_PARTY_CONSIGNEE"/>
+          <xs:enumeration value="TRANSMART_SERVICE_FEE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Tax">
+        <xs:annotation>
+          <xs:documentation>Identifies each tax applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:TaxType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="GST"/>
+          <xs:enumeration value="HST"/>
+          <xs:enumeration value="INTRACOUNTRY"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PST"/>
+          <xs:enumeration value="VAT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TaxpayerIdentification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for taxpayer identification information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TinType" type="ns:TinType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the category of the taxpayer identification number. See TinType for the list of values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the taxpayer identification number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>18</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Usage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the usage of Tax Identification Number in Shipment processing</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TermsOfSaleType">
+        <xs:annotation>
+          <xs:documentation>
+            Required for dutiable international express or ground shipment. This field is not applicable to an international PIB (document) or a non-document which does not require a commercial invoice express shipment.
+            CFR_OR_CPT (Cost and Freight/Carriage Paid TO)
+            CIF_OR_CIP (Cost Insurance and Freight/Carraige Insurance Paid)
+            DDP (Delivered Duty Paid)
+            DDU (Delivered Duty Unpaid)
+            EXW (Ex Works)
+            FOB_OR_FCA (Free On Board/Free Carrier)
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CFR_OR_CPT"/>
+          <xs:enumeration value="CIF_OR_CIP"/>
+          <xs:enumeration value="DDP"/>
+          <xs:enumeration value="DDU"/>
+          <xs:enumeration value="EXW"/>
+          <xs:enumeration value="FOB_OR_FCA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TinType">
+        <xs:annotation>
+          <xs:documentation>Identifies the category of the taxpayer identification number.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_NATIONAL"/>
+          <xs:enumeration value="BUSINESS_STATE"/>
+          <xs:enumeration value="PERSONAL_NATIONAL"/>
+          <xs:enumeration value="PERSONAL_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackingId">
+        <xs:sequence>
+          <xs:element name="TrackingIdType" type="ns:TrackingIdType" minOccurs="0"/>
+          <xs:element name="FormId" type="xs:string" minOccurs="0"/>
+          <xs:element name="TrackingNumber" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackingIdType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPRESS"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TransactionDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerTransactionId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form text to be echoed back in the reply. Used to match requests and replies.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>40</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs data payload language/translations (contrasted with ClientDetail.localization, which governs Notification.localizedMessage language selection).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TransitTimeType">
+        <xs:annotation>
+          <xs:documentation>Time in transit from pickup to delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ONE_DAY"/>
+          <xs:enumeration value="TWO_DAYS"/>
+          <xs:enumeration value="THREE_DAYS"/>
+          <xs:enumeration value="FOUR_DAYS"/>
+          <xs:enumeration value="FIVE_DAYS"/>
+          <xs:enumeration value="SIX_DAYS"/>
+          <xs:enumeration value="SEVEN_DAYS"/>
+          <xs:enumeration value="EIGHT_DAYS"/>
+          <xs:enumeration value="NINE_DAYS"/>
+          <xs:enumeration value="TEN_DAYS"/>
+          <xs:enumeration value="ELEVEN_DAYS"/>
+          <xs:enumeration value="TWELVE_DAYS"/>
+          <xs:enumeration value="THIRTEEN_DAYS"/>
+          <xs:enumeration value="FOURTEEN_DAYS"/>
+          <xs:enumeration value="FIFTEEN_DAYS"/>
+          <xs:enumeration value="SIXTEEN_DAYS"/>
+          <xs:enumeration value="SEVENTEEN_DAYS"/>
+          <xs:enumeration value="EIGHTEEN_DAYS"/>
+          <xs:enumeration value="NINETEEN_DAYS"/>
+          <xs:enumeration value="TWENTY_DAYS"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="FileName" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentContent" type="xs:base64Binary" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentIdProducer">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CSHP"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentProducerType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CLS"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentReferenceDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="DocumentId" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentIdProducer" type="ns:UploadDocumentIdProducer" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="VariableHandlingChargeDetail">
+        <xs:annotation>
+          <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingChargeType" type="ns:VariableHandlingChargeType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FixedValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Variable handling charge type of FIXED_VALUE. Contains the amount to be added to the freight charge. Contains 2 explicit decimal positions with a total max length of 10 including the decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PercentValue" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Variable handling charge types PERCENTAGE_OF_BASE, PERCENTAGE_OF_NET or PERCETAGE_OF_NET_EXCL_TAXES. Used to calculate the amount to be added to the freight charge. Contains 2 explicit decimal positions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VariableHandlingChargeType">
+        <xs:annotation>
+          <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_AMOUNT"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE_EXCLUDING_TAXES"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="VariableHandlingCharges">
+        <xs:annotation>
+          <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charge amount calculated based on the requested variable handling charge detail.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalCustomerCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The calculated varibale handling charge plus the net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VersionId">
+        <xs:annotation>
+          <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ServiceId" type="xs:string" minOccurs="1" fixed="crs">
+            <xs:annotation>
+              <xs:documentation>Identifies a system or sub-system which performs an operation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Major" type="xs:int" fixed="9" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service business level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Intermediate" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service interface level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Minor" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service code level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Volume">
+        <xs:annotation>
+          <xs:documentation>Three-dimensional volume/cubic measurement.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:VolumeUnits" minOccurs="0"/>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VolumeUnits">
+        <xs:annotation>
+          <xs:documentation>Units of three-dimensional volume/cubic measure.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUBIC_FT"/>
+          <xs:enumeration value="CUBIC_M"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="WebAuthenticationCredential">
+        <xs:annotation>
+          <xs:documentation>Two part authentication string used for the sender's identity</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Key" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifying part of authentication credential. This value is provided by FedEx after registration</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>16</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Secret part of authentication key. This value is provided by FedEx after registration.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>25</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="WebAuthenticationDetail">
+        <xs:annotation>
+          <xs:documentation>Used in authentication of the sender's identity.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UserCredential" type="ns:WebAuthenticationCredential" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Credential used to authenticate a specific software application. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Weight">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the heaviness of an object.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:WeightUnits">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure associated with a weight value. See WeightUnits for the list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:decimal">
+            <xs:annotation>
+              <xs:documentation>Identifies the weight value of the package/shipment. Contains 1 explicit decimal position</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="WeightUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the unit of measure associated with a weight value. See WeightUnits for the list of valid enumerated values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KG"/>
+          <xs:enumeration value="LB"/>
+        </xs:restriction>
+      </xs:simpleType>
+    </xs:schema>
+  </types>
+  <message name="RateRequest">
+    <part name="RateRequest" element="ns:RateRequest"/>
+  </message>
+  <message name="RateReply">
+    <part name="RateReply" element="ns:RateReply"/>
+  </message>
+  <portType name="RatePortType">
+    <operation name="getRates" parameterOrder="RateRequest">
+      <input message="ns:RateRequest"/>
+      <output message="ns:RateReply"/>
+    </operation>
+  </portType>
+  <binding name="RateServiceSoapBinding" type="ns:RatePortType">
+    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="getRates">
+      <s1:operation soapAction="getRates" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="RateService">
+    <port name="RateServicePort" binding="ns:RateServiceSoapBinding">
+      <s1:address location=""/>
+    </port>
+  </service>
+</definitions>
diff --git app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v10.wsdl app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v10.wsdl
new file mode 100644
index 0000000..6a35329
--- /dev/null
+++ app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v10.wsdl
@@ -0,0 +1,5472 @@
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/ship/v10"
+             xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/"
+             targetNamespace="http://fedex.com/ws/ship/v10" name="ShipServiceDefinitions">
+  <types>
+    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/ship/v10">
+      <xs:element name="CancelPendingShipmentReply" type="ns:CancelPendingShipmentReply"/>
+      <xs:element name="CancelPendingShipmentRequest" type="ns:CancelPendingShipmentRequest"/>
+      <xs:element name="CreatePendingShipmentReply" type="ns:CreatePendingShipmentReply"/>
+      <xs:element name="CreatePendingShipmentRequest" type="ns:CreatePendingShipmentRequest"/>
+      <xs:element name="DeleteShipmentRequest" type="ns:DeleteShipmentRequest"/>
+      <xs:element name="DeleteTagRequest" type="ns:DeleteTagRequest"/>
+      <xs:element name="ProcessShipmentReply" type="ns:ProcessShipmentReply"/>
+      <xs:element name="ProcessShipmentRequest" type="ns:ProcessShipmentRequest"/>
+      <xs:element name="ProcessTagReply" type="ns:ProcessTagReply"/>
+      <xs:element name="ProcessTagRequest" type="ns:ProcessTagRequest"/>
+      <xs:element name="ShipmentReply" type="ns:ShipmentReply"/>
+      <xs:element name="ValidateShipmentRequest" type="ns:ValidateShipmentRequest"/>
+      <xs:complexType name="AdditionalLabelsDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies additional labels to be produced. All required labels for shipments will be produced without the need to request additional labels. These are only available as thermal labels.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:AdditionalLabelsType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of additional labels to return.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The number of this type label to return</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="AdditionalLabelsType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of additional labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="CUSTOMS"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="FREIGHT_REFERENCE"/>
+          <xs:enumeration value="MANIFEST"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Address">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StreetLines" type="xs:string" minOccurs="0" maxOccurs="2">
+            <xs:annotation>
+              <xs:documentation>Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="City" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of city, town, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrbanizationCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relevant only to addresses in Puerto Rico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The two-letter code used to identify a country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Residential" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this address residential (as opposed to commercial).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="AstraLabelElement">
+        <xs:sequence>
+          <xs:element name="Number" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Position of Astra element</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Content" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Content corresponding to the Astra Element</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="B13AFilingOptionType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies which filing option is being exercised by the customer.
+            Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FILED_ELECTRONICALLY"/>
+          <xs:enumeration value="MANUALLY_ATTACHED"/>
+          <xs:enumeration value="NOT_REQUIRED"/>
+          <xs:enumeration value="SUMMARY_REPORTING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="BarcodeSymbologyType">
+        <xs:annotation>
+          <xs:documentation>Identification of the type of barcode (symbology) used on FedEx documents and labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CODE128B"/>
+          <xs:enumeration value="CODE128C"/>
+          <xs:enumeration value="CODE39"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="BinaryBarcode">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents a barcode whose content must be represented as binary data (i.e. not ASCII text).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:BinaryBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The kind of barcode data in this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:base64Binary" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data content of this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="BinaryBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON_2D"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CancelPendingShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1"/>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded"/>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0"/>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CancelPendingShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to Cancel a Pending shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CarrierCodeType">
+        <xs:annotation>
+          <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FDXC"/>
+          <xs:enumeration value="FDXE"/>
+          <xs:enumeration value="FDXG"/>
+          <xs:enumeration value="FXCC"/>
+          <xs:enumeration value="FXFR"/>
+          <xs:enumeration value="FXSP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Certificate of Origin ( e.g. whether or not to include the instructions, image type, etc ...)</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentFormat" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ClearanceBrokerageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of brokerage to be applied to a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_INCLUSIVE"/>
+          <xs:enumeration value="BROKER_INCLUSIVE_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_SELECT"/>
+          <xs:enumeration value="BROKER_SELECT_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_UNASSIGNED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ClientDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for the client submitting a transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The FedEx account number associated with this transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MeterNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This number is assigned by FedEx and identifies the unique device from which the request is originating</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntegratorId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in transactions which require identification of the Fed Ex Office integrator.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to be used for human-readable Notification.localizedMessages in responses to the request containing this ClientDetail object. Different requests from the same client may contain different Localization data. (Contrast with TransactionDetail.localization, which governs data payload language/translation.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodAddTransportationChargesType">
+        <xs:annotation>
+          <xs:documentation>Identifies what freight charges should be added to the COD collect amount.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADD_ACCOUNT_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_CHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_ACCOUNT_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_LIST_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CodCollectionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of funds FedEx should collect upon shipment delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ANY"/>
+          <xs:enumeration value="CASH"/>
+          <xs:enumeration value="COMPANY_CHECK"/>
+          <xs:enumeration value="GUARANTEED_FUNDS"/>
+          <xs:enumeration value="PERSONAL_CHECK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CodCollectionAmount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="AddTransportationCharges" type="ns:CodAddTransportationChargesType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies if freight charges are to be added to the COD amount. This element determines which freight charges should be added to the COD collect amount. See CodAddTransportationChargesType for a list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectionType" type="ns:CodCollectionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of funds FedEx should collect upon package delivery</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For Express this is the descriptive data that is used for the recipient of the FedEx Letter containing the COD payment. For Ground this is the descriptive data for the party to receive the payment that prints the COD receipt.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceIndicator" type="ns:CodReturnReferenceIndicatorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CodReturnPackageDetail">
+        <xs:sequence>
+          <xs:element name="CollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The COD amount (after any accumulations) that must be collected upon delivery of a package shipped using the COD special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Electronic" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the data which form the Astra and 2DCommon barcodes that print on the COD return label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodReturnReferenceIndicatorType">
+        <xs:annotation>
+          <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INVOICE"/>
+          <xs:enumeration value="PO"/>
+          <xs:enumeration value="REFERENCE"/>
+          <xs:enumeration value="TRACKING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodReturnShipmentDetail">
+        <xs:sequence>
+          <xs:element name="CollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The COD amount (after any accumulations) that must be collected upon delivery of a package shipped using the COD special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Handling" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceTypeDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The description of the FedEx service type used for the COD return shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>70</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The description of the packaging used for the COD return shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>40</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SecuredDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Remitter" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRoutingDetail" type="ns:RoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The CodRoutingDetail element will contain the COD return tracking number and form id. In the case of a COD multiple piece shipment these will need to be inserted in the request for the last piece of the multiple piece shipment.
+                The service commitment is the only other element of the RoutingDetail that is used for a CodRoutingDetail.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the data which form the Astra and 2DCommon barcodes that print on the COD return label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoice">
+        <xs:annotation>
+          <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through the FedEx Systems. Customers are responsible for printing their own Commercial Invoice.If you would likeFedEx to generate a Commercial Invoice and transmit it to Customs. for clearance purposes, you need to specify that in the ShippingDocumentSpecification element. If you would like a copy of the Commercial Invoice that FedEx generated returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies element. Commercial Invoice support consists of maximum of 99 commodity line items.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Comments" type="xs:string" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>Any comments that need to be communicated about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any freight charges that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TaxesOrMiscellaneousCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any taxes or miscellaneous charges(other than Freight charges or Insurance charges) that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any packing costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any handling costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclarationStatment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentTerms" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerInvoiceNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer assigned Invoice number</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginatorName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of the International Expert that completed the Commercial Invoice different from Sender.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsOfSale" type="ns:TermsOfSaleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for dutiable international Express or Ground shipment. This field is not applicable to an international PIB(document) or a non-document which does not require a Commercial Invoice</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoiceDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Commercial Invoice( e.g. image type) Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of a customer supplied image to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Commodity">
+        <xs:annotation>
+          <xs:documentation>
+            For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+            If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of this commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NumberOfPieces" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Complete and accurate description of this commodity.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>450</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryOfManufacture" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Country code where commodity contents were produced or manufactured in their final form.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Unique alpha/numeric representing commodity item.
+                At least one occurrence is required for US Export shipments if the Customs Value is greater than $2500 or if a valid US Export license is required.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total weight of this commodity. 1 explicit decimal position. Max length 11 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of a commodity in total number of pieces for this line item. Max length is 9</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QuantityUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unit of measure used to express the quantity of this commodity line item.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalMeasures" type="ns:Measure" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains only additional quantitative information other than weight and quantity to calculate duties and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UnitPrice" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value of each unit in Quantity. Six explicit decimal positions, Max length 18 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total customs value for this line item.
+                It should equal the commodity unit quantity times commodity unit value.
+                Six explicit decimal positions, max length 18 including decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExciseConditions" type="ns:EdtExciseCondition" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional characteristic of commodity used to calculate duties and taxes</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable to US export shipping only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseExpirationDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Date of expiration. Must be at least 1 day into future.
+                The date that the Commerce Export License expires. Export License commodities may not be exported from the U.S. on an expired license.
+                Applicable to US Export shipping only.
+                Required only if commodity is shipped on commerce export license, and Export License Number is supplied.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CIMarksAndNumbers" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                An identifying mark or number used on the packaging of a shipment to help customers identify a particular shipment.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaDetail" type="ns:NaftaCommodityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All data required for this commodity in NAFTA Certificate of Origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedEtdDetail">
+        <xs:sequence>
+          <xs:element name="FolderId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier for all clearance documents associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UploadDocumentReferenceDetails" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedHoldAtLocationDetail">
+        <xs:sequence>
+          <xs:element name="HoldingLocation" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the branded location name, the hold at location phone number and the address of the location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldingLocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of FedEx location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedPackageDetail">
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The package sequence number of this package in a multiple piece shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingIds" type="ns:TrackingId" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The Tracking number and form id for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with request containing PACKAGE_GROUPS, to identify which group of identical packages was used to produce a reply item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeClass" type="ns:OversizeClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Oversize class for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageRating" type="ns:PackageRating" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All package-level rating data for this package, which may include data for multiple rate types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroundServiceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Associated with package, due to interaction with per-package hazardous materials presence/absence.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data that is used to from the Astra and 2DCommon barcodes for the label..</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraHandlingText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The textual description of the special service applied to the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraLabelElements" type="ns:AstraLabelElement" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDocuments" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All package-level shipping documents (other than labels and barcodes). For use in loads after January, 2008.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnDetail" type="ns:CodReturnPackageDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the COD return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOption" type="ns:SignatureOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual signature option applied, to allow for cases in which the original value conflicted with other service features in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:ValidatedHazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package, using updated hazardous commodity description data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedShipmentDetail">
+        <xs:sequence>
+          <xs:element name="UsDomestic" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this is a US Domestic shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCode" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the carrier that will be used to deliver this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MasterTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The master tracking number and form id of this multiple piece shipment. This information is to be provided for each subsequent of a multiple piece shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceTypeDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the FedEx service used for this shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>70</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging used for this shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>40</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RoutingDetail" type="ns:ShipmentRoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AccessDetail" type="ns:PendingShipmentAccessDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with pending shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TagDetail" type="ns:CompletedTagDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in the reply to tag requests.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:CompletedSmartPostDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides reply information specific to SmartPost shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRating" type="ns:ShipmentRating" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All shipment-level rating data for this shipment, which may include data for multiple rate types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnDetail" type="ns:CodReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the COD return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedHoldAtLocationDetail" type="ns:CompletedHoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Returns the default holding location information when HOLD_AT_LOCATION special service is requested and the client does not specify the hold location address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IneligibleForMoneyBackGuarantee" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this shipment is eligible for a money back guarantee.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Returns any defaults or updates applied to RequestedShipment.exportDetail.exportComplianceStatement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedEtdDetail" type="ns:CompletedEtdDetail" minOccurs="0"/>
+          <xs:element name="ShipmentDocuments" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All shipment-level shipping documents (other than labels and barcodes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedPackageDetails" type="ns:CompletedPackageDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Package level details about this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedSmartPostDetail">
+        <xs:annotation>
+          <xs:documentation>Provides reply information specific to SmartPost shipments.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PickUpCarrier" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the carrier that will pick up the SmartPost shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Machinable" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether the shipment is deemed to be machineable, based on dimensions, weight, and packaging.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedTagDetail">
+        <xs:annotation>
+          <xs:documentation>Provides reply information specific to a tag request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ConfirmationNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AccessTime" type="xs:duration" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CutoffTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Location" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryCommitment" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FEDEX INTERNAL USE ONLY: for use by INET.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ConfigurableLabelReferenceEntry">
+        <xs:annotation>
+          <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>1 of 12 possible zones to position data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifiying text for the data in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A reference to a field in either the request or reply to print in this zone following the header.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A literal value to print after the header in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Contact">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a point-of-contact person.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ContactId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Client provided identifier corresponding to this contact information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's name.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Title" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's title.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompanyName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the company this contact is associated with.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneExtension" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone extension associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagerNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the pager number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the fax number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the email address associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContactAndAddress">
+        <xs:sequence>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="1"/>
+          <xs:element name="Address" type="ns:Address" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContentRecord">
+        <xs:annotation>
+          <xs:documentation>Content Record.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PartNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Part Number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Item Number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReceivedQuantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Received Quantity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CreatePendingShipmentReply">
+        <xs:annotation>
+          <xs:documentation>Reply to the Close Request transaction. The Close Reply bring back the ASCII data buffer which will be used to print the Close Manifest. The Manifest is essential at the time of pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the highest severity encountered when executing the request; in order from high to low: FAILURE, ERROR, WARNING, NOTE, SUCCESS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data detailing the status of a sumbitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data that governs data payload language/translations. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reply payload. All of the returned information about this shipment/package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CreatePendingShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Create Pending Shipment Request</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CurrencyExchangeRate">
+        <xs:annotation>
+          <xs:documentation>Currency exchange rate information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FromCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the original (converted FROM) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntoCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the final (converted INTO) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rate" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Multiplier used to convert fromCurrency units to intoCurrency units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomDeliveryWindowDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomDeliveryWindowType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of custom delivery being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time by which delivery is requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Range of dates for custom delivery request; only used if type is BETWEEN.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for custom delivery request; only used for types of ON, BETWEEN, or AFTER.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomDeliveryWindowType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AFTER"/>
+          <xs:enumeration value="BEFORE"/>
+          <xs:enumeration value="BETWEEN"/>
+          <xs:enumeration value="ON"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomDocumentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a custom-specified document, either at shipment or package level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Common information controlling document production.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecificationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the formatting specification used to construct this custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDocumentIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the individual document specified by the client.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If provided, thermal documents will include specified doc tab content. If omitted, document will be produced without doc tab content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBarcodeEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified barcode symbology.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarHeight" type="xs:int" minOccurs="0"/>
+          <xs:element name="ThinBarWidth" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Width of thinnest bar/space element in the barcode.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BarcodeSymbology" type="ns:BarcodeSymbologyType" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBoxEntry">
+        <xs:annotation>
+          <xs:documentation>Solid (filled) rectangular area on label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TopLeftCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="BottomRightCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomLabelCoordinateUnits">
+        <xs:annotation>
+          <xs:documentation>Valid values for CustomLabelCoordinateUnits</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MILS"/>
+          <xs:enumeration value="PIXELS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomLabelDetail">
+        <xs:sequence>
+          <xs:element name="CoordinateUnits" type="ns:CustomLabelCoordinateUnits" minOccurs="0"/>
+          <xs:element name="TextEntries" type="ns:CustomLabelTextEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="GraphicEntries" type="ns:CustomLabelGraphicEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BoxEntries" type="ns:CustomLabelBoxEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarcodeEntries" type="ns:CustomLabelBarcodeEntry" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelGraphicEntry">
+        <xs:annotation>
+          <xs:documentation>Image to be included from printer's memory, or from a local file for offline clients.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="PrinterGraphicId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific index of graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FileGraphicFullName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-qualified path and file name for graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelPosition">
+        <xs:sequence>
+          <xs:element name="X" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Horizontal position, relative to left edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Y" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Vertical position, relative to top edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelTextEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified printer font (for thermal labels) or generic font/size (for plain paper labels).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ThermalFontId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific font name for use with thermal printer labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font name for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontSize" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font size for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomerImageUsage">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomerImageUsageType" minOccurs="0"/>
+          <xs:element name="Id" type="ns:ImageId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerImageUsageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LETTER_HEAD"/>
+          <xs:enumeration value="SIGNATURE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerReference">
+        <xs:annotation>
+          <xs:documentation>Reference information to be associated with this package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerReferenceType" type="ns:CustomerReferenceType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The reference type to be associated with this reference data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerReferenceType">
+        <xs:annotation>
+          <xs:documentation>The types of references available for use.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BILL_OF_LADING"/>
+          <xs:enumeration value="CUSTOMER_REFERENCE"/>
+          <xs:enumeration value="DEPARTMENT_NUMBER"/>
+          <xs:enumeration value="ELECTRONIC_PRODUCT_CODE"/>
+          <xs:enumeration value="INTRACOUNTRY_REGULATORY_REFERENCE"/>
+          <xs:enumeration value="INVOICE_NUMBER"/>
+          <xs:enumeration value="P_O_NUMBER"/>
+          <xs:enumeration value="SHIPMENT_INTEGRITY"/>
+          <xs:enumeration value="STORE_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerSpecifiedLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomContent" type="ns:CustomLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defines any custom content to print on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfigurableReferenceEntries" type="ns:ConfigurableLabelReferenceEntry" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaskedData" type="ns:LabelMaskableDataType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls which data/sections will be suppressed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ScncOverride" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided SCNC for use with label-data-only processing of FedEx Ground shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsAndConditionsLocalization" type="ns:Localization" minOccurs="0"/>
+          <xs:element name="AdditionalLabels" type="ns:AdditionalLabelsDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls the number of additional copies of supplemental labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirWaybillSuppressionCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This value reduces the default quantity of destination/consignee air waybill labels. A value of zero indicates no change to default. A minimum of one copy will always be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomsClearanceDetail">
+        <xs:sequence>
+          <xs:element name="Broker" type="ns:Party" minOccurs="0"/>
+          <xs:element name="ClearanceBrokerage" type="ns:ClearanceBrokerageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Interacts both with properties of the shipment and contractual relationship with the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImporterOfRecord" type="ns:Party" minOccurs="0"/>
+          <xs:element name="RecipientCustomsId" type="ns:RecipientCustomsId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesPayment" type="ns:Payment" minOccurs="0"/>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0"/>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="FreightOnValue" type="ns:FreightOnValueType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InsuranceCharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Documents amount paid to third party for coverage of shipment content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PartiesToTransactionAreRelated" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="CommercialInvoice" type="ns:CommercialInvoice" minOccurs="0"/>
+          <xs:element name="Commodities" type="ns:Commodity" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ExportDetail" type="ns:ExportDetail" minOccurs="0"/>
+          <xs:element name="RegulatoryControls" type="ns:RegulatoryControlType" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DangerousGoodsAccessibilityType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCESSIBLE"/>
+          <xs:enumeration value="INACCESSIBLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DangerousGoodsDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for a FedEx shipment containing dangerous goods (hazardous materials).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Accessibility" type="ns:DangerousGoodsAccessibilityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CargoAircraftOnly" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipment is packaged/documented for movement ONLY on cargo aircraft.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which kinds of hazardous content are in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:HazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:HazardousCommodityPackagingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging of this commodity, suitable for use on OP-900 and OP-950 forms.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Telephone number to use for contact in the event of an emergency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Offeror" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Offeror's name or contract number, per DOT regulation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DateRange">
+        <xs:sequence>
+          <xs:element name="Begins" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The beginning date in a date range.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Ends" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The end date in a date range.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DayOfWeekType">
+        <xs:annotation>
+          <xs:documentation>Valid values for DayofWeekType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FRI"/>
+          <xs:enumeration value="MON"/>
+          <xs:enumeration value="SAT"/>
+          <xs:enumeration value="SUN"/>
+          <xs:enumeration value="THU"/>
+          <xs:enumeration value="TUE"/>
+          <xs:enumeration value="WED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DeleteShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to delete a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The timestamp of the shipment request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx tracking number of the package being cancelled.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeletionControl" type="ns:DeletionControlType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Determines the type of deletion to be performed in relation to package level vs shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DeleteTagRequest">
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for tags which had FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for tags which had FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payment" type="ns:Payment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>If the original ProcessTagRequest specified third-party payment, then the delete request must contain the same pay type and payor account number for security purposes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfirmationNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Also known as Pickup Confirmation Number or Dispatch Number</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DeletionControlType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of deletion to be performed on a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DELETE_ALL_PACKAGES"/>
+          <xs:enumeration value="DELETE_ONE_PACKAGE"/>
+          <xs:enumeration value="LEGACY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DestinationControlDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to complete the Destionation Control Statement for US exports.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StatementTypes" type="ns:DestinationControlStatementType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>List of applicable Statment types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationCountries" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Comma-separated list of up to four country codes, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EndUser" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of end user, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DestinationControlStatementType">
+        <xs:annotation>
+          <xs:documentation>Used to indicate whether the Destination Control Statement is of type Department of Commerce, Department of State or both.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DEPARTMENT_OF_COMMERCE"/>
+          <xs:enumeration value="DEPARTMENT_OF_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Dimensions">
+        <xs:annotation>
+          <xs:documentation>The dimensions of this package and the unit type used for the measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Length" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Width" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Height" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContent">
+        <xs:sequence>
+          <xs:element name="DocTabContentType" type="ns:DocTabContentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType options available.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Zone001" type="ns:DocTabContentZone001" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to ZONE001 to specify additional Zone details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcoded" type="ns:DocTabContentBarcoded" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to BARCODED to specify additional BarCoded details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContentBarcoded">
+        <xs:sequence>
+          <xs:element name="Symbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+          <xs:element name="Specification" type="ns:DocTabZoneSpecification" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabContentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BARCODED"/>
+          <xs:enumeration value="MINIMUM"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="ZONE001"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContentZone001">
+        <xs:sequence>
+          <xs:element name="DocTabZoneSpecifications" type="ns:DocTabZoneSpecification" minOccurs="1" maxOccurs="12"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabZoneJustificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="RIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabZoneSpecification">
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Zone number can be between 1 and 12.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Header value on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Reference path to the element in the request/reply whose value should be printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form-text to be printed in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Justification" type="ns:DocTabZoneJustificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Justification for the text printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DropoffType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_SERVICE_CENTER"/>
+          <xs:enumeration value="DROP_BOX"/>
+          <xs:enumeration value="REGULAR_PICKUP"/>
+          <xs:enumeration value="REQUEST_COURIER"/>
+          <xs:enumeration value="STATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Describes specific information about the email label shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="NotificationEMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Notification email will be sent to this email address</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Message to be sent in the notification email</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationAggregationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PER_PACKAGE"/>
+          <xs:enumeration value="PER_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationDetail">
+        <xs:annotation>
+          <xs:documentation>Information describing email notifications that will be sent in relation to events that occur during package movement</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AggregationType" type="ns:EMailNotificationAggregationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether/how email notifications are grouped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonalMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message that will be included in the email notifications</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipients" type="ns:EMailNotificationRecipient" minOccurs="1" maxOccurs="6">
+            <xs:annotation>
+              <xs:documentation>Information describing the destination of the email, format of the email and events to be notified on</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationFormatType">
+        <xs:annotation>
+          <xs:documentation>The format of the email</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HTML"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="WIRELESS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationRecipient">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a FedEx email notification recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailNotificationRecipientType" type="ns:EMailNotificationRecipientType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship this email recipient has to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The email address to send the notification to</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnShipment" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been shipped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnException" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient if this shipment encounters a problem while in route</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnDelivery" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been delivered.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Format" type="ns:EMailNotificationFormatType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The format of the email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The language/locale to be used in this email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationRecipientType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid email notification recipient types. For SHIPPER, RECIPIENT and BROKER the email address asssociated with their definitions will be used, any email address sent with the email notification for these three email notification recipient types will be ignored.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtCommodityTax">
+        <xs:sequence>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0"/>
+          <xs:element name="Taxes" type="ns:EdtTaxDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EdtExciseCondition">
+        <xs:sequence>
+          <xs:element name="Category" type="xs:string" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-declared value, with data type and legal values depending on excise condition, used in defining the taxable value of the item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtRequestType">
+        <xs:annotation>
+          <xs:documentation>Specifies the types of Estimated Duties and Taxes to be included in a rate quotation for an international shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ALL"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtTaxDetail">
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:EdtTaxType" minOccurs="0"/>
+          <xs:element name="EffectiveDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="TaxableValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Formula" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtTaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_TAXES"/>
+          <xs:enumeration value="CONSULAR_INVOICE_FEE"/>
+          <xs:enumeration value="CUSTOMS_SURCHARGES"/>
+          <xs:enumeration value="DUTY"/>
+          <xs:enumeration value="EXCISE_TAX"/>
+          <xs:enumeration value="FOREIGN_EXCHANGE_TAX"/>
+          <xs:enumeration value="GENERAL_SALES_TAX"/>
+          <xs:enumeration value="IMPORT_LICENSE_FEE"/>
+          <xs:enumeration value="INTERNAL_ADDITIONAL_TAXES"/>
+          <xs:enumeration value="INTERNAL_SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="STAMP_TAX"/>
+          <xs:enumeration value="STATISTICAL_TAX"/>
+          <xs:enumeration value="TRANSPORT_FACILITIES_TAX"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ErrorLabelBehaviorType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies the client-requested response in the event of errors within shipment.
+            PACKAGE_ERROR_LABELS : Return per-package error label in addition to error Notifications.
+            STANDARD             : Return error Notifications only.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE_ERROR_LABELS"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EtdDetail">
+        <xs:annotation>
+          <xs:documentation>Electronic Trade document references used with the ETD special service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RequestedDocumentCopies" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents produced for the shipper by FedEx (see ShippingDocumentSpecification) which should be copied back to the shipper in the shipment result data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentReferences" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExportDetail">
+        <xs:annotation>
+          <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="B13AFilingOption" type="ns:B13AFilingOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Specifies which filing option is being exercised by the customer.
+                Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>General field for exporting-country-specific export data (e.g. B13A for CA, FTSR Exemption or AES Citation for US).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PermitNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field is applicable only to Canada export non-document shipments of any value to any destination. No special characters allowed. </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationControlDetail" type="ns:DestinationControlDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Department of Commerce/Department of State information about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetail">
+        <xs:annotation>
+          <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackingListEnclosed" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or nor a packing list is enclosed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippersLoadAndCount" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total shipment pieces.
+                e.g. 3 boxes and 3 pallets of 100 pieces each = Shippers Load and Count of 303.
+                Applicable to International Priority Freight and International Economy Freight.
+                Values must be in the range of 1 - 99999
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BookingConfirmationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for International Freight shipping. Values must be 8- 12 characters in length.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FedExLocationType">
+        <xs:annotation>
+          <xs:documentation>Identifies a kind of FedEx facility.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_EXPRESS_STATION"/>
+          <xs:enumeration value="FEDEX_GROUND_TERMINAL"/>
+          <xs:enumeration value="FEDEX_OFFICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightAccountPaymentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="PREPAID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightAddressLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce the Freight handling-unit-level address labels. Note that the number of UNIQUE labels (the N as in 1 of N, 2 of N, etc.) is determined by total handling units.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="Copies" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the number of copies to be produced for each unique label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightBaseCharge">
+        <xs:annotation>
+          <xs:documentation>Individual charge which contributes to the total base charge for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedAsClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Effective freight class used for rating this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeRate" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate or factor applied to this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeBasis" type="ns:FreightChargeBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the manner in which the chargeRate for this line item was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExtendedAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net or extended charge for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightChargeBasisType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CWT"/>
+          <xs:enumeration value="FLAT"/>
+          <xs:enumeration value="MINIMUM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightClassType">
+        <xs:annotation>
+          <xs:documentation>These values represent the industry-standard freight classes used for FedEx Freight and FedEx National Freight shipment description. (Note: The alphabetic prefixes are required to distinguish these values from decimal numbers on some client platforms.)</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CLASS_050"/>
+          <xs:enumeration value="CLASS_055"/>
+          <xs:enumeration value="CLASS_060"/>
+          <xs:enumeration value="CLASS_065"/>
+          <xs:enumeration value="CLASS_070"/>
+          <xs:enumeration value="CLASS_077_5"/>
+          <xs:enumeration value="CLASS_085"/>
+          <xs:enumeration value="CLASS_092_5"/>
+          <xs:enumeration value="CLASS_100"/>
+          <xs:enumeration value="CLASS_110"/>
+          <xs:enumeration value="CLASS_125"/>
+          <xs:enumeration value="CLASS_150"/>
+          <xs:enumeration value="CLASS_175"/>
+          <xs:enumeration value="CLASS_200"/>
+          <xs:enumeration value="CLASS_250"/>
+          <xs:enumeration value="CLASS_300"/>
+          <xs:enumeration value="CLASS_400"/>
+          <xs:enumeration value="CLASS_500"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightCollectTermsType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SECTION_7_SIGNED"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightOnValueType">
+        <xs:annotation>
+          <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CARRIER_RISK"/>
+          <xs:enumeration value="OWN_RISK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightRateDetail">
+        <xs:annotation>
+          <xs:documentation>Rate data specific to FedEx Freight or FedEx National Freight services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="QuoteNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a specific rate quotation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharges" type="ns:FreightBaseCharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Freight charges which accumulate to the total base charge for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notations" type="ns:FreightRateNotation" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Human-readable descriptions of additional information on this shipment rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightRateNotation">
+        <xs:annotation>
+          <xs:documentation>Additional non-monetary data returned with Freight rates.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unique identifier for notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable explanation of notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FedExFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedReferences" type="ns:PrintedReference" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identification values to be printed during creation of a Freight bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Role" type="ns:FreightShipmentRoleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates which of the requester's tariffs will be used for rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectTermsType" type="ns:FreightCollectTermsType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates the terms of the "collect" payment for a Freight Shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValuePerUnit" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value for the shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValueUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value units corresponding to the above defined declared value</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiabilityCoverageDetail" type="ns:LiabilityCoverageDetail" minOccurs="0"/>
+          <xs:element name="Coupons" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifiers for promotional discounts offered to customers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalHandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of individual handling units in the entire shipment (for unit pricing).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDiscountPercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Estimated discount rate provided by client for unsecured rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PalletWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of pallets used in shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Overall shipment dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Comment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicePayments" type="ns:FreightSpecialServicePayment" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies which party will pay surcharges for any special services which support split billing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousMaterialsEmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Must be populated if any line items contain hazardous materials.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LineItems" type="ns:FreightShipmentLineItem" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Details of the commodities in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentLineItem">
+        <xs:annotation>
+          <xs:documentation>Description of an individual commodity or class of content in a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClassProvidedByCustomer" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FEDEX INTERNAL USE ONLY: for FedEx system that estimate freight class from customer-provided dimensions and weight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of individual handling units to which this line applies. (NOTE: Total of line-item-level handling units may not balance to shipment-level total handling units.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification of handling-unit packaging for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Pieces" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of pieces for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousMaterials" type="ns:HazardousCommodityOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the kind of hazardous material content in this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillOfLadingNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For printed reference per line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PurchaseOrderNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For printed reference per line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FED EX INTERNAL USE ONLY - Individual line item dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Volume" type="ns:Volume" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Volume (cubic measure) for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightShipmentRoleType">
+        <xs:annotation>
+          <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightSpecialServicePayment">
+        <xs:annotation>
+          <xs:documentation>Specifies which party will be responsible for payment of any surcharges for Freight special services for which split billing is allowed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialService" type="ns:ShipmentSpecialServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates who will pay for the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="GeneralAgencyAgreementDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a General Agency Agreement document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:HazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityLabelTextOptionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how the commodity is to be labeled.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPEND"/>
+          <xs:enumeration value="OVERRIDE"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelTextOption" type="ns:HazardousCommodityLabelTextOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the customer wishes the label text to be handled for this commodity in this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSuppliedLabelText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text used in labeling the commodity under control of the labelTextOption field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityOptionType">
+        <xs:annotation>
+          <xs:documentation>Indicates which kind of hazardous content (as defined by DOT) is being reported.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HAZARDOUS_MATERIALS"/>
+          <xs:enumeration value="LITHIUM_BATTERY_EXCEPTION"/>
+          <xs:enumeration value="ORM_D"/>
+          <xs:enumeration value="REPORTABLE_QUANTITIES"/>
+          <xs:enumeration value="SMALL_QUANTITY_EXCEPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityPackagingDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies number and type of packaging units for hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units in which the hazardous commodity is packaged.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityPackingGroupType">
+        <xs:annotation>
+          <xs:documentation>Identifies DOT packing group for a hazardous commodity.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="I"/>
+          <xs:enumeration value="II"/>
+          <xs:enumeration value="III"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityQuantityDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies amount and units for quantity of hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units by which the hazardous commodity is measured.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HoldAtLocationDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Contact phone number for recipient of shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address of FedEx facility at which shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type of facility at which package/shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HomeDeliveryPremiumDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required by FedEx for home delivery services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HomeDeliveryPremiumType" type="ns:HomeDeliveryPremiumType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of Home Delivery Premium service being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain Home Delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain and Appointment Home Delivery.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HomeDeliveryPremiumType">
+        <xs:annotation>
+          <xs:documentation>The type of Home Delivery Premium service being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT"/>
+          <xs:enumeration value="DATE_CERTAIN"/>
+          <xs:enumeration value="EVENING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ImageId">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMAGE_1"/>
+          <xs:enumeration value="IMAGE_2"/>
+          <xs:enumeration value="IMAGE_3"/>
+          <xs:enumeration value="IMAGE_4"/>
+          <xs:enumeration value="IMAGE_5"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="InternationalDocumentContentType">
+        <xs:annotation>
+          <xs:documentation>The type of International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DERIVED"/>
+          <xs:enumeration value="DOCUMENTS_ONLY"/>
+          <xs:enumeration value="NON_DOCUMENTS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelFormatType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of label to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON2D"/>
+          <xs:enumeration value="FEDEX_FREIGHT_STRAIGHT_BILL_OF_LADING"/>
+          <xs:enumeration value="LABEL_DATA_ONLY"/>
+          <xs:enumeration value="VICS_BILL_OF_LADING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelMaskableDataType">
+        <xs:annotation>
+          <xs:documentation>Names for data elements / areas which may be suppressed from printing on labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMS_VALUE"/>
+          <xs:enumeration value="DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="SHIPPER_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelPrintingOrientationType">
+        <xs:annotation>
+          <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BOTTOM_EDGE_OF_TEXT_FIRST"/>
+          <xs:enumeration value="TOP_EDGE_OF_TEXT_FIRST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelRotationType">
+        <xs:annotation>
+          <xs:documentation>Relative to normal orientation for the printer.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="NONE"/>
+          <xs:enumeration value="RIGHT"/>
+          <xs:enumeration value="UPSIDE_DOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LabelSpecification">
+        <xs:annotation>
+          <xs:documentation>Description of shipping label to be returned in the reply</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelFormatType" type="ns:LabelFormatType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Specify type of label to be returned</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelStockType" type="ns:LabelStockType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For thermal printer lables this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedLabelOrigin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If present, this contact and address information will replace the return address information on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSpecifiedDetail" type="ns:CustomerSpecifiedLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LabelStockType">
+        <xs:annotation>
+          <xs:documentation>For thermal printer labels this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_4X8"/>
+          <xs:enumeration value="PAPER_4X9"/>
+          <xs:enumeration value="PAPER_7X4.75"/>
+          <xs:enumeration value="PAPER_8.5X11_BOTTOM_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_8.5X11_TOP_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LiabilityCoverageDetail">
+        <xs:sequence>
+          <xs:element name="CoverageType" type="ns:LiabilityCoverageType" minOccurs="0"/>
+          <xs:element name="CoverageAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the Liability Coverage Amount. For Jan 2010 this value represents coverage amount per pound</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LiabilityCoverageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NEW"/>
+          <xs:enumeration value="USED_OR_RECONDITIONED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LinearMeasure">
+        <xs:annotation>
+          <xs:documentation>Represents a one-dimensional measurement in small units (e.g. suitable for measuring a package or document), contrasted with Distance, which represents a large one-dimensional measurement (e.g. distance between cities).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The numerical quantity of this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The units for this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LinearUnits">
+        <xs:annotation>
+          <xs:documentation>CM = centimeters, IN = inches</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CM"/>
+          <xs:enumeration value="IN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Localization">
+        <xs:annotation>
+          <xs:documentation>Identifies the representation of human-readable text.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LanguageCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for language (e.g. EN, FR, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocaleCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for the region (e.g. us, ca, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Measure">
+        <xs:sequence>
+          <xs:element name="Quantity" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="Units" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="MinimumChargeType">
+        <xs:annotation>
+          <xs:documentation>Identifies which type minimum charge was applied.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="CUSTOMER_FREIGHT_WEIGHT"/>
+          <xs:enumeration value="EARNED_DISCOUNT"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="RATE_SCALE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Money">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the medium of exchange for FedEx services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Currency" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the currency of the monetary amount.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the monetary amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a Certificate of Origin document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="BlanketPeriod" type="ns:DateRange" minOccurs="0"/>
+          <xs:element name="ImporterSpecification" type="ns:NaftaImporterSpecificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which Party (if any) from the shipment is to be used as the source of importer data on the NAFTA COO form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureContact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact information for "Authorized Signature" area of form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerSpecification" type="ns:NaftaProducerSpecificationType" minOccurs="0"/>
+          <xs:element name="Producers" type="ns:NaftaProducer" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCommodityDetail">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PreferenceCriterion" type="ns:NaftaPreferenceCriterionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerDetermination" type="ns:NaftaProducerDeterminationCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of which producer is associated with this commodity (if multiple producers are used in a single shipment).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCostMethod" type="ns:NaftaNetCostMethodCode" minOccurs="0"/>
+          <xs:element name="NetCostDateRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date range over which RVC net cost was calculated.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaImporterSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMPORTER_OF_RECORD"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="UNKNOWN"/>
+          <xs:enumeration value="VARIOUS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaNetCostMethodCode">
+        <xs:annotation>
+          <xs:documentation>Net cost method used.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NC"/>
+          <xs:enumeration value="NO"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaPreferenceCriterionCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="A"/>
+          <xs:enumeration value="B"/>
+          <xs:enumeration value="C"/>
+          <xs:enumeration value="D"/>
+          <xs:enumeration value="E"/>
+          <xs:enumeration value="F"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="NaftaProducer">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0"/>
+          <xs:element name="Producer" type="ns:Party" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaProducerDeterminationCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NO_1"/>
+          <xs:enumeration value="NO_2"/>
+          <xs:enumeration value="NO_3"/>
+          <xs:enumeration value="YES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaProducerSpecificationType">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AVAILABLE_UPON_REQUEST"/>
+          <xs:enumeration value="MULTIPLE_SPECIFIED"/>
+          <xs:enumeration value="SAME"/>
+          <xs:enumeration value="SINGLE_SPECIFIED"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Notification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data regarding the result of the submitted transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Severity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Source" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Indicates the source of this notification. Combined with the Code it uniquely identifies this notification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that represents this notification. Combined with the Source it uniquely identifies this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Message" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text that explains this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalizedMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MessageParameters" type="ns:NotificationParameter" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) witout having to parse the message string.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NotificationParameter">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of data contained in Value (e.g. SERVICE_TYPE, PACKAGE_SEQUENCE, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value of the parameter (e.g. PRIORITY_OVERNIGHT, 2, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NotificationSeverityType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of severity values for a Notification.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ERROR"/>
+          <xs:enumeration value="FAILURE"/>
+          <xs:enumeration value="NOTE"/>
+          <xs:enumeration value="SUCCESS"/>
+          <xs:enumeration value="WARNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Op900Detail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the OP-900 form for hazardous materials packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reference" type="ns:CustomerReferenceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies which reference type (from the package's customer references) is to be used as the source for the reference on this OP-900.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data field to be used when a name is to be printed in the document instead of (or in addition to) a signature image.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="OversizeClassType">
+        <xs:annotation>
+          <xs:documentation>The oversize class types.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageBarcodes">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents the set of barcodes (of all types) which are associated with a specific package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="BinaryBarcodes" type="ns:BinaryBarcode" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Binary-style barcodes for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StringBarcodes" type="ns:StringBarcode" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>String-style barcodes for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PackageRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a package's rates, as calculated per a specific rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight that was used to calculate the rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The dimensional weight of this package (if greater than actual).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The oversize weight of this package (if the package is oversize).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The transportation charge only (prior to any discounts applied) for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all discounts on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's baseCharge - totalFreightDiscounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all surcharges on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all taxes on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges + totalTaxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this package (either because of characteristics of the package itself, or because it is carrying per-shipment surcharges for the shipment of which it is a part).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All taxes applicable (or distributed to) this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PackageRating">
+        <xs:annotation>
+          <xs:documentation>This class groups together for a single package all package-level rate data (across all rate types) as part of the response to a shipping request, which groups shipment-level data together and groups package-level data by package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This rate type identifies which entry in the following array is considered as presenting the "actual" rates for the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "list" net charge minus "actual" net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageRateDetails" type="ns:PackageRateDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element of this field provides package-level rate data for a specific rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackageSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx. BROKER_SELECT_OPTION should be used for Ground shipments only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="NON_STANDARD_CONTAINER"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the package level for some or all service types. If the shipper is requesting a special service which requires additional data, the package special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:PackageSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment or package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with FedEx Ground services only; COD must be present in shipment's special services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DangerousGoodsDetail" type="ns:DangerousGoodsDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dangerous materials. This element is required when SpecialServiceType.DANGEROUS_GOODS or HAZARDOUS_MATERIAL is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DryIceWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dry ice. This element is required when SpecialServiceType.DRY_ICE is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOptionDetail" type="ns:SignatureOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx signature services. This element is required when SpecialServiceType.SIGNATURE_OPTION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PriorityAlertDetail" type="ns:PriorityAlertDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Priority Alert service. This element is required when SpecialServiceType.PRIORITY_ALERT is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackagingType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of available FedEx or customer packaging options.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_10KG_BOX"/>
+          <xs:enumeration value="FEDEX_25KG_BOX"/>
+          <xs:enumeration value="FEDEX_BOX"/>
+          <xs:enumeration value="FEDEX_ENVELOPE"/>
+          <xs:enumeration value="FEDEX_PAK"/>
+          <xs:enumeration value="FEDEX_TUBE"/>
+          <xs:enumeration value="YOUR_PACKAGING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Party">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a person or company entitiy doing business with FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the customer.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Tins" type="ns:TaxpayerIdentification" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the point-of-contact person.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for a physical location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Payment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the monetary compensation given to FedEx for services rendered to the customer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PaymentType" type="ns:PaymentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the method of payment for a service. See PaymentType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payor" type="ns:Payor" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PaymentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method of payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SENDER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Payor">
+        <xs:annotation>
+          <xs:documentation>The descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the country of the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentAccessDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes how and when a pending shipment may be accessed for completion.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EmailLabelUrl" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UserId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpirationTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes the kind of pending shipment being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PendingShipmentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of FedEx pending shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpirationDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date after which the pending shipment will no longer be available for completion.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmailLabelDetail" type="ns:EMailLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with type of EMAIL.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PendingShipmentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of service for a pending shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EMAIL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PhysicalPackagingType">
+        <xs:annotation>
+          <xs:documentation>This enumeration rationalizes the former FedEx Express international "admissibility package" types (based on ANSI X.12) and the FedEx Freight packaging types. The values represented are those common to both carriers.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BAG"/>
+          <xs:enumeration value="BARREL"/>
+          <xs:enumeration value="BASKET"/>
+          <xs:enumeration value="BOX"/>
+          <xs:enumeration value="BUCKET"/>
+          <xs:enumeration value="BUNDLE"/>
+          <xs:enumeration value="CARTON"/>
+          <xs:enumeration value="CASE"/>
+          <xs:enumeration value="CONTAINER"/>
+          <xs:enumeration value="CRATE"/>
+          <xs:enumeration value="CYLINDER"/>
+          <xs:enumeration value="DRUM"/>
+          <xs:enumeration value="ENVELOPE"/>
+          <xs:enumeration value="HAMPER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PAIL"/>
+          <xs:enumeration value="PALLET"/>
+          <xs:enumeration value="PIECE"/>
+          <xs:enumeration value="REEL"/>
+          <xs:enumeration value="ROLL"/>
+          <xs:enumeration value="SKID"/>
+          <xs:enumeration value="TANK"/>
+          <xs:enumeration value="TUBE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PickupDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the pickup characteristics of a shipment (e.g. for use in a tag request).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReadyDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="LatestPickupDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CourierInstructions" type="xs:string" minOccurs="0"/>
+          <xs:element name="RequestType" type="ns:PickupRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of Pickup request</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestSource" type="ns:PickupRequestSourceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of source for Pickup request</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PickupRequestSourceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of source for pickup request service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUTOMATION"/>
+          <xs:enumeration value="CUSTOMER_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PickupRequestType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of pickup request service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FUTURE_DAY"/>
+          <xs:enumeration value="SAME_DAY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PricingCodeType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of pricing used for this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="ALTERNATE"/>
+          <xs:enumeration value="BASE"/>
+          <xs:enumeration value="HUNDREDWEIGHT"/>
+          <xs:enumeration value="HUNDREDWEIGHT_ALTERNATE"/>
+          <xs:enumeration value="INTERNATIONAL_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_SERVICE"/>
+          <xs:enumeration value="LTL_FREIGHT"/>
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+          <xs:enumeration value="SHIPMENT_FIVE_POUND_OPTIONAL"/>
+          <xs:enumeration value="SHIPMENT_OPTIONAL"/>
+          <xs:enumeration value="SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PrintedReference">
+        <xs:annotation>
+          <xs:documentation>Represents a reference identifier printed on Freight bills of lading</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PrintedReferenceType" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PrintedReferenceType">
+        <xs:annotation>
+          <xs:documentation>Identifies a particular reference identifier printed on a Freight bill of lading.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE_ID_NUMBER"/>
+          <xs:enumeration value="SHIPPER_ID_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PriorityAlertDetail">
+        <xs:sequence>
+          <xs:element name="Content" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reply payload. All of the returned information about this shipment/package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ErrorLabels" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Empty unless error label behavior is PACKAGE_ERROR_LABELS and one or more errors occured during transaction processing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to ship a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessTagReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1"/>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded"/>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0"/>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1"/>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessTagRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to ship a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PurposeOfShipmentType">
+        <xs:annotation>
+          <xs:documentation>Test for the Commercial Invoice. Note that Sold is not a valid Purpose for a Proforma Invoice.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GIFT"/>
+          <xs:enumeration value="NOT_SOLD"/>
+          <xs:enumeration value="PERSONAL_EFFECTS"/>
+          <xs:enumeration value="REPAIR_AND_RETURN"/>
+          <xs:enumeration value="SAMPLE"/>
+          <xs:enumeration value="SOLD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateDimensionalDivisorType">
+        <xs:annotation>
+          <xs:documentation>Indicates the reason that a dim divisor value was chose.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRODUCT"/>
+          <xs:enumeration value="WAIVED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateDiscount">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateDiscountType" type="ns:RateDiscountType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateDiscountType">
+        <xs:annotation>
+          <xs:documentation>The type of the discount.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="COUPON"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="INCENTIVE"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="VOLUME"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateRequestType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type(s) of rates to be returned in the reply.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCOUNT"/>
+          <xs:enumeration value="LIST"/>
+          <xs:enumeration value="PREFERRED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RatedWeightMethod">
+        <xs:annotation>
+          <xs:documentation>The weight method used to calculate the rate.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="AVERAGE_PACKAGE_WEIGHT_MINIMUM"/>
+          <xs:enumeration value="BALLOON"/>
+          <xs:enumeration value="DIM"/>
+          <xs:enumeration value="FREIGHT_MINIMUM"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+          <xs:enumeration value="PACKAGING_MINIMUM"/>
+          <xs:enumeration value="WEIGHT_BREAK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rebate">
+        <xs:sequence>
+          <xs:element name="RebateType" type="ns:RebateType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RebateType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RecipientCustomsId">
+        <xs:annotation>
+          <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:RecipientCustomsIdType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the kind of identification being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the actual ID value, of the type specified above.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RecipientCustomsIdType">
+        <xs:annotation>
+          <xs:documentation>Type of Brazilian taxpayer identifier provided in Recipient/TaxPayerIdentification/Number. For shipments bound for Brazil this overrides the value in Recipient/TaxPayerIdentification/TinType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMPANY"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+          <xs:enumeration value="PASSPORT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RegulatoryControlType">
+        <xs:annotation>
+          <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EU_CIRCULATION"/>
+          <xs:enumeration value="FOOD_OR_PERISHABLE"/>
+          <xs:enumeration value="NAFTA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RequestedPackageDetailType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INDIVIDUAL_PACKAGES"/>
+          <xs:enumeration value="PACKAGE_GROUPS"/>
+          <xs:enumeration value="PACKAGE_SUMMARY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RequestedPackageLineItem">
+        <xs:annotation>
+          <xs:documentation>This class rationalizes RequestedPackage and RequestedPackageSummary from previous interfaces. The way in which it is uses within a RequestedShipment depends on the RequestedPackageDetailType value specified for that shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with INDIVIDUAL_PACKAGE, as a unique identifier of each requested package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a unique identifier of each group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupPackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a count of packages within a group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0"/>
+          <xs:element name="InsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalInsuredValue and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalweight and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="PhysicalPackaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides additional detail on how the customer has physically packaged this item. As of June 2009, required for packages moving under international and SmartPost services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text describing the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerReferences" type="ns:CustomerReference" minOccurs="0" maxOccurs="3"/>
+          <xs:element name="SpecialServicesRequested" type="ns:PackageSpecialServicesRequested" minOccurs="0"/>
+          <xs:element name="ContentRecords" type="ns:ContentRecord" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RequestedShipment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the shipment being tendered to FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the date and time the package is tendered to FedEx. Both the date and time portions of the string are expected to be used. The date should not be a past date or a date more than 10 days in the future. The time is the local time of the shipment based on the shipper's time zone. The date component must be in the format: YYYY-MM-DD (e.g. 2006-06-26). The time component must be in the format: HH:MM:SS using a 24 hour clock (e.g. 11:00 a.m. is 11:00:00, whereas 5:00 p.m. is 17:00:00). The date and time parts are separated by the letter T (e.g. 2006-06-26T17:00:00). There is also a UTC offset component indicating the number of hours/mainutes from UTC (e.g 2006-06-26T17:00:00-0400 is defined form June 26, 2006 5:00 pm Eastern Time).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DropoffType" type="ns:DropoffType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup. See DropoffType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the total weight of the shipment being conveyed to FedEx.This is only applicable to International shipments and should only be used on the first package of a mutiple piece shipment.This value contains 1 explicit decimal position</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalInsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total insured amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="Shipper" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for shipping the package. Shipper and Origin should have the same address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipient" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party receiving the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientLocationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a recipient location</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Origin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Physical starting address for the shipment, if different from shipper's address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingChargesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data indicating the method and means of payment to FedEx for providing shipping services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicesRequested" type="ns:ShipmentSpecialServicesRequested" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data regarding special services requested by the shipper for this shipment. If the shipper is requesting a special service which requires additional data (e.g. COD), the special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object. For example, to request COD, "COD" must be included in the SpecialServiceTypes collection and the CodDetail object must contain the required data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpressFreightDetail" type="ns:ExpressFreightDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightShipmentDetail" type="ns:FreightShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Ground Home Delivery and Freight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsClearanceDetail" type="ns:CustomsClearanceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customs clearance data, used for both international and intra-country shipping.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PickupDetail" type="ns:PickupDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use in "process tag" transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:SmartPostShipmentDetail" minOccurs="0"/>
+          <xs:element name="BlockInsightVisibility" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If true, only the shipper/payor will have visibility of this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ErrorLabelBehavior" type="ns:ErrorLabelBehaviorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the client-requested response in the event of errors within shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelSpecification" type="ns:LabelSpecification" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Details about the image format and printer type the label is to returned in.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentSpecification" type="ns:ShippingDocumentSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains data used to create additional (non-label) shipping documents.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateRequestTypes" type="ns:RateRequestType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies whether and what kind of rates the customer wishes to have quoted on this shipment. The reply will also be constrained by other data on the shipment and customer.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSelectedActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the type of rate the customer wishes to have used as the actual rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EdtRequestType" type="ns:EdtRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether the customer wishes to have Estimated Duties and Taxes provided with the rate quotation on this shipment. Only applies with shipments moving under international services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MasterTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with multiple-transaction shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with multi-piece COD shipments sent in multiple transactions. Required on last transaction only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The total number of packages in the entire shipment (even when the shipment spans multiple transactions.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDetail" type="ns:RequestedPackageDetailType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether packages are described individually, in groups, or summarized in a single description for total-piece-total-weight. This field controls which fields of the RequestedPackageLineItem will be used, and how many occurrences are expected.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedPackageLineItems" type="ns:RequestedPackageLineItem" minOccurs="0" maxOccurs="999">
+            <xs:annotation>
+              <xs:documentation>One or more package-attribute descriptions, each of which describes an individual package, a group of identical packages, or (for the total-piece-total-weight case) common characteristics all packages in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RequestedShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="CUSTOMER_SPECIFIED_LABELS"/>
+          <xs:enumeration value="CUSTOM_PACKAGE_DOCUMENT"/>
+          <xs:enumeration value="CUSTOM_SHIPMENT_DOCUMENT"/>
+          <xs:enumeration value="FREIGHT_ADDRESS_LABEL"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OP_900"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnEMailAllowedSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>These values are used to control the availability of certain special services at the time when a customer uses the e-mail label link to create a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ReturnEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Return Email Details</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="MerchantPhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Phone number of the merchant</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AllowedSpecialServices" type="ns:ReturnEMailAllowedSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifies the allowed (merchant-authorized) special services which may be selected when the subsequent shipment is created. Only services represented in EMailLabelAllowedSpecialServiceType will be controlled by this list.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ReturnShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Information relating to a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReturnType" type="ns:ReturnType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rma" type="ns:Rma" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnEMailDetail" type="ns:ReturnEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Describes specific information about the email label for return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ReturnType">
+        <xs:annotation>
+          <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="PENDING"/>
+          <xs:enumeration value="PRINT_RETURN_LABEL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedRateType">
+        <xs:annotation>
+          <xs:documentation>The "PAYOR..." rates are expressed in the currency identified in the payor's rate table(s). The "RATED..." rates are expressed in the currency of the origin country. Former "...COUNTER..." values have become "...RETAIL..." values, except for PAYOR_COUNTER and RATED_COUNTER, which have been removed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INCENTIVE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="PAYOR_LIST_PACKAGE"/>
+          <xs:enumeration value="PAYOR_LIST_SHIPMENT"/>
+          <xs:enumeration value="RATED_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="RATED_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="RATED_LIST_PACKAGE"/>
+          <xs:enumeration value="RATED_LIST_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedShippingDocumentType">
+        <xs:annotation>
+          <xs:documentation>Shipping document type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUXILIARY_LABEL"/>
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COD_RETURN_2_D_BARCODE"/>
+          <xs:enumeration value="COD_RETURN_LABEL"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="CUSTOM_PACKAGE_DOCUMENT"/>
+          <xs:enumeration value="CUSTOM_SHIPMENT_DOCUMENT"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="FREIGHT_ADDRESS_LABEL"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="GROUND_BARCODE"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OP_900"/>
+          <xs:enumeration value="OUTBOUND_2_D_BARCODE"/>
+          <xs:enumeration value="OUTBOUND_LABEL"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+          <xs:enumeration value="RECIPIENT_ADDRESS_BARCODE"/>
+          <xs:enumeration value="RECIPIENT_POSTAL_BARCODE"/>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="USPS_BARCODE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rma">
+        <xs:annotation>
+          <xs:documentation>Return Merchant Authorization</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The RMA number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>20</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reason" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the return.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>60</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RoutingAstraDetail">
+        <xs:annotation>
+          <xs:documentation>The tracking number information and the data to form the Astra barcode for the label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The tracking number information for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcode" type="ns:StringBarcode" minOccurs="0"/>
+          <xs:element name="AstraHandlingText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The textual description of the special service applied to the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraLabelElements" type="ns:AstraLabelElement" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RoutingDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipmentRoutingDetail" type="ns:ShipmentRoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The routing information detail for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraDetails" type="ns:RoutingAstraDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The tracking number information and the data to form the Astra barcode for the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of available FedEx service options.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EUROPE_FIRST_INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="FEDEX_1_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_2_DAY"/>
+          <xs:enumeration value="FEDEX_2_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_3_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_EXPRESS_SAVER"/>
+          <xs:enumeration value="FEDEX_GROUND"/>
+          <xs:enumeration value="FIRST_OVERNIGHT"/>
+          <xs:enumeration value="GROUND_HOME_DELIVERY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_FIRST"/>
+          <xs:enumeration value="INTERNATIONAL_GROUND"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_FREIGHT"/>
+          <xs:enumeration value="PRIORITY_OVERNIGHT"/>
+          <xs:enumeration value="SMART_POST"/>
+          <xs:enumeration value="STANDARD_OVERNIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentDryIceDetail">
+        <xs:annotation>
+          <xs:documentation>Shipment-level totals of dry ice data across all packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total number of packages in the shipment that contain dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total shipment dry ice weight for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a shipment's total/summary rates, as calculated per a specific rate type. The "total..." fields may differ from the sum of corresponding package data for Multiweight or Express MPS.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateScale" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate scale used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateZone" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate zone used (based on origin and destination).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PricingCode" type="ns:PricingCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of pricing used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CurrencyExchangeRate" type="ns:CurrencyExchangeRate" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialRatingApplied" type="ns:SpecialRatingAppliedType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisor" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value used to calculate the weight based on the dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisorType" type="ns:RateDimensionalDivisorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FuelSurchargePercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies a fuel surcharge percentage.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight used to calculate these rates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Sum of dimensional weights for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total freight charge that was calculated for this package before surcharges, discounts and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total discounts used in the rate calculation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The freight charge minus discounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total amount of all surcharges applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of the transportation-based taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net charge after applying all discounts and surcharges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of all values under this shipment's dutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetChargeWithDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetCharge + totalDutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment AND duties, taxes and transportation charges are all paid by the same sender's account.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightRateDetail" type="ns:FreightRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data specific to FedEx Freight and FedEx National Freight services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All transportation-based taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesAndTaxes" type="ns:EdtCommodityTax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All commodity-based duties and taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "order level" variable handling charges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalVariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total of all variable handling charges at both shipment (order) and package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRating">
+        <xs:annotation>
+          <xs:documentation>This class groups together all shipment-level rate data (across all rate types) as part of the response to a shipping request, which groups shipment-level data together and groups package-level data by package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This rate type identifies which entry in the following array is considered as presenting the "actual" rates for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "list" total net charge minus "actual" total net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRateDetails" type="ns:ShipmentRateDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element of this field provides shipment-level rate totals for a specific rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRoutingDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UrsaPrefixCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The prefix portion of the URSA (Universal Routing and Sort Aid) code.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrsaSuffixCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The suffix portion of the URSA code.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier of the origin location of the shipment. Express only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginServiceArea" type="xs:string" minOccurs="0"/>
+          <xs:element name="DestinationLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier of the destination location of the shipment. Express only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0"/>
+          <xs:element name="DestinationLocationStateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This is the state of the destination location ID, and is not necessarily the same as the postal state.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Expected/estimated date of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryDay" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Expected/estimated day of week of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Committed date of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitDay" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Committed day of week of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Standard transit time per origin, destination, and service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum expected transit time</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraPlannedServiceLevel" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text describing planned delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The postal code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>16</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The state or province code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The country code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirportId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier for the airport of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>4</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShipmentSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx. BROKER_SELECT_OPTION should be used for Express shipments only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CALL_BEFORE_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUSTOM_DELIVERY_WINDOW"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DO_NOT_BREAK_DOWN_PALLETS"/>
+          <xs:enumeration value="DO_NOT_STACK_PALLETS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EAST_COAST_SPECIAL"/>
+          <xs:enumeration value="ELECTRONIC_TRADE_DOCUMENTS"/>
+          <xs:enumeration value="EMAIL_NOTIFICATION"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FOOD"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FUTURE_DAY_SHIPMENT"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_PREMIUM"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="PENDING_SHIPMENT"/>
+          <xs:enumeration value="POISON"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="RETURN_SHIPMENT"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="TOP_LOAD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the shipment level for some or all service types. If the shipper is requesting a special service which requires additional data (such as the COD amount), the shipment special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:ShipmentSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment (or other shipment-level transaction).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment. This element is required when SpecialServiceType.COD is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldAtLocationDetail" type="ns:HoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient. This element is required when SpecialServiceType.HOLD_AT_LOCATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailNotificationDetail" type="ns:EMailNotificationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for FedEx to provide email notification to the customer regarding the shipment. This element is required when SpecialServiceType.EMAIL_NOTIFICATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnShipmentDetail" type="ns:ReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Printed Return Label. This element is required when SpecialServiceType.PRINTED_RETURN_LABEL is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PendingShipmentDetail" type="ns:PendingShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field should be populated for pending shipments (e.g. e-mail label) It is required by a PENDING_SHIPMENT special service type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDryIceDetail" type="ns:ShipmentDryIceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of packages in this shipment which contain dry ice and the total weight of the dry ice for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HomeDeliveryPremiumDetail" type="ns:HomeDeliveryPremiumDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Home Delivery options. This element is required when SpecialServiceType.HOME_DELIVERY_PREMIUM is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EtdDetail" type="ns:EtdDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Electronic Trade document references.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDeliveryWindowDetail" type="ns:CustomDeliveryWindowDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification for date or range of dates on which delivery is to be attempted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocument">
+        <xs:annotation>
+          <xs:documentation>All package-level shipping documents (other than labels and barcodes).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:ReturnedShippingDocumentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipping Document Type</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how this document image/file is organized.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentDisposition" type="ns:ShippingDocumentDispositionType" minOccurs="0"/>
+          <xs:element name="AccessReference" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name under which a STORED or DEFERRED document is written.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Resolution" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the image resolution in DPI (dots per inch).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CopiesToPrint" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Can be zero for documents whose disposition implies that no content is included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Parts" type="ns:ShippingDocumentPart" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>One or more document parts which make up a single logical document, such as multiple pages of a single form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentDispositionDetail">
+        <xs:annotation>
+          <xs:documentation>Each occurrence of this class specifies a particular way in which a kind of shipping document is to be produced and provided.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DispositionType" type="ns:ShippingDocumentDispositionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Values in this field specify how to create and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to organize all documents of this type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailDetail" type="ns:ShippingDocumentEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to e-mail document images.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintDetail" type="ns:ShippingDocumentPrintDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how a queued document is to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentDispositionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to return a shipping document to the caller.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONFIRMED"/>
+          <xs:enumeration value="DEFERRED_RETURNED"/>
+          <xs:enumeration value="DEFERRED_STORED"/>
+          <xs:enumeration value="EMAILED"/>
+          <xs:enumeration value="QUEUED"/>
+          <xs:enumeration value="RETURNED"/>
+          <xs:enumeration value="STORED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies how to e-mail shipping documents.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailRecipients" type="ns:ShippingDocumentEMailRecipient" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Provides the roles and email addresses for e-mail recipients.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentEMailGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the convention by which documents are to be grouped as e-mail attachments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentEMailGroupingType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BY_RECIPIENT"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailRecipient">
+        <xs:annotation>
+          <xs:documentation>Specifies an individual recipient of e-mailed shipping document(s).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RecipientType" type="ns:EMailNotificationRecipientType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship of this recipient in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Address to which the document is to be sent.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentFormat">
+        <xs:annotation>
+          <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TopOfPageOffset" type="ns:LinearMeasure" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how far down the page to move the beginning of the image; allows for printing on letterhead and other pre-printed stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0"/>
+          <xs:element name="StockType" type="ns:ShippingDocumentStockType" minOccurs="0"/>
+          <xs:element name="ProvideInstructions" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For those shipping document types which have both a "form" and "instructions" component (e.g. NAFTA Certificate of Origin and General Agency Agreement), this field indicates whether to provide the instructions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs the language to be used for this individual document, independently from other content returned for the same shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDocumentIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the individual document specified by the client.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentGroupingType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to organize all shipping documents of the same type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSOLIDATED_BY_DOCUMENT_TYPE"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ShippingDocumentImageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DOC"/>
+          <xs:enumeration value="DPL"/>
+          <xs:enumeration value="EPL2"/>
+          <xs:enumeration value="PDF"/>
+          <xs:enumeration value="PNG"/>
+          <xs:enumeration value="RTF"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="ZPLII"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentPart">
+        <xs:annotation>
+          <xs:documentation>A single part of a shipping document, such as one page of a multiple-page document whose format requires a separate image per page.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentPartSequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The one-origin position of this part within a document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Image" type="xs:base64Binary" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Graphic or printer commands for this image within a document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentPrintDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies printing options for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PrinterId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides environment-specific printer identification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentSpecification">
+        <xs:annotation>
+          <xs:documentation>Contains all data required for additional (non-label) shipping documents to be produced in conjunction with a specific shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShippingDocumentTypes" type="ns:RequestedShippingDocumentType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents requested by the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CertificateOfOrigin" type="ns:CertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="CommercialInvoiceDetail" type="ns:CommercialInvoiceDetail" minOccurs="0"/>
+          <xs:element name="CustomPackageDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of each package-level custom document (the same specification is used for all packages).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomShipmentDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of a shipment-level custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GeneralAgencyAgreementDetail" type="ns:GeneralAgencyAgreementDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This element is currently not supported and is for the future use. (Details pertaining to the GAA.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaCertificateOfOriginDetail" type="ns:NaftaCertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="Op900Detail" type="ns:Op900Detail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightAddressLabelDetail" type="ns:FreightAddressLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentStockType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of paper (stock) on which a document will be printed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OP_900_LG_B"/>
+          <xs:enumeration value="OP_900_LL_B"/>
+          <xs:enumeration value="OP_950"/>
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureOptionDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for FedEx delivery signature services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OptionType" type="ns:SignatureOptionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature services option selected by the customer for this shipment. See OptionType for the list of valid values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureReleaseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature release authorization number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SignatureOptionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the delivery signature services options offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADULT"/>
+          <xs:enumeration value="DIRECT"/>
+          <xs:enumeration value="INDIRECT"/>
+          <xs:enumeration value="NO_SIGNATURE_REQUIRED"/>
+          <xs:enumeration value="SERVICE_DEFAULT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostAncillaryEndorsementType">
+        <xs:annotation>
+          <xs:documentation>These values are mutually exclusive; at most one of them can be attached to a SmartPost shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS_CORRECTION"/>
+          <xs:enumeration value="CARRIER_LEAVE_IF_NO_RESPONSE"/>
+          <xs:enumeration value="CHANGE_SERVICE"/>
+          <xs:enumeration value="FORWARDING_SERVICE"/>
+          <xs:enumeration value="RETURN_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostIndiciaType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MEDIA_MAIL"/>
+          <xs:enumeration value="PARCEL_RETURN"/>
+          <xs:enumeration value="PARCEL_SELECT"/>
+          <xs:enumeration value="PRESORTED_BOUND_PRINTED_MATTER"/>
+          <xs:enumeration value="PRESORTED_STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SmartPostShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required for shipments handled under the SMART_POST and GROUND_SMART_POST service types.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Indicia" type="ns:SmartPostIndiciaType" minOccurs="0"/>
+          <xs:element name="AncillaryEndorsement" type="ns:SmartPostAncillaryEndorsementType" minOccurs="0"/>
+          <xs:element name="HubId" type="xs:string" minOccurs="0"/>
+          <xs:element name="CustomerManifestId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The CustomerManifestId is used to group Smart Post packages onto a manifest for each trailer that is being prepared. If you do not have multiple trailers this field can be omitted. If you have multiple trailers, you
+                must assign the same Manifest Id to each SmartPost package as determined by its trailer.  In other words, all packages on a trailer must have the same Customer Manifest Id. The manifest Id must be unique to your account number for a minimum of 6 months
+                and cannot exceed 8 characters in length. We recommend you use the day of year + the trailer id (this could simply be a sequential number for that trailer). So if you had 3 trailers that you started loading on Feb 10
+                the 3 manifest ids would be 041001, 041002, 041003 (in this case we used leading zeros on the trailer numbers).
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SpecialRatingAppliedType">
+        <xs:annotation>
+          <xs:documentation>Special circumstance rating used for this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_FUEL_SURCHARGE"/>
+          <xs:enumeration value="IMPORT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="StringBarcode">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents a barcode whose content must be represented as ASCII text (i.e. not binary data).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:StringBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The kind of barcode data in this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data content of this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="StringBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS"/>
+          <xs:enumeration value="ASTRA"/>
+          <xs:enumeration value="FDX_1D"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="POSTAL"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Surcharge">
+        <xs:annotation>
+          <xs:documentation>Identifies each surcharge applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SurchargeType" type="ns:SurchargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Level" type="ns:SurchargeLevelType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The amount of the surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SurchargeLevelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SurchargeType">
+        <xs:annotation>
+          <xs:documentation>The type of the surcharge.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_HANDLING"/>
+          <xs:enumeration value="ANCILLARY_FEE"/>
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CANADIAN_DESTINATION"/>
+          <xs:enumeration value="CLEARANCE_ENTRY_FEE"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUT_FLOWERS"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DELIVERY_AREA"/>
+          <xs:enumeration value="DELIVERY_CONFIRMATION"/>
+          <xs:enumeration value="DOCUMENTATION_FEE"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EMAIL_LABEL"/>
+          <xs:enumeration value="EUROPE_FIRST"/>
+          <xs:enumeration value="EXCESS_VALUE"/>
+          <xs:enumeration value="EXHIBITION"/>
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="FICE"/>
+          <xs:enumeration value="FLATBED"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FREIGHT_ON_VALUE"/>
+          <xs:enumeration value="FUEL"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_APPOINTMENT"/>
+          <xs:enumeration value="HOME_DELIVERY_DATE_CERTAIN"/>
+          <xs:enumeration value="HOME_DELIVERY_EVENING"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="INSURED_VALUE"/>
+          <xs:enumeration value="INTERHAWAII"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="METRO_DELIVERY"/>
+          <xs:enumeration value="METRO_PICKUP"/>
+          <xs:enumeration value="NON_MACHINABLE"/>
+          <xs:enumeration value="OFFSHORE"/>
+          <xs:enumeration value="ON_CALL_PICKUP"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="OUT_OF_DELIVERY_AREA"/>
+          <xs:enumeration value="OUT_OF_PICKUP_AREA"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="PIECE_COUNT_VERIFICATION"/>
+          <xs:enumeration value="PRE_DELIVERY_NOTIFICATION"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="REGIONAL_MALL_DELIVERY"/>
+          <xs:enumeration value="REGIONAL_MALL_PICKUP"/>
+          <xs:enumeration value="RESIDENTIAL_DELIVERY"/>
+          <xs:enumeration value="RESIDENTIAL_PICKUP"/>
+          <xs:enumeration value="RETURN_LABEL"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+          <xs:enumeration value="TARP"/>
+          <xs:enumeration value="THIRD_PARTY_CONSIGNEE"/>
+          <xs:enumeration value="TRANSMART_SERVICE_FEE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Tax">
+        <xs:annotation>
+          <xs:documentation>Identifies each tax applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:TaxType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of tax applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the tax applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TaxType">
+        <xs:annotation>
+          <xs:documentation>The type of the tax.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="GST"/>
+          <xs:enumeration value="HST"/>
+          <xs:enumeration value="INTRACOUNTRY"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PST"/>
+          <xs:enumeration value="VAT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TaxpayerIdentification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for taxpayer identification information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TinType" type="ns:TinType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the category of the taxpayer identification number. See TinType for the list of values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the taxpayer identification number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Usage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the usage of Tax Identification Number in Shipment processing</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TermsOfSaleType">
+        <xs:annotation>
+          <xs:documentation>
+            Required for dutiable international express or ground shipment. This field is not applicable to an international PIB (document) or a non-document which does not require a commercial invoice express shipment.
+            CFR_OR_CPT (Cost and Freight/Carriage Paid TO)
+            CIF_OR_CIP (Cost Insurance and Freight/Carraige Insurance Paid)
+            DDP (Delivered Duty Paid)
+            DDU (Delivered Duty Unpaid)
+            EXW (Ex Works)
+            FOB_OR_FCA (Free On Board/Free Carrier)
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CFR_OR_CPT"/>
+          <xs:enumeration value="CIF_OR_CIP"/>
+          <xs:enumeration value="DDP"/>
+          <xs:enumeration value="DDU"/>
+          <xs:enumeration value="EXW"/>
+          <xs:enumeration value="FOB_OR_FCA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TinType">
+        <xs:annotation>
+          <xs:documentation>Identifies the category of the taxpayer identification number.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_NATIONAL"/>
+          <xs:enumeration value="BUSINESS_STATE"/>
+          <xs:enumeration value="PERSONAL_NATIONAL"/>
+          <xs:enumeration value="PERSONAL_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackingId">
+        <xs:sequence>
+          <xs:element name="TrackingIdType" type="ns:TrackingIdType" minOccurs="0"/>
+          <xs:element name="FormId" type="xs:string" minOccurs="0"/>
+          <xs:element name="UspsApplicationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with SmartPost tracking IDs only</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackingIdType">
+        <xs:annotation>
+          <xs:documentation>TrackingIdType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPRESS"/>
+          <xs:enumeration value="FREIGHT"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TransactionDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerTransactionId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form text to be echoed back in the reply. Used to match requests and replies.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs data payload language/translations (contrasted with ClientDetail.localization, which governs Notification.localizedMessage language selection).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TransitTimeType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid shipment transit time values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EIGHTEEN_DAYS"/>
+          <xs:enumeration value="EIGHT_DAYS"/>
+          <xs:enumeration value="ELEVEN_DAYS"/>
+          <xs:enumeration value="FIFTEEN_DAYS"/>
+          <xs:enumeration value="FIVE_DAYS"/>
+          <xs:enumeration value="FOURTEEN_DAYS"/>
+          <xs:enumeration value="FOUR_DAYS"/>
+          <xs:enumeration value="NINETEEN_DAYS"/>
+          <xs:enumeration value="NINE_DAYS"/>
+          <xs:enumeration value="ONE_DAY"/>
+          <xs:enumeration value="SEVENTEEN_DAYS"/>
+          <xs:enumeration value="SEVEN_DAYS"/>
+          <xs:enumeration value="SIXTEEN_DAYS"/>
+          <xs:enumeration value="SIX_DAYS"/>
+          <xs:enumeration value="TEN_DAYS"/>
+          <xs:enumeration value="THIRTEEN_DAYS"/>
+          <xs:enumeration value="THREE_DAYS"/>
+          <xs:enumeration value="TWELVE_DAYS"/>
+          <xs:enumeration value="TWENTY_DAYS"/>
+          <xs:enumeration value="TWO_DAYS"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentIdProducer">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CSHP"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentProducerType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CLS"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentReferenceDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="DocumentId" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentIdProducer" type="ns:UploadDocumentIdProducer" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ValidateShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to validate a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ValidatedHazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:ValidatedHazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ValidatedHazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="ProperShippingNameAndDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-expanded descriptive text for a hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Symbols" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Coded indications for special requirements or constraints.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VariableHandlingChargeDetail">
+        <xs:annotation>
+          <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingChargeType" type="ns:VariableHandlingChargeType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FixedValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Used with Variable handling charge type of FIXED_VALUE.
+                Contains the amount to be added to the freight charge.
+                Contains 2 explicit decimal positions with a total max length of 10 including the decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PercentValue" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual percentage (10 means 10%, which is a mutiplier of 0.1)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VariableHandlingChargeType">
+        <xs:annotation>
+          <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_AMOUNT"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE_EXCLUDING_TAXES"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="VariableHandlingCharges">
+        <xs:annotation>
+          <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charge amount calculated based on the requested variable handling charge detail.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalCustomerCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The calculated varibale handling charge plus the net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Volume">
+        <xs:annotation>
+          <xs:documentation>Three-dimensional volume/cubic measurement.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:VolumeUnits" minOccurs="0"/>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VolumeUnits">
+        <xs:annotation>
+          <xs:documentation>Units of three-dimensional volume/cubic measure.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUBIC_FT"/>
+          <xs:enumeration value="CUBIC_M"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Weight">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the heaviness of an object.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:WeightUnits" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure associated with a weight value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:decimal" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the weight value of a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="WeightUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the unit of measure associated with a weight value. See the list of enumerated types for valid values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KG"/>
+          <xs:enumeration value="LB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="WebAuthenticationDetail">
+        <xs:annotation>
+          <xs:documentation>Used in authentication of the sender's identity.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UserCredential" type="ns:WebAuthenticationCredential" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Credential used to authenticate a specific software application. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="WebAuthenticationCredential">
+        <xs:annotation>
+          <xs:documentation>Two part authentication string used for the sender's identity</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Key" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifying part of authentication credential. This value is provided by FedEx after registration</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Secret part of authentication key. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VersionId">
+        <xs:annotation>
+          <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ServiceId" type="xs:string" fixed="ship" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies a system or sub-system which performs an operation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Major" type="xs:int" fixed="10" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service business level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Intermediate" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service interface level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Minor" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service code level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="ProcessShipmentReply">
+    <part name="ProcessShipmentReply" element="ns:ProcessShipmentReply"/>
+  </message>
+  <message name="DeleteTagRequest">
+    <part name="DeleteTagRequest" element="ns:DeleteTagRequest"/>
+  </message>
+  <message name="ProcessShipmentRequest">
+    <part name="ProcessShipmentRequest" element="ns:ProcessShipmentRequest"/>
+  </message>
+  <message name="CreatePendingShipmentRequest">
+    <part name="CreatePendingShipmentRequest" element="ns:CreatePendingShipmentRequest"/>
+  </message>
+  <message name="ProcessTagRequest">
+    <part name="ProcessTagRequest" element="ns:ProcessTagRequest"/>
+  </message>
+  <message name="CancelPendingShipmentReply">
+    <part name="CancelPendingShipmentReply" element="ns:CancelPendingShipmentReply"/>
+  </message>
+  <message name="CancelPendingShipmentRequest">
+    <part name="CancelPendingShipmentRequest" element="ns:CancelPendingShipmentRequest"/>
+  </message>
+  <message name="DeleteShipmentRequest">
+    <part name="DeleteShipmentRequest" element="ns:DeleteShipmentRequest"/>
+  </message>
+  <message name="ShipmentReply">
+    <part name="ShipmentReply" element="ns:ShipmentReply"/>
+  </message>
+  <message name="ProcessTagReply">
+    <part name="ProcessTagReply" element="ns:ProcessTagReply"/>
+  </message>
+  <message name="ValidateShipmentRequest">
+    <part name="ValidateShipmentRequest" element="ns:ValidateShipmentRequest"/>
+  </message>
+  <message name="CreatePendingShipmentReply">
+    <part name="CreatePendingShipmentReply" element="ns:CreatePendingShipmentReply"/>
+  </message>
+  <portType name="ShipPortType">
+    <operation name="processTag" parameterOrder="ProcessTagRequest">
+      <input message="ns:ProcessTagRequest"/>
+      <output message="ns:ProcessTagReply"/>
+    </operation>
+    <operation name="createPendingShipment" parameterOrder="CreatePendingShipmentRequest">
+      <input message="ns:CreatePendingShipmentRequest"/>
+      <output message="ns:CreatePendingShipmentReply"/>
+    </operation>
+    <operation name="cancelPendingShipment" parameterOrder="CancelPendingShipmentRequest">
+      <input message="ns:CancelPendingShipmentRequest"/>
+      <output message="ns:CancelPendingShipmentReply"/>
+    </operation>
+    <operation name="processShipment" parameterOrder="ProcessShipmentRequest">
+      <input message="ns:ProcessShipmentRequest"/>
+      <output message="ns:ProcessShipmentReply"/>
+    </operation>
+    <operation name="deleteTag" parameterOrder="DeleteTagRequest">
+      <input message="ns:DeleteTagRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+    <operation name="validateShipment" parameterOrder="ValidateShipmentRequest">
+      <input message="ns:ValidateShipmentRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+    <operation name="deleteShipment" parameterOrder="DeleteShipmentRequest">
+      <input message="ns:DeleteShipmentRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+  </portType>
+  <binding name="ShipServiceSoapBinding" type="ns:ShipPortType">
+    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="processTag">
+      <s1:operation soapAction="processTag" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="createPendingShipment">
+      <s1:operation soapAction="createPendingShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="cancelPendingShipment">
+      <s1:operation soapAction="cancelPendingShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="processShipment">
+      <s1:operation soapAction="processShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="deleteTag">
+      <s1:operation soapAction="deleteTag" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="validateShipment">
+      <s1:operation soapAction="validateShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="deleteShipment">
+      <s1:operation soapAction="deleteShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="ShipService">
+    <port name="ShipServicePort" binding="ns:ShipServiceSoapBinding">
+      <s1:address location="https://wsbeta.fedex.com:443/web-services/ship"/>
+    </port>
+  </service>
+</definitions>
diff --git app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v9.wsdl app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v9.wsdl
new file mode 100644
index 0000000..b32e571
--- /dev/null
+++ app/code/core/Mage/Usa/etc/wsdl/FedEx/ShipService_v9.wsdl
@@ -0,0 +1,5472 @@
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/ship/v9"
+             xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/"
+             targetNamespace="http://fedex.com/ws/ship/v9" name="ShipServiceDefinitions">
+  <types>
+    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/ship/v9">
+      <xs:element name="CancelPendingShipmentReply" type="ns:CancelPendingShipmentReply"/>
+      <xs:element name="CancelPendingShipmentRequest" type="ns:CancelPendingShipmentRequest"/>
+      <xs:element name="CreatePendingShipmentReply" type="ns:CreatePendingShipmentReply"/>
+      <xs:element name="CreatePendingShipmentRequest" type="ns:CreatePendingShipmentRequest"/>
+      <xs:element name="DeleteShipmentRequest" type="ns:DeleteShipmentRequest"/>
+      <xs:element name="DeleteTagRequest" type="ns:DeleteTagRequest"/>
+      <xs:element name="ProcessShipmentReply" type="ns:ProcessShipmentReply"/>
+      <xs:element name="ProcessShipmentRequest" type="ns:ProcessShipmentRequest"/>
+      <xs:element name="ProcessTagReply" type="ns:ProcessTagReply"/>
+      <xs:element name="ProcessTagRequest" type="ns:ProcessTagRequest"/>
+      <xs:element name="ShipmentReply" type="ns:ShipmentReply"/>
+      <xs:element name="ValidateShipmentRequest" type="ns:ValidateShipmentRequest"/>
+      <xs:complexType name="AdditionalLabelsDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies additional labels to be produced. All required labels for shipments will be produced without the need to request additional labels. These are only available as thermal labels.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:AdditionalLabelsType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of additional labels to return.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The number of this type label to return</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="AdditionalLabelsType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of additional labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="CUSTOMS"/>
+          <xs:enumeration value="DESTINATION"/>
+          <xs:enumeration value="FREIGHT_REFERENCE"/>
+          <xs:enumeration value="MANIFEST"/>
+          <xs:enumeration value="ORIGIN"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Address">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StreetLines" type="xs:string" minOccurs="0" maxOccurs="2">
+            <xs:annotation>
+              <xs:documentation>Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="City" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of city, town, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrbanizationCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relevant only to addresses in Puerto Rico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The two-letter code used to identify a country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Residential" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this address residential (as opposed to commercial).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="AstraLabelElement">
+        <xs:sequence>
+          <xs:element name="Number" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Position of Astra element</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Content" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Content corresponding to the Astra Element</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="B13AFilingOptionType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies which filing option is being exercised by the customer.
+            Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FILED_ELECTRONICALLY"/>
+          <xs:enumeration value="MANUALLY_ATTACHED"/>
+          <xs:enumeration value="NOT_REQUIRED"/>
+          <xs:enumeration value="SUMMARY_REPORTING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="BarcodeSymbologyType">
+        <xs:annotation>
+          <xs:documentation>Identification of the type of barcode (symbology) used on FedEx documents and labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CODE128B"/>
+          <xs:enumeration value="CODE128C"/>
+          <xs:enumeration value="CODE39"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="BinaryBarcode">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents a barcode whose content must be represented as binary data (i.e. not ASCII text).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:BinaryBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The kind of barcode data in this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:base64Binary" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data content of this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="BinaryBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON_2D"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CancelPendingShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1"/>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded"/>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0"/>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CancelPendingShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to Cancel a Pending shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CarrierCodeType">
+        <xs:annotation>
+          <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FDXC"/>
+          <xs:enumeration value="FDXE"/>
+          <xs:enumeration value="FDXG"/>
+          <xs:enumeration value="FXCC"/>
+          <xs:enumeration value="FXFR"/>
+          <xs:enumeration value="FXSP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Certificate of Origin ( e.g. whether or not to include the instructions, image type, etc ...)</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentFormat" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ClearanceBrokerageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of brokerage to be applied to a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_INCLUSIVE"/>
+          <xs:enumeration value="BROKER_INCLUSIVE_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_SELECT"/>
+          <xs:enumeration value="BROKER_SELECT_NON_RESIDENT_IMPORTER"/>
+          <xs:enumeration value="BROKER_UNASSIGNED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ClientDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for the client submitting a transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The FedEx account number associated with this transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MeterNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This number is assigned by FedEx and identifies the unique device from which the request is originating</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntegratorId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in transactions which require identification of the Fed Ex Office integrator.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to be used for human-readable Notification.localizedMessages in responses to the request containing this ClientDetail object. Different requests from the same client may contain different Localization data. (Contrast with TransactionDetail.localization, which governs data payload language/translation.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodAddTransportationChargesType">
+        <xs:annotation>
+          <xs:documentation>Identifies what freight charges should be added to the COD collect amount.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADD_ACCOUNT_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_CHARGE"/>
+          <xs:enumeration value="ADD_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_ACCOUNT_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_COD_SURCHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_CHARGE"/>
+          <xs:enumeration value="ADD_LIST_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_LIST_TOTAL_CUSTOMER_CHARGE"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_ACCOUNT_NET_FREIGHT"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_CHARGES"/>
+          <xs:enumeration value="ADD_SUM_OF_LIST_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CodCollectionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of funds FedEx should collect upon shipment delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ANY"/>
+          <xs:enumeration value="CASH"/>
+          <xs:enumeration value="COMPANY_CHECK"/>
+          <xs:enumeration value="GUARANTEED_FUNDS"/>
+          <xs:enumeration value="PERSONAL_CHECK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CodCollectionAmount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="AddTransportationCharges" type="ns:CodAddTransportationChargesType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies if freight charges are to be added to the COD amount. This element determines which freight charges should be added to the COD collect amount. See CodAddTransportationChargesType for a list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectionType" type="ns:CodCollectionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of funds FedEx should collect upon package delivery</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For Express this is the descriptive data that is used for the recipient of the FedEx Letter containing the COD payment. For Ground this is the descriptive data for the party to receive the payment that prints the COD receipt.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReferenceIndicator" type="ns:CodReturnReferenceIndicatorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CodReturnPackageDetail">
+        <xs:sequence>
+          <xs:element name="CollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The COD amount (after any accumulations) that must be collected upon delivery of a package shipped using the COD special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Electronic" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the data which form the Astra and 2DCommon barcodes that print on the COD return label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CodReturnReferenceIndicatorType">
+        <xs:annotation>
+          <xs:documentation>Indicates which type of reference information to include on the COD return shipping label.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INVOICE"/>
+          <xs:enumeration value="PO"/>
+          <xs:enumeration value="REFERENCE"/>
+          <xs:enumeration value="TRACKING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CodReturnShipmentDetail">
+        <xs:sequence>
+          <xs:element name="CollectionAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The COD amount (after any accumulations) that must be collected upon delivery of a package shipped using the COD special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Handling" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceTypeDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The description of the FedEx service type used for the COD return shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>70</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The description of the packaging used for the COD return shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>40</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SecuredDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Remitter" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRecipient" type="ns:Party" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodRoutingDetail" type="ns:RoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The CodRoutingDetail element will contain the COD return tracking number and form id. In the case of a COD multiple piece shipment these will need to be inserted in the request for the last piece of the multiple piece shipment.
+                The service commitment is the only other element of the RoutingDetail that is used for a CodRoutingDetail.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the data which form the Astra and 2DCommon barcodes that print on the COD return label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoice">
+        <xs:annotation>
+          <xs:documentation>CommercialInvoice element is required for electronic upload of CI data. It will serve to create/transmit an Electronic Commercial Invoice through the FedEx Systems. Customers are responsible for printing their own Commercial Invoice.If you would likeFedEx to generate a Commercial Invoice and transmit it to Customs. for clearance purposes, you need to specify that in the ShippingDocumentSpecification element. If you would like a copy of the Commercial Invoice that FedEx generated returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies element. Commercial Invoice support consists of maximum of 99 commodity line items.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Comments" type="xs:string" minOccurs="0" maxOccurs="99">
+            <xs:annotation>
+              <xs:documentation>Any comments that need to be communicated about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any freight charges that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TaxesOrMiscellaneousCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any taxes or miscellaneous charges(other than Freight charges or Insurance charges) that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any packing costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingCosts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Any handling costs that are associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclarationStatment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentTerms" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free-form text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerInvoiceNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer assigned Invoice number</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginatorName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of the International Expert that completed the Commercial Invoice different from Sender.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsOfSale" type="ns:TermsOfSaleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for dutiable international Express or Ground shipment. This field is not applicable to an international PIB(document) or a non-document which does not require a Commercial Invoice</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CommercialInvoiceDetail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the Commercial Invoice( e.g. image type) Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of a customer supplied image to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Commodity">
+        <xs:annotation>
+          <xs:documentation>
+            For international multiple piece shipments, commodity information must be passed in the Master and on each child transaction.
+            If this shipment cotains more than four commodities line items, the four highest valued should be included in the first 4 occurances for this request.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Name" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of this commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NumberOfPieces" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total number of pieces of this commodity</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Complete and accurate description of this commodity.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>450</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryOfManufacture" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Country code where commodity contents were produced or manufactured in their final form.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Unique alpha/numeric representing commodity item.
+                At least one occurrence is required for US Export shipments if the Customs Value is greater than $2500 or if a valid US Export license is required.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total weight of this commodity. 1 explicit decimal position. Max length 11 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of a commodity in total number of pieces for this line item. Max length is 9</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QuantityUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unit of measure used to express the quantity of this commodity line item.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalMeasures" type="ns:Measure" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains only additional quantitative information other than weight and quantity to calculate duties and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UnitPrice" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value of each unit in Quantity. Six explicit decimal positions, Max length 18 including decimal.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total customs value for this line item.
+                It should equal the commodity unit quantity times commodity unit value.
+                Six explicit decimal positions, max length 18 including decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExciseConditions" type="ns:EdtExciseCondition" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional characteristic of commodity used to calculate duties and taxes</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable to US export shipping only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportLicenseExpirationDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Date of expiration. Must be at least 1 day into future.
+                The date that the Commerce Export License expires. Export License commodities may not be exported from the U.S. on an expired license.
+                Applicable to US Export shipping only.
+                Required only if commodity is shipped on commerce export license, and Export License Number is supplied.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CIMarksAndNumbers" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                An identifying mark or number used on the packaging of a shipment to help customers identify a particular shipment.
+              </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaDetail" type="ns:NaftaCommodityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All data required for this commodity in NAFTA Certificate of Origin.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedEtdDetail">
+        <xs:sequence>
+          <xs:element name="FolderId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier for all clearance documents associated with this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UploadDocumentReferenceDetails" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedHoldAtLocationDetail">
+        <xs:sequence>
+          <xs:element name="HoldingLocation" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the branded location name, the hold at location phone number and the address of the location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldingLocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of FedEx location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedPackageDetail">
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The package sequence number of this package in a multiple piece shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingIds" type="ns:TrackingId" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The Tracking number and form id for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with request containing PACKAGE_GROUPS, to identify which group of identical packages was used to produce a reply item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeClass" type="ns:OversizeClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Oversize class for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageRating" type="ns:PackageRating" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All package-level rating data for this package, which may include data for multiple rate types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroundServiceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Associated with package, due to interaction with per-package hazardous materials presence/absence.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcodes" type="ns:PackageBarcodes" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data that is used to from the Astra and 2DCommon barcodes for the label..</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraHandlingText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The textual description of the special service applied to the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraLabelElements" type="ns:AstraLabelElement" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Label" type="ns:ShippingDocument" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The label image or printer commands to print the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDocuments" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All package-level shipping documents (other than labels and barcodes). For use in loads after January, 2008.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnDetail" type="ns:CodReturnPackageDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the COD return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOption" type="ns:SignatureOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual signature option applied, to allow for cases in which the original value conflicted with other service features in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:ValidatedHazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package, using updated hazardous commodity description data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedShipmentDetail">
+        <xs:sequence>
+          <xs:element name="UsDomestic" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this is a US Domestic shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCode" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the carrier that will be used to deliver this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MasterTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The master tracking number and form id of this multiple piece shipment. This information is to be provided for each subsequent of a multiple piece shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceTypeDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the FedEx service used for this shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>70</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging used for this shipment. Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>40</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RoutingDetail" type="ns:ShipmentRoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AccessDetail" type="ns:PendingShipmentAccessDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with pending shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TagDetail" type="ns:CompletedTagDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in the reply to tag requests.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:CompletedSmartPostDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides reply information specific to SmartPost shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRating" type="ns:ShipmentRating" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>All shipment-level rating data for this shipment, which may include data for multiple rate types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnDetail" type="ns:CodReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Information about the COD return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedHoldAtLocationDetail" type="ns:CompletedHoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Returns the default holding location information when HOLD_AT_LOCATION special service is requested and the client does not specify the hold location address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IneligibleForMoneyBackGuarantee" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or not this shipment is eligible for a money back guarantee.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Returns any defaults or updates applied to RequestedShipment.exportDetail.exportComplianceStatement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedEtdDetail" type="ns:CompletedEtdDetail" minOccurs="0"/>
+          <xs:element name="ShipmentDocuments" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All shipment-level shipping documents (other than labels and barcodes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedPackageDetails" type="ns:CompletedPackageDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Package level details about this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedSmartPostDetail">
+        <xs:annotation>
+          <xs:documentation>Provides reply information specific to SmartPost shipments.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PickUpCarrier" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the carrier that will pick up the SmartPost shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Machinable" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether the shipment is deemed to be machineable, based on dimensions, weight, and packaging.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CompletedTagDetail">
+        <xs:annotation>
+          <xs:documentation>Provides reply information specific to a tag request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ConfirmationNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AccessTime" type="xs:duration" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CutoffTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Location" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryCommitment" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>As of June 2007, returned only for FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FEDEX INTERNAL USE ONLY: for use by INET.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ConfigurableLabelReferenceEntry">
+        <xs:annotation>
+          <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>1 of 12 possible zones to position data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifiying text for the data in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A reference to a field in either the request or reply to print in this zone following the header.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A literal value to print after the header in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Contact">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a point-of-contact person.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ContactId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Client provided identifier corresponding to this contact information.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's name.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Title" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's title.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompanyName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the company this contact is associated with.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneExtension" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone extension associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagerNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the pager number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the fax number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the email address associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContactAndAddress">
+        <xs:sequence>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="1"/>
+          <xs:element name="Address" type="ns:Address" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContentRecord">
+        <xs:annotation>
+          <xs:documentation>Content Record.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PartNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Part Number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Item Number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReceivedQuantity" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Received Quantity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CreatePendingShipmentReply">
+        <xs:annotation>
+          <xs:documentation>Reply to the Close Request transaction. The Close Reply bring back the ASCII data buffer which will be used to print the Close Manifest. The Manifest is essential at the time of pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the highest severity encountered when executing the request; in order from high to low: FAILURE, ERROR, WARNING, NOTE, SUCCESS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data detailing the status of a sumbitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data that governs data payload language/translations. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reply payload. All of the returned information about this shipment/package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CreatePendingShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Create Pending Shipment Request</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CurrencyExchangeRate">
+        <xs:annotation>
+          <xs:documentation>Currency exchange rate information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FromCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the original (converted FROM) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntoCurrency" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The currency code for the final (converted INTO) currency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rate" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Multiplier used to convert fromCurrency units to intoCurrency units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomDeliveryWindowDetail">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomDeliveryWindowType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the type of custom delivery being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestTime" type="xs:time" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time by which delivery is requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Range of dates for custom delivery request; only used if type is BETWEEN.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date for custom delivery request; only used for types of ON, BETWEEN, or AFTER.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomDeliveryWindowType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AFTER"/>
+          <xs:enumeration value="BEFORE"/>
+          <xs:enumeration value="BETWEEN"/>
+          <xs:enumeration value="ON"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomDocumentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a custom-specified document, either at shipment or package level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Common information controlling document production.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelRotation" type="ns:LabelRotationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Applicable only to documents produced on thermal printers with roll stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecificationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the formatting specification used to construct this custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDocumentIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the individual document specified by the client.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If provided, thermal documents will include specified doc tab content. If omitted, document will be produced without doc tab content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBarcodeEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified barcode symbology.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarHeight" type="xs:int" minOccurs="0"/>
+          <xs:element name="ThinBarWidth" type="xs:int" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Width of thinnest bar/space element in the barcode.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BarcodeSymbology" type="ns:BarcodeSymbologyType" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelBoxEntry">
+        <xs:annotation>
+          <xs:documentation>Solid (filled) rectangular area on label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TopLeftCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="BottomRightCorner" type="ns:CustomLabelPosition" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomLabelCoordinateUnits">
+        <xs:annotation>
+          <xs:documentation>Valid values for CustomLabelCoordinateUnits</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MILS"/>
+          <xs:enumeration value="PIXELS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomLabelDetail">
+        <xs:sequence>
+          <xs:element name="CoordinateUnits" type="ns:CustomLabelCoordinateUnits" minOccurs="0"/>
+          <xs:element name="TextEntries" type="ns:CustomLabelTextEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="GraphicEntries" type="ns:CustomLabelGraphicEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BoxEntries" type="ns:CustomLabelBoxEntry" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="BarcodeEntries" type="ns:CustomLabelBarcodeEntry" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelGraphicEntry">
+        <xs:annotation>
+          <xs:documentation>Image to be included from printer's memory, or from a local file for offline clients.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="0"/>
+          <xs:element name="PrinterGraphicId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific index of graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FileGraphicFullName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-qualified path and file name for graphic image to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelPosition">
+        <xs:sequence>
+          <xs:element name="X" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Horizontal position, relative to left edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Y" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Vertical position, relative to top edge of custom area.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomLabelTextEntry">
+        <xs:annotation>
+          <xs:documentation>Constructed string, based on format and zero or more data fields, printed in specified printer font (for thermal labels) or generic font/size (for plain paper labels).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Position" type="ns:CustomLabelPosition" minOccurs="1"/>
+          <xs:element name="Format" type="xs:string" minOccurs="0"/>
+          <xs:element name="DataFields" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ThermalFontId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Printer-specific font name for use with thermal printer labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font name for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FontSize" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Generic font size for use with plain paper labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomerImageUsage">
+        <xs:sequence>
+          <xs:element name="Type" type="ns:CustomerImageUsageType" minOccurs="0"/>
+          <xs:element name="Id" type="ns:ImageId" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerImageUsageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LETTER_HEAD"/>
+          <xs:enumeration value="SIGNATURE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerReference">
+        <xs:annotation>
+          <xs:documentation>Reference information to be associated with this package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerReferenceType" type="ns:CustomerReferenceType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The reference type to be associated with this reference data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="CustomerReferenceType">
+        <xs:annotation>
+          <xs:documentation>The types of references available for use.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BILL_OF_LADING"/>
+          <xs:enumeration value="CUSTOMER_REFERENCE"/>
+          <xs:enumeration value="DEPARTMENT_NUMBER"/>
+          <xs:enumeration value="ELECTRONIC_PRODUCT_CODE"/>
+          <xs:enumeration value="INTRACOUNTRY_REGULATORY_REFERENCE"/>
+          <xs:enumeration value="INVOICE_NUMBER"/>
+          <xs:enumeration value="P_O_NUMBER"/>
+          <xs:enumeration value="SHIPMENT_INTEGRITY"/>
+          <xs:enumeration value="STORE_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="CustomerSpecifiedLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomContent" type="ns:CustomLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defines any custom content to print on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfigurableReferenceEntries" type="ns:ConfigurableLabelReferenceEntry" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Defines additional data to print in the Configurable portion of the label, this allows you to print the same type information on the label that can also be printed on the doc tab.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaskedData" type="ns:LabelMaskableDataType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls which data/sections will be suppressed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ScncOverride" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided SCNC for use with label-data-only processing of FedEx Ground shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TermsAndConditionsLocalization" type="ns:Localization" minOccurs="0"/>
+          <xs:element name="AdditionalLabels" type="ns:AdditionalLabelsDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Controls the number of additional copies of supplemental labels.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirWaybillSuppressionCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This value reduces the default quantity of destination/consignee air waybill labels. A value of zero indicates no change to default. A minimum of one copy will always be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="CustomsClearanceDetail">
+        <xs:sequence>
+          <xs:element name="Broker" type="ns:Party" minOccurs="0"/>
+          <xs:element name="ClearanceBrokerage" type="ns:ClearanceBrokerageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Interacts both with properties of the shipment and contractual relationship with the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImporterOfRecord" type="ns:Party" minOccurs="0"/>
+          <xs:element name="RecipientCustomsId" type="ns:RecipientCustomsId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesPayment" type="ns:Payment" minOccurs="0"/>
+          <xs:element name="DocumentContent" type="ns:InternationalDocumentContentType" minOccurs="0"/>
+          <xs:element name="CustomsValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="FreightOnValue" type="ns:FreightOnValueType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="InsuranceCharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Documents amount paid to third party for coverage of shipment content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PartiesToTransactionAreRelated" type="xs:boolean" minOccurs="0"/>
+          <xs:element name="CommercialInvoice" type="ns:CommercialInvoice" minOccurs="0"/>
+          <xs:element name="Commodities" type="ns:Commodity" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="ExportDetail" type="ns:ExportDetail" minOccurs="0"/>
+          <xs:element name="RegulatoryControls" type="ns:RegulatoryControlType" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DangerousGoodsAccessibilityType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCESSIBLE"/>
+          <xs:enumeration value="INACCESSIBLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DangerousGoodsDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for a FedEx shipment containing dangerous goods (hazardous materials).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Accessibility" type="ns:DangerousGoodsAccessibilityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies whether or not the products being shipped are required to be accessible during delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CargoAircraftOnly" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipment is packaged/documented for movement ONLY on cargo aircraft.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which kinds of hazardous content are in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousCommodities" type="ns:HazardousCommodityContent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Documents the kinds and quantities of all hazardous commodities in the current package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:HazardousCommodityPackagingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description of the packaging of this commodity, suitable for use on OP-900 and OP-950 forms.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Telephone number to use for contact in the event of an emergency.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Offeror" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Offeror's name or contract number, per DOT regulation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DateRange">
+        <xs:sequence>
+          <xs:element name="Begins" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The beginning date in a date range.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Ends" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The end date in a date range.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DayOfWeekType">
+        <xs:annotation>
+          <xs:documentation>Valid values for DayofWeekType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FRI"/>
+          <xs:enumeration value="MON"/>
+          <xs:enumeration value="SAT"/>
+          <xs:enumeration value="SUN"/>
+          <xs:enumeration value="THU"/>
+          <xs:enumeration value="TUE"/>
+          <xs:enumeration value="WED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DeleteShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to delete a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The timestamp of the shipment request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx tracking number of the package being cancelled.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeletionControl" type="ns:DeletionControlType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Determines the type of deletion to be performed in relation to package level vs shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DeleteTagRequest">
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for tags which had FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DispatchDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for tags which had FedEx Express services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payment" type="ns:Payment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>If the original ProcessTagRequest specified third-party payment, then the delete request must contain the same pay type and payor account number for security purposes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ConfirmationNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Also known as Pickup Confirmation Number or Dispatch Number</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DeletionControlType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of deletion to be performed on a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DELETE_ALL_PACKAGES"/>
+          <xs:enumeration value="DELETE_ONE_PACKAGE"/>
+          <xs:enumeration value="LEGACY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DestinationControlDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to complete the Destionation Control Statement for US exports.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StatementTypes" type="ns:DestinationControlStatementType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>List of applicable Statment types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationCountries" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Comma-separated list of up to four country codes, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EndUser" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of end user, required for DEPARTMENT_OF_STATE statement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DestinationControlStatementType">
+        <xs:annotation>
+          <xs:documentation>Used to indicate whether the Destination Control Statement is of type Department of Commerce, Department of State or both.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DEPARTMENT_OF_COMMERCE"/>
+          <xs:enumeration value="DEPARTMENT_OF_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Dimensions">
+        <xs:annotation>
+          <xs:documentation>The dimensions of this package and the unit type used for the measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Length" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Width" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Height" type="xs:nonNegativeInteger" minOccurs="1"/>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContent">
+        <xs:sequence>
+          <xs:element name="DocTabContentType" type="ns:DocTabContentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType options available.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Zone001" type="ns:DocTabContentZone001" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to ZONE001 to specify additional Zone details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcoded" type="ns:DocTabContentBarcoded" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The DocTabContentType should be set to BARCODED to specify additional BarCoded details.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="DocTabContentBarcoded">
+        <xs:sequence>
+          <xs:element name="Symbology" type="ns:BarcodeSymbologyType" minOccurs="0"/>
+          <xs:element name="Specification" type="ns:DocTabZoneSpecification" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabContentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BARCODED"/>
+          <xs:enumeration value="MINIMUM"/>
+          <xs:enumeration value="STANDARD"/>
+          <xs:enumeration value="ZONE001"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabContentZone001">
+        <xs:sequence>
+          <xs:element name="DocTabZoneSpecifications" type="ns:DocTabZoneSpecification" minOccurs="1" maxOccurs="12"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DocTabZoneJustificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="RIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="DocTabZoneSpecification">
+        <xs:sequence>
+          <xs:element name="ZoneNumber" type="xs:positiveInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Zone number can be between 1 and 12.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Header" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Header value on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DataField" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Reference path to the element in the request/reply whose value should be printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiteralValue" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form-text to be printed in this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Justification" type="ns:DocTabZoneJustificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Justification for the text printed on this zone.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DropoffType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_SERVICE_CENTER"/>
+          <xs:enumeration value="DROP_BOX"/>
+          <xs:enumeration value="REGULAR_PICKUP"/>
+          <xs:enumeration value="REQUEST_COURIER"/>
+          <xs:enumeration value="STATION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Describes specific information about the email label shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="NotificationEMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Notification email will be sent to this email address</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Message to be sent in the notification email</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationAggregationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PER_PACKAGE"/>
+          <xs:enumeration value="PER_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationDetail">
+        <xs:annotation>
+          <xs:documentation>Information describing email notifications that will be sent in relation to events that occur during package movement</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AggregationType" type="ns:EMailNotificationAggregationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether/how email notifications are grouped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PersonalMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message that will be included in the email notifications</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipients" type="ns:EMailNotificationRecipient" minOccurs="1" maxOccurs="6">
+            <xs:annotation>
+              <xs:documentation>Information describing the destination of the email, format of the email and events to be notified on</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationFormatType">
+        <xs:annotation>
+          <xs:documentation>The format of the email</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HTML"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="WIRELESS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationRecipient">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a FedEx email notification recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailNotificationRecipientType" type="ns:EMailNotificationRecipientType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship this email recipient has to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The email address to send the notification to</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnShipment" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been shipped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnException" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient if this shipment encounters a problem while in route</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotifyOnDelivery" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Notify the email recipient when this shipment has been delivered.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Format" type="ns:EMailNotificationFormatType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The format of the email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The language/locale to be used in this email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationRecipientType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid email notification recipient types. For SHIPPER, RECIPIENT and BROKER the email address asssociated with their definitions will be used, any email address sent with the email notification for these three email notification recipient types will be ignored.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtCommodityTax">
+        <xs:sequence>
+          <xs:element name="HarmonizedCode" type="xs:string" minOccurs="0"/>
+          <xs:element name="Taxes" type="ns:EdtTaxDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="EdtExciseCondition">
+        <xs:sequence>
+          <xs:element name="Category" type="xs:string" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-declared value, with data type and legal values depending on excise condition, used in defining the taxable value of the item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtRequestType">
+        <xs:annotation>
+          <xs:documentation>Specifies the types of Estimated Duties and Taxes to be included in a rate quotation for an international shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ALL"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EdtTaxDetail">
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:EdtTaxType" minOccurs="0"/>
+          <xs:element name="EffectiveDate" type="xs:date" minOccurs="0"/>
+          <xs:element name="Name" type="xs:string" minOccurs="0"/>
+          <xs:element name="TaxableValue" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Formula" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EdtTaxType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_TAXES"/>
+          <xs:enumeration value="CONSULAR_INVOICE_FEE"/>
+          <xs:enumeration value="CUSTOMS_SURCHARGES"/>
+          <xs:enumeration value="DUTY"/>
+          <xs:enumeration value="EXCISE_TAX"/>
+          <xs:enumeration value="FOREIGN_EXCHANGE_TAX"/>
+          <xs:enumeration value="GENERAL_SALES_TAX"/>
+          <xs:enumeration value="IMPORT_LICENSE_FEE"/>
+          <xs:enumeration value="INTERNAL_ADDITIONAL_TAXES"/>
+          <xs:enumeration value="INTERNAL_SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="SENSITIVE_PRODUCTS_TAX"/>
+          <xs:enumeration value="STAMP_TAX"/>
+          <xs:enumeration value="STATISTICAL_TAX"/>
+          <xs:enumeration value="TRANSPORT_FACILITIES_TAX"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ErrorLabelBehaviorType">
+        <xs:annotation>
+          <xs:documentation>
+            Specifies the client-requested response in the event of errors within shipment.
+            PACKAGE_ERROR_LABELS : Return per-package error label in addition to error Notifications.
+            STANDARD             : Return error Notifications only.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE_ERROR_LABELS"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EtdDetail">
+        <xs:annotation>
+          <xs:documentation>Electronic Trade document references used with the ETD special service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RequestedDocumentCopies" type="ns:RequestedShippingDocumentType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents produced for the shipper by FedEx (see ShippingDocumentSpecification) which should be copied back to the shipper in the shipment result data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocumentReferences" type="ns:UploadDocumentReferenceDetail" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExportDetail">
+        <xs:annotation>
+          <xs:documentation>Country specific details of an International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="B13AFilingOption" type="ns:B13AFilingOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Specifies which filing option is being exercised by the customer.
+                Required for non-document shipments originating in Canada destined for any country other than Canada, the United States, Puerto Rico or the U.S. Virgin Islands.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExportComplianceStatement" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>General field for exporting-country-specific export data (e.g. B13A for CA, FTSR Exemption or AES Citation for US).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PermitNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field is applicable only to Canada export non-document shipments of any value to any destination. No special characters allowed. </xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationControlDetail" type="ns:DestinationControlDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Department of Commerce/Department of State information about this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ExpressFreightDetail">
+        <xs:annotation>
+          <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackingListEnclosed" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether or nor a packing list is enclosed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippersLoadAndCount" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Total shipment pieces.
+                e.g. 3 boxes and 3 pallets of 100 pieces each = Shippers Load and Count of 303.
+                Applicable to International Priority Freight and International Economy Freight.
+                Values must be in the range of 1 - 99999
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BookingConfirmationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for International Freight shipping. Values must be 8- 12 characters in length.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FedExLocationType">
+        <xs:annotation>
+          <xs:documentation>Identifies a kind of FedEx facility.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_EXPRESS_STATION"/>
+          <xs:enumeration value="FEDEX_GROUND_TERMINAL"/>
+          <xs:enumeration value="FEDEX_OFFICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightAccountPaymentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="PREPAID"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightAddressLabelDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce the Freight handling-unit-level address labels. Note that the number of UNIQUE labels (the N as in 1 of N, 2 of N, etc.) is determined by total handling units.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="Copies" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the number of copies to be produced for each unique label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DocTabContent" type="ns:DocTabContent" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If omitted, no doc tab will be produced (i.e. default = former NONE type).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightBaseCharge">
+        <xs:annotation>
+          <xs:documentation>Individual charge which contributes to the total base charge for the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedAsClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Effective freight class used for rating this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeRate" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate or factor applied to this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ChargeBasis" type="ns:FreightChargeBasisType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the manner in which the chargeRate for this line item was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExtendedAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net or extended charge for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightChargeBasisType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CWT"/>
+          <xs:enumeration value="FLAT"/>
+          <xs:enumeration value="MINIMUM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightClassType">
+        <xs:annotation>
+          <xs:documentation>These values represent the industry-standard freight classes used for FedEx Freight and FedEx National Freight shipment description. (Note: The alphabetic prefixes are required to distinguish these values from decimal numbers on some client platforms.)</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CLASS_050"/>
+          <xs:enumeration value="CLASS_055"/>
+          <xs:enumeration value="CLASS_060"/>
+          <xs:enumeration value="CLASS_065"/>
+          <xs:enumeration value="CLASS_070"/>
+          <xs:enumeration value="CLASS_077_5"/>
+          <xs:enumeration value="CLASS_085"/>
+          <xs:enumeration value="CLASS_092_5"/>
+          <xs:enumeration value="CLASS_100"/>
+          <xs:enumeration value="CLASS_110"/>
+          <xs:enumeration value="CLASS_125"/>
+          <xs:enumeration value="CLASS_150"/>
+          <xs:enumeration value="CLASS_175"/>
+          <xs:enumeration value="CLASS_200"/>
+          <xs:enumeration value="CLASS_250"/>
+          <xs:enumeration value="CLASS_300"/>
+          <xs:enumeration value="CLASS_400"/>
+          <xs:enumeration value="CLASS_500"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightCollectTermsType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SECTION_7_SIGNED"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="FreightOnValueType">
+        <xs:annotation>
+          <xs:documentation>Identifies responsibilities with respect to loss, damage, etc.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CARRIER_RISK"/>
+          <xs:enumeration value="OWN_RISK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightRateDetail">
+        <xs:annotation>
+          <xs:documentation>Rate data specific to FedEx Freight or FedEx National Freight services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="QuoteNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a specific rate quotation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharges" type="ns:FreightBaseCharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Freight charges which accumulate to the total base charge for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notations" type="ns:FreightRateNotation" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Human-readable descriptions of additional information on this shipment rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightRateNotation">
+        <xs:annotation>
+          <xs:documentation>Additional non-monetary data returned with Freight rates.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Unique identifier for notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable explanation of notation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FedExFreightAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Account number used with FEDEX_FREIGHT service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FedExFreightBillingContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used for validating FedEx Freight account number and (optionally) identifying third party payment on the bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedReferences" type="ns:PrintedReference" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identification values to be printed during creation of a Freight bill of lading.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Role" type="ns:FreightShipmentRoleType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates which of the requester's tariffs will be used for rating.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CollectTermsType" type="ns:FreightCollectTermsType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Designates the terms of the "collect" payment for a Freight Shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValuePerUnit" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value for the shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeclaredValueUnits" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the declared value units corresponding to the above defined declared value</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LiabilityCoverageDetail" type="ns:LiabilityCoverageDetail" minOccurs="0"/>
+          <xs:element name="Coupons" type="xs:string" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifiers for promotional discounts offered to customers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalHandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total number of individual handling units in the entire shipment (for unit pricing).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDiscountPercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Estimated discount rate provided by client for unsecured rate quote.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PalletWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total weight of pallets used in shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Overall shipment dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Comment" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Description for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicePayments" type="ns:FreightSpecialServicePayment" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies which party will pay surcharges for any special services which support split billing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousMaterialsEmergencyContactNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Must be populated if any line items contain hazardous materials.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LineItems" type="ns:FreightShipmentLineItem" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Details of the commodities in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="FreightShipmentLineItem">
+        <xs:annotation>
+          <xs:documentation>Description of an individual commodity or class of content in a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="FreightClass" type="ns:FreightClassType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Freight class for this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClassProvidedByCustomer" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FEDEX INTERNAL USE ONLY: for FedEx system that estimate freight class from customer-provided dimensions and weight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HandlingUnits" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of individual handling units to which this line applies. (NOTE: Total of line-item-level handling units may not balance to shipment-level total handling units.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification of handling-unit packaging for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Pieces" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of pieces for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NmfcCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>NMFC Code for commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HazardousMaterials" type="ns:HazardousCommodityOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the kind of hazardous material content in this line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillOfLadingNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For printed reference per line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PurchaseOrderNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For printed reference per line item.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided description for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Weight for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FED EX INTERNAL USE ONLY - Individual line item dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Volume" type="ns:Volume" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Volume (cubic measure) for this commodity or class line.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="FreightShipmentRoleType">
+        <xs:annotation>
+          <xs:documentation>Indicates the role of the party submitting the transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE"/>
+          <xs:enumeration value="SHIPPER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="FreightSpecialServicePayment">
+        <xs:annotation>
+          <xs:documentation>Specifies which party will be responsible for payment of any surcharges for Freight special services for which split billing is allowed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialService" type="ns:ShipmentSpecialServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PaymentType" type="ns:FreightAccountPaymentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates who will pay for the special service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="GeneralAgencyAgreementDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a General Agency Agreement document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="1"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:HazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityLabelTextOptionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how the commodity is to be labeled.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPEND"/>
+          <xs:enumeration value="OVERRIDE"/>
+          <xs:enumeration value="STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityOptionDetail">
+        <xs:annotation>
+          <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LabelTextOption" type="ns:HazardousCommodityLabelTextOptionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how the customer wishes the label text to be handled for this commodity in this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSuppliedLabelText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text used in labeling the commodity under control of the labelTextOption field.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityOptionType">
+        <xs:annotation>
+          <xs:documentation>Indicates which kind of hazardous content (as defined by DOT) is being reported.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HAZARDOUS_MATERIALS"/>
+          <xs:enumeration value="LITHIUM_BATTERY_EXCEPTION"/>
+          <xs:enumeration value="ORM_D"/>
+          <xs:enumeration value="REPORTABLE_QUANTITIES"/>
+          <xs:enumeration value="SMALL_QUANTITY_EXCEPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityPackagingDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies number and type of packaging units for hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Count" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units in which the hazardous commodity is packaged.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HazardousCommodityPackingGroupType">
+        <xs:annotation>
+          <xs:documentation>Identifies DOT packing group for a hazardous commodity.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="I"/>
+          <xs:enumeration value="II"/>
+          <xs:enumeration value="III"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="HazardousCommodityQuantityDetail">
+        <xs:annotation>
+          <xs:documentation>Identifies amount and units for quantity of hazardous commodities.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of units of the type below.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Units by which the hazardous commodity is measured.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HoldAtLocationDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Contact phone number for recipient of shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address of FedEx facility at which shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocationType" type="ns:FedExLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type of facility at which package/shipment is to be held.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="HomeDeliveryPremiumDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required by FedEx for home delivery services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HomeDeliveryPremiumType" type="ns:HomeDeliveryPremiumType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of Home Delivery Premium service being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Date" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain Home Delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Required for Date Certain and Appointment Home Delivery.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="HomeDeliveryPremiumType">
+        <xs:annotation>
+          <xs:documentation>The type of Home Delivery Premium service being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT"/>
+          <xs:enumeration value="DATE_CERTAIN"/>
+          <xs:enumeration value="EVENING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ImageId">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMAGE_1"/>
+          <xs:enumeration value="IMAGE_2"/>
+          <xs:enumeration value="IMAGE_3"/>
+          <xs:enumeration value="IMAGE_4"/>
+          <xs:enumeration value="IMAGE_5"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="InternationalDocumentContentType">
+        <xs:annotation>
+          <xs:documentation>The type of International shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DERIVED"/>
+          <xs:enumeration value="DOCUMENTS_ONLY"/>
+          <xs:enumeration value="NON_DOCUMENTS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelFormatType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of label to be returned.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMMON2D"/>
+          <xs:enumeration value="FEDEX_FREIGHT_STRAIGHT_BILL_OF_LADING"/>
+          <xs:enumeration value="LABEL_DATA_ONLY"/>
+          <xs:enumeration value="VICS_BILL_OF_LADING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelMaskableDataType">
+        <xs:annotation>
+          <xs:documentation>Names for data elements / areas which may be suppressed from printing on labels.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMS_VALUE"/>
+          <xs:enumeration value="DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="SHIPPER_ACCOUNT_NUMBER"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelPrintingOrientationType">
+        <xs:annotation>
+          <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BOTTOM_EDGE_OF_TEXT_FIRST"/>
+          <xs:enumeration value="TOP_EDGE_OF_TEXT_FIRST"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LabelRotationType">
+        <xs:annotation>
+          <xs:documentation>Relative to normal orientation for the printer.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="LEFT"/>
+          <xs:enumeration value="NONE"/>
+          <xs:enumeration value="RIGHT"/>
+          <xs:enumeration value="UPSIDE_DOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LabelSpecification">
+        <xs:annotation>
+          <xs:documentation>Description of shipping label to be returned in the reply</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelFormatType" type="ns:LabelFormatType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Specify type of label to be returned</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelStockType" type="ns:LabelStockType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For thermal printer lables this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelPrintingOrientation" type="ns:LabelPrintingOrientationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This indicates if the top or bottom of the label comes out of the printer first.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintedLabelOrigin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If present, this contact and address information will replace the return address information on the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSpecifiedDetail" type="ns:CustomerSpecifiedLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Allows customer-specified control of label content.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LabelStockType">
+        <xs:annotation>
+          <xs:documentation>For thermal printer labels this indicates the size of the label and the location of the doc tab if present.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_4X8"/>
+          <xs:enumeration value="PAPER_4X9"/>
+          <xs:enumeration value="PAPER_7X4.75"/>
+          <xs:enumeration value="PAPER_8.5X11_BOTTOM_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_8.5X11_TOP_HALF_LABEL"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LiabilityCoverageDetail">
+        <xs:sequence>
+          <xs:element name="CoverageType" type="ns:LiabilityCoverageType" minOccurs="0"/>
+          <xs:element name="CoverageAmount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the Liability Coverage Amount. For Jan 2010 this value represents coverage amount per pound</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LiabilityCoverageType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NEW"/>
+          <xs:enumeration value="USED_OR_RECONDITIONED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="LinearMeasure">
+        <xs:annotation>
+          <xs:documentation>Represents a one-dimensional measurement in small units (e.g. suitable for measuring a package or document), contrasted with Distance, which represents a large one-dimensional measurement (e.g. distance between cities).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The numerical quantity of this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The units for this measurement.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="LinearUnits">
+        <xs:annotation>
+          <xs:documentation>CM = centimeters, IN = inches</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CM"/>
+          <xs:enumeration value="IN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Localization">
+        <xs:annotation>
+          <xs:documentation>Identifies the representation of human-readable text.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LanguageCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for language (e.g. EN, FR, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocaleCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for the region (e.g. us, ca, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Measure">
+        <xs:sequence>
+          <xs:element name="Quantity" type="xs:decimal" minOccurs="0"/>
+          <xs:element name="Units" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="MinimumChargeType">
+        <xs:annotation>
+          <xs:documentation>Identifies which type minimum charge was applied.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="CUSTOMER_FREIGHT_WEIGHT"/>
+          <xs:enumeration value="EARNED_DISCOUNT"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="RATE_SCALE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Money">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the medium of exchange for FedEx services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Currency" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the currency of the monetary amount.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>3</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Amount" type="xs:decimal" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the monetary amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCertificateOfOriginDetail">
+        <xs:annotation>
+          <xs:documentation>Data required to produce a Certificate of Origin document. Remaining content (business data) to be defined once requirements have been completed.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0"/>
+          <xs:element name="BlanketPeriod" type="ns:DateRange" minOccurs="0"/>
+          <xs:element name="ImporterSpecification" type="ns:NaftaImporterSpecificationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which Party (if any) from the shipment is to be used as the source of importer data on the NAFTA COO form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureContact" type="ns:Contact" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact information for "Authorized Signature" area of form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerSpecification" type="ns:NaftaProducerSpecificationType" minOccurs="0"/>
+          <xs:element name="Producers" type="ns:NaftaProducer" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NaftaCommodityDetail">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PreferenceCriterion" type="ns:NaftaPreferenceCriterionCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerDetermination" type="ns:NaftaProducerDeterminationCode" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Defined by NAFTA regulations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProducerId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of which producer is associated with this commodity (if multiple producers are used in a single shipment).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCostMethod" type="ns:NaftaNetCostMethodCode" minOccurs="0"/>
+          <xs:element name="NetCostDateRange" type="ns:DateRange" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date range over which RVC net cost was calculated.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaImporterSpecificationType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="IMPORTER_OF_RECORD"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="UNKNOWN"/>
+          <xs:enumeration value="VARIOUS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaNetCostMethodCode">
+        <xs:annotation>
+          <xs:documentation>Net cost method used.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NC"/>
+          <xs:enumeration value="NO"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaPreferenceCriterionCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="A"/>
+          <xs:enumeration value="B"/>
+          <xs:enumeration value="C"/>
+          <xs:enumeration value="D"/>
+          <xs:enumeration value="E"/>
+          <xs:enumeration value="F"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="NaftaProducer">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0"/>
+          <xs:element name="Producer" type="ns:Party" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NaftaProducerDeterminationCode">
+        <xs:annotation>
+          <xs:documentation>See instructions for NAFTA Certificate of Origin for code definitions.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="NO_1"/>
+          <xs:enumeration value="NO_2"/>
+          <xs:enumeration value="NO_3"/>
+          <xs:enumeration value="YES"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="NaftaProducerSpecificationType">
+        <xs:annotation>
+          <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AVAILABLE_UPON_REQUEST"/>
+          <xs:enumeration value="MULTIPLE_SPECIFIED"/>
+          <xs:enumeration value="SAME"/>
+          <xs:enumeration value="SINGLE_SPECIFIED"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Notification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data regarding the result of the submitted transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Severity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Source" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Indicates the source of this notification. Combined with the Code it uniquely identifies this notification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that represents this notification. Combined with the Source it uniquely identifies this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Message" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text that explains this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalizedMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MessageParameters" type="ns:NotificationParameter" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) witout having to parse the message string.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NotificationParameter">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of data contained in Value (e.g. SERVICE_TYPE, PACKAGE_SEQUENCE, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value of the parameter (e.g. PRIORITY_OVERNIGHT, 2, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NotificationSeverityType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of severity values for a Notification.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ERROR"/>
+          <xs:enumeration value="FAILURE"/>
+          <xs:enumeration value="NOTE"/>
+          <xs:enumeration value="SUCCESS"/>
+          <xs:enumeration value="WARNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Op900Detail">
+        <xs:annotation>
+          <xs:documentation>The instructions indicating how to print the OP-900 form for hazardous materials packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Format" type="ns:ShippingDocumentFormat" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reference" type="ns:CustomerReferenceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies which reference type (from the package's customer references) is to be used as the source for the reference on this OP-900.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerImageUsages" type="ns:CustomerImageUsage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the usage and identification of customer supplied images to be used on this document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data field to be used when a name is to be printed in the document instead of (or in addition to) a signature image.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="OversizeClassType">
+        <xs:annotation>
+          <xs:documentation>The oversize class types.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageBarcodes">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents the set of barcodes (of all types) which are associated with a specific package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="BinaryBarcodes" type="ns:BinaryBarcode" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Binary-style barcodes for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StringBarcodes" type="ns:StringBarcode" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>String-style barcodes for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PackageRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a package's rates, as calculated per a specific rate type.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight that was used to calculate the rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The dimensional weight of this package (if greater than actual).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OversizeWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The oversize weight of this package (if the package is oversize).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="BaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The transportation charge only (prior to any discounts applied) for this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all discounts on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's baseCharge - totalFreightDiscounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all surcharges on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sum of all taxes on this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This package's netFreight + totalSurcharges + totalTaxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this package (either because of characteristics of the package itself, or because it is carrying per-shipment surcharges for the shipment of which it is a part).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All taxes applicable (or distributed to) this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PackageRating">
+        <xs:annotation>
+          <xs:documentation>This class groups together for a single package all package-level rate data (across all rate types) as part of the response to a shipping request, which groups shipment-level data together and groups package-level data by package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This rate type identifies which entry in the following array is considered as presenting the "actual" rates for the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "list" net charge minus "actual" net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageRateDetails" type="ns:PackageRateDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element of this field provides package-level rate data for a specific rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackageSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx. BROKER_SELECT_OPTION should be used for Ground shipments only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="NON_STANDARD_CONTAINER"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PackageSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the package level for some or all service types. If the shipper is requesting a special service which requires additional data, the package special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:PackageSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment or package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with FedEx Ground services only; COD must be present in shipment's special services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DangerousGoodsDetail" type="ns:DangerousGoodsDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dangerous materials. This element is required when SpecialServiceType.DANGEROUS_GOODS or HAZARDOUS_MATERIAL is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DryIceWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment containing dry ice. This element is required when SpecialServiceType.DRY_ICE is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureOptionDetail" type="ns:SignatureOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx signature services. This element is required when SpecialServiceType.SIGNATURE_OPTION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PriorityAlertDetail" type="ns:PriorityAlertDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Priority Alert service. This element is required when SpecialServiceType.PRIORITY_ALERT is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PackagingType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of available FedEx or customer packaging options.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_10KG_BOX"/>
+          <xs:enumeration value="FEDEX_25KG_BOX"/>
+          <xs:enumeration value="FEDEX_BOX"/>
+          <xs:enumeration value="FEDEX_ENVELOPE"/>
+          <xs:enumeration value="FEDEX_PAK"/>
+          <xs:enumeration value="FEDEX_TUBE"/>
+          <xs:enumeration value="YOUR_PACKAGING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Party">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a person or company entitiy doing business with FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the customer.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Tins" type="ns:TaxpayerIdentification" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the point-of-contact person.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data for a physical location.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Payment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the monetary compensation given to FedEx for services rendered to the customer.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PaymentType" type="ns:PaymentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the method of payment for a service. See PaymentType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Payor" type="ns:Payor" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PaymentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the method of payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COLLECT"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SENDER"/>
+          <xs:enumeration value="THIRD_PARTY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Payor">
+        <xs:annotation>
+          <xs:documentation>The descriptive data identifying the party responsible for payment for a service.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx account number assigned to the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>12</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the country of the payor.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentAccessDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes how and when a pending shipment may be accessed for completion.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EmailLabelUrl" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UserId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only for pending shipment type of "EMAIL"</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpirationTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This element is currently not supported and is for the future use.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="PendingShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>This information describes the kind of pending shipment being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PendingShipmentType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of FedEx pending shipment</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpirationDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Date after which the pending shipment will no longer be available for completion.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EmailLabelDetail" type="ns:EMailLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with type of EMAIL.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PendingShipmentType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of service for a pending shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EMAIL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PhysicalPackagingType">
+        <xs:annotation>
+          <xs:documentation>This enumeration rationalizes the former FedEx Express international "admissibility package" types (based on ANSI X.12) and the FedEx Freight packaging types. The values represented are those common to both carriers.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BAG"/>
+          <xs:enumeration value="BARREL"/>
+          <xs:enumeration value="BASKET"/>
+          <xs:enumeration value="BOX"/>
+          <xs:enumeration value="BUCKET"/>
+          <xs:enumeration value="BUNDLE"/>
+          <xs:enumeration value="CARTON"/>
+          <xs:enumeration value="CASE"/>
+          <xs:enumeration value="CONTAINER"/>
+          <xs:enumeration value="CRATE"/>
+          <xs:enumeration value="CYLINDER"/>
+          <xs:enumeration value="DRUM"/>
+          <xs:enumeration value="ENVELOPE"/>
+          <xs:enumeration value="HAMPER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PAIL"/>
+          <xs:enumeration value="PALLET"/>
+          <xs:enumeration value="PIECE"/>
+          <xs:enumeration value="REEL"/>
+          <xs:enumeration value="ROLL"/>
+          <xs:enumeration value="SKID"/>
+          <xs:enumeration value="TANK"/>
+          <xs:enumeration value="TUBE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PickupDetail">
+        <xs:annotation>
+          <xs:documentation>This class describes the pickup characteristics of a shipment (e.g. for use in a tag request).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReadyDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="LatestPickupDateTime" type="xs:dateTime" minOccurs="0"/>
+          <xs:element name="CourierInstructions" type="xs:string" minOccurs="0"/>
+          <xs:element name="RequestType" type="ns:PickupRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of Pickup request</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestSource" type="ns:PickupRequestSourceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of source for Pickup request</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PickupRequestSourceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of source for pickup request service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUTOMATION"/>
+          <xs:enumeration value="CUSTOMER_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PickupRequestType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of pickup request service.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FUTURE_DAY"/>
+          <xs:enumeration value="SAME_DAY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PricingCodeType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type of pricing used for this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="ALTERNATE"/>
+          <xs:enumeration value="BASE"/>
+          <xs:enumeration value="HUNDREDWEIGHT"/>
+          <xs:enumeration value="HUNDREDWEIGHT_ALTERNATE"/>
+          <xs:enumeration value="INTERNATIONAL_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_SERVICE"/>
+          <xs:enumeration value="LTL_FREIGHT"/>
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+          <xs:enumeration value="SHIPMENT_FIVE_POUND_OPTIONAL"/>
+          <xs:enumeration value="SHIPMENT_OPTIONAL"/>
+          <xs:enumeration value="SPECIAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PrintedReference">
+        <xs:annotation>
+          <xs:documentation>Represents a reference identifier printed on Freight bills of lading</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:PrintedReferenceType" minOccurs="0"/>
+          <xs:element name="Value" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PrintedReferenceType">
+        <xs:annotation>
+          <xs:documentation>Identifies a particular reference identifier printed on a Freight bill of lading.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSIGNEE_ID_NUMBER"/>
+          <xs:enumeration value="SHIPPER_ID_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="PriorityAlertDetail">
+        <xs:sequence>
+          <xs:element name="Content" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reply payload. All of the returned information about this shipment/package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ErrorLabels" type="ns:ShippingDocument" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Empty unless error label behavior is PACKAGE_ERROR_LABELS and one or more errors occured during transaction processing.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to ship a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessTagReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1"/>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded"/>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0"/>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1"/>
+          <xs:element name="CompletedShipmentDetail" type="ns:CompletedShipmentDetail" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ProcessTagRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to ship a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="PurposeOfShipmentType">
+        <xs:annotation>
+          <xs:documentation>Test for the Commercial Invoice. Note that Sold is not a valid Purpose for a Proforma Invoice.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="GIFT"/>
+          <xs:enumeration value="NOT_SOLD"/>
+          <xs:enumeration value="PERSONAL_EFFECTS"/>
+          <xs:enumeration value="REPAIR_AND_RETURN"/>
+          <xs:enumeration value="SAMPLE"/>
+          <xs:enumeration value="SOLD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateDimensionalDivisorType">
+        <xs:annotation>
+          <xs:documentation>Indicates the reason that a dim divisor value was chose.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COUNTRY"/>
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRODUCT"/>
+          <xs:enumeration value="WAIVED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RateDiscount">
+        <xs:annotation>
+          <xs:documentation>Identifies a discount applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateDiscountType" type="ns:RateDiscountType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The percentage of the discount applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RateDiscountType">
+        <xs:annotation>
+          <xs:documentation>The type of the discount.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="COUPON"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="INCENTIVE"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="VOLUME"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RateRequestType">
+        <xs:annotation>
+          <xs:documentation>Identifies the type(s) of rates to be returned in the reply.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACCOUNT"/>
+          <xs:enumeration value="LIST"/>
+          <xs:enumeration value="PREFERRED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RatedWeightMethod">
+        <xs:annotation>
+          <xs:documentation>The weight method used to calculate the rate.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ACTUAL"/>
+          <xs:enumeration value="AVERAGE_PACKAGE_WEIGHT_MINIMUM"/>
+          <xs:enumeration value="BALLOON"/>
+          <xs:enumeration value="DIM"/>
+          <xs:enumeration value="FREIGHT_MINIMUM"/>
+          <xs:enumeration value="MIXED"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVERSIZE_1"/>
+          <xs:enumeration value="OVERSIZE_2"/>
+          <xs:enumeration value="OVERSIZE_3"/>
+          <xs:enumeration value="PACKAGING_MINIMUM"/>
+          <xs:enumeration value="WEIGHT_BREAK"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rebate">
+        <xs:sequence>
+          <xs:element name="RebateType" type="ns:RebateType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0"/>
+          <xs:element name="Percent" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RebateType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BONUS"/>
+          <xs:enumeration value="EARNED"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RecipientCustomsId">
+        <xs:annotation>
+          <xs:documentation>Specifies how the recipient is identified for customs purposes; the requirements on this information vary with destination country.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:RecipientCustomsIdType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the kind of identification being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the actual ID value, of the type specified above.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RecipientCustomsIdType">
+        <xs:annotation>
+          <xs:documentation>Type of Brazilian taxpayer identifier provided in Recipient/TaxPayerIdentification/Number. For shipments bound for Brazil this overrides the value in Recipient/TaxPayerIdentification/TinType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COMPANY"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+          <xs:enumeration value="PASSPORT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RegulatoryControlType">
+        <xs:annotation>
+          <xs:documentation>FOOD_OR_PERISHABLE is required by FDA/BTA; must be true for food/perishable items coming to US or PR from non-US/non-PR origin</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EU_CIRCULATION"/>
+          <xs:enumeration value="FOOD_OR_PERISHABLE"/>
+          <xs:enumeration value="NAFTA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="RequestedPackageDetailType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INDIVIDUAL_PACKAGES"/>
+          <xs:enumeration value="PACKAGE_GROUPS"/>
+          <xs:enumeration value="PACKAGE_SUMMARY"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="RequestedPackageLineItem">
+        <xs:annotation>
+          <xs:documentation>This class rationalizes RequestedPackage and RequestedPackageSummary from previous interfaces. The way in which it is uses within a RequestedShipment depends on the RequestedPackageDetailType value specified for that shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with INDIVIDUAL_PACKAGE, as a unique identifier of each requested package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a unique identifier of each group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GroupPackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used only with PACKAGE_GROUPS, as a count of packages within a group of identical packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0"/>
+          <xs:element name="InsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalInsuredValue and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Weight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS. Ignored for PACKAGE_SUMMARY, in which case totalweight and packageCount on the shipment will be used to determine this value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Dimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="PhysicalPackaging" type="ns:PhysicalPackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides additional detail on how the customer has physically packaged this item. As of June 2009, required for packages moving under international and SmartPost services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ItemDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text describing the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerReferences" type="ns:CustomerReference" minOccurs="0" maxOccurs="3"/>
+          <xs:element name="SpecialServicesRequested" type="ns:PackageSpecialServicesRequested" minOccurs="0"/>
+          <xs:element name="ContentRecords" type="ns:ContentRecord" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Only used for INDIVIDUAL_PACKAGES and PACKAGE_GROUPS.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RequestedShipment">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the shipment being tendered to FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the date and time the package is tendered to FedEx. Both the date and time portions of the string are expected to be used. The date should not be a past date or a date more than 10 days in the future. The time is the local time of the shipment based on the shipper's time zone. The date component must be in the format: YYYY-MM-DD (e.g. 2006-06-26). The time component must be in the format: HH:MM:SS using a 24 hour clock (e.g. 11:00 a.m. is 11:00:00, whereas 5:00 p.m. is 17:00:00). The date and time parts are separated by the letter T (e.g. 2006-06-26T17:00:00). There is also a UTC offset component indicating the number of hours/mainutes from UTC (e.g 2006-06-26T17:00:00-0400 is defined form June 26, 2006 5:00 pm Eastern Time).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DropoffType" type="ns:DropoffType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the method by which the package is to be tendered to FedEx. This element does not dispatch a courier for package pickup. See DropoffType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the FedEx service to use in shipping the package. See ServiceType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the packaging used by the requestor for the package. See PackagingType for list of valid enumerated values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the total weight of the shipment being conveyed to FedEx.This is only applicable to International shipments and should only be used on the first package of a mutiple piece shipment.This value contains 1 explicit decimal position</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalInsuredValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total insured amount.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimensions" type="ns:Dimensions" minOccurs="0"/>
+          <xs:element name="Shipper" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party responsible for shipping the package. Shipper and Origin should have the same address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipient" type="ns:Party" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the party receiving the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientLocationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A unique identifier for a recipient location</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Origin" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Physical starting address for the shipment, if different from shipper's address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingChargesPayment" type="ns:Payment" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data indicating the method and means of payment to FedEx for providing shipping services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialServicesRequested" type="ns:ShipmentSpecialServicesRequested" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data regarding special services requested by the shipper for this shipment. If the shipper is requesting a special service which requires additional data (e.g. COD), the special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object. For example, to request COD, "COD" must be included in the SpecialServiceTypes collection and the CodDetail object must contain the required data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ExpressFreightDetail" type="ns:ExpressFreightDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details specific to an Express freight shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightShipmentDetail" type="ns:FreightShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Data applicable to shipments using FEDEX_FREIGHT and FEDEX_NATIONAL_FREIGHT services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryInstructions" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used with Ground Home Delivery and Freight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingChargeDetail" type="ns:VariableHandlingChargeDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomsClearanceDetail" type="ns:CustomsClearanceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customs clearance data, used for both international and intra-country shipping.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PickupDetail" type="ns:PickupDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use in "process tag" transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SmartPostDetail" type="ns:SmartPostShipmentDetail" minOccurs="0"/>
+          <xs:element name="BlockInsightVisibility" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If true, only the shipper/payor will have visibility of this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ErrorLabelBehavior" type="ns:ErrorLabelBehaviorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the client-requested response in the event of errors within shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelSpecification" type="ns:LabelSpecification" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Details about the image format and printer type the label is to returned in.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentSpecification" type="ns:ShippingDocumentSpecification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains data used to create additional (non-label) shipping documents.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateRequestTypes" type="ns:RateRequestType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies whether and what kind of rates the customer wishes to have quoted on this shipment. The reply will also be constrained by other data on the shipment and customer.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomerSelectedActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the type of rate the customer wishes to have used as the actual rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EdtRequestType" type="ns:EdtRequestType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether the customer wishes to have Estimated Duties and Taxes provided with the rate quotation on this shipment. Only applies with shipments moving under international services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MasterTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with multiple-transaction shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodReturnTrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used with multi-piece COD shipments sent in multiple transactions. Required on last transaction only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The total number of packages in the entire shipment (even when the shipment spans multiple transactions.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDetail" type="ns:RequestedPackageDetailType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies whether packages are described individually, in groups, or summarized in a single description for total-piece-total-weight. This field controls which fields of the RequestedPackageLineItem will be used, and how many occurrences are expected.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedPackageLineItems" type="ns:RequestedPackageLineItem" minOccurs="0" maxOccurs="999">
+            <xs:annotation>
+              <xs:documentation>One or more package-attribute descriptions, each of which describes an individual package, a group of identical packages, or (for the total-piece-total-weight case) common characteristics all packages in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RequestedShippingDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="CUSTOMER_SPECIFIED_LABELS"/>
+          <xs:enumeration value="CUSTOM_PACKAGE_DOCUMENT"/>
+          <xs:enumeration value="CUSTOM_SHIPMENT_DOCUMENT"/>
+          <xs:enumeration value="FREIGHT_ADDRESS_LABEL"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OP_900"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnEMailAllowedSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>These values are used to control the availability of certain special services at the time when a customer uses the e-mail label link to create a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ReturnEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Return Email Details</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="MerchantPhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Phone number of the merchant</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AllowedSpecialServices" type="ns:ReturnEMailAllowedSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Identifies the allowed (merchant-authorized) special services which may be selected when the subsequent shipment is created. Only services represented in EMailLabelAllowedSpecialServiceType will be controlled by this list.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ReturnShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Information relating to a return shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ReturnType" type="ns:ReturnType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rma" type="ns:Rma" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Return Merchant Authorization</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnEMailDetail" type="ns:ReturnEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Describes specific information about the email label for return shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ReturnType">
+        <xs:annotation>
+          <xs:documentation>The type of return shipment that is being requested.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="PENDING"/>
+          <xs:enumeration value="PRINT_RETURN_LABEL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedRateType">
+        <xs:annotation>
+          <xs:documentation>The "PAYOR..." rates are expressed in the currency identified in the payor's rate table(s). The "RATED..." rates are expressed in the currency of the origin country. Former "...COUNTER..." values have become "...RETAIL..." values, except for PAYOR_COUNTER and RATED_COUNTER, which have been removed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="INCENTIVE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="PAYOR_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="PAYOR_LIST_PACKAGE"/>
+          <xs:enumeration value="PAYOR_LIST_SHIPMENT"/>
+          <xs:enumeration value="RATED_ACCOUNT_PACKAGE"/>
+          <xs:enumeration value="RATED_ACCOUNT_SHIPMENT"/>
+          <xs:enumeration value="RATED_LIST_PACKAGE"/>
+          <xs:enumeration value="RATED_LIST_SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ReturnedShippingDocumentType">
+        <xs:annotation>
+          <xs:documentation>Shipping document type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AUXILIARY_LABEL"/>
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COD_RETURN_2_D_BARCODE"/>
+          <xs:enumeration value="COD_RETURN_LABEL"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="CUSTOM_PACKAGE_DOCUMENT"/>
+          <xs:enumeration value="CUSTOM_SHIPMENT_DOCUMENT"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="FREIGHT_ADDRESS_LABEL"/>
+          <xs:enumeration value="GENERAL_AGENCY_AGREEMENT"/>
+          <xs:enumeration value="GROUND_BARCODE"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OP_900"/>
+          <xs:enumeration value="OUTBOUND_2_D_BARCODE"/>
+          <xs:enumeration value="OUTBOUND_LABEL"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+          <xs:enumeration value="RECIPIENT_ADDRESS_BARCODE"/>
+          <xs:enumeration value="RECIPIENT_POSTAL_BARCODE"/>
+          <xs:enumeration value="RETURN_INSTRUCTIONS"/>
+          <xs:enumeration value="TERMS_AND_CONDITIONS"/>
+          <xs:enumeration value="USPS_BARCODE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Rma">
+        <xs:annotation>
+          <xs:documentation>Return Merchant Authorization</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The RMA number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>20</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reason" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The reason for the return.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>60</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RoutingAstraDetail">
+        <xs:annotation>
+          <xs:documentation>The tracking number information and the data to form the Astra barcode for the label.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TrackingId" type="ns:TrackingId" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The tracking number information for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcode" type="ns:StringBarcode" minOccurs="0"/>
+          <xs:element name="AstraHandlingText" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The textual description of the special service applied to the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraLabelElements" type="ns:AstraLabelElement" minOccurs="0" maxOccurs="unbounded"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="RoutingDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShipmentRoutingDetail" type="ns:ShipmentRoutingDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The routing information detail for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraDetails" type="ns:RoutingAstraDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The tracking number information and the data to form the Astra barcode for the label.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of available FedEx service options.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EUROPE_FIRST_INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="FEDEX_1_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_2_DAY"/>
+          <xs:enumeration value="FEDEX_2_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_3_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_EXPRESS_SAVER"/>
+          <xs:enumeration value="FEDEX_GROUND"/>
+          <xs:enumeration value="FIRST_OVERNIGHT"/>
+          <xs:enumeration value="GROUND_HOME_DELIVERY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_FIRST"/>
+          <xs:enumeration value="INTERNATIONAL_GROUND"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_FREIGHT"/>
+          <xs:enumeration value="PRIORITY_OVERNIGHT"/>
+          <xs:enumeration value="SMART_POST"/>
+          <xs:enumeration value="STANDARD_OVERNIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentDryIceDetail">
+        <xs:annotation>
+          <xs:documentation>Shipment-level totals of dry ice data across all packages.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total number of packages in the shipment that contain dry ice.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalWeight" type="ns:Weight" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Total shipment dry ice weight for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRateDetail">
+        <xs:annotation>
+          <xs:documentation>Data for a shipment's total/summary rates, as calculated per a specific rate type. The "total..." fields may differ from the sum of corresponding package data for Multiweight or Express MPS.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Type used for this specific set of rate data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateScale" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate scale used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RateZone" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates the rate zone used (based on origin and destination).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PricingCode" type="ns:PricingCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of pricing used for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RatedWeightMethod" type="ns:RatedWeightMethod" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates which weight was used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MinimumChargeType" type="ns:MinimumChargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>INTERNAL FEDEX USE ONLY.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CurrencyExchangeRate" type="ns:CurrencyExchangeRate" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the currency exchange performed on financial amounts for this rate.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SpecialRatingApplied" type="ns:SpecialRatingAppliedType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates which special rating cases applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisor" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value used to calculate the weight based on the dimensions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DimDivisorType" type="ns:RateDimensionalDivisorType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of dim divisor that was applied.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FuelSurchargePercent" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies a fuel surcharge percentage.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBillingWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight used to calculate these rates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDimWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Sum of dimensional weights for all packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalBaseCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total freight charge that was calculated for this package before surcharges, discounts and taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalFreightDiscounts" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total discounts used in the rate calculation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFreight" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The freight charge minus discounts.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalSurcharges" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total amount of all surcharges applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetFedExCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetFreight + totalSurcharges (not including totalTaxes).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of the transportation-based taxes.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The net charge after applying all discounts and surcharges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalRebates" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total sum of all rebates applied to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total of all values under this shipment's dutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalNetChargeWithDutiesAndTaxes" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This shipment's totalNetCharge + totalDutiesAndTaxes; only provided if estimated duties and taxes were calculated for this shipment AND duties, taxes and transportation charges are all paid by the same sender's account.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightRateDetail" type="ns:FreightRateDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Rate data specific to FedEx Freight and FedEx National Freight services.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightDiscounts" type="ns:RateDiscount" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rate discounts that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Rebates" type="ns:Rebate" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All rebates that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Surcharges" type="ns:Surcharge" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All surcharges that apply to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Taxes" type="ns:Tax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All transportation-based taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DutiesAndTaxes" type="ns:EdtCommodityTax" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>All commodity-based duties and taxes applicable to this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="VariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "order level" variable handling charges.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalVariableHandlingCharges" type="ns:VariableHandlingCharges" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The total of all variable handling charges at both shipment (order) and package level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRating">
+        <xs:annotation>
+          <xs:documentation>This class groups together all shipment-level rate data (across all rate types) as part of the response to a shipping request, which groups shipment-level data together and groups package-level data by package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ActualRateType" type="ns:ReturnedRateType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This rate type identifies which entry in the following array is considered as presenting the "actual" rates for the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EffectiveNetDiscount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The "list" total net charge minus "actual" total net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentRateDetails" type="ns:ShipmentRateDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Each element of this field provides shipment-level rate totals for a specific rate type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentReply">
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This indicates the highest level of severity of all the notifications returned in this reply</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The descriptive data regarding the results of the submitted transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShipmentRoutingDetail">
+        <xs:annotation>
+          <xs:documentation>Information about the routing, origin, destination and delivery of a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UrsaPrefixCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The prefix portion of the URSA (Universal Routing and Sort Aid) code.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrsaSuffixCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The suffix portion of the URSA code.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier of the origin location of the shipment. Express only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginServiceArea" type="xs:string" minOccurs="0"/>
+          <xs:element name="DestinationLocationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier of the destination location of the shipment. Express only.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>5</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationServiceArea" type="xs:string" minOccurs="0"/>
+          <xs:element name="DestinationLocationStateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This is the state of the destination location ID, and is not necessarily the same as the postal state.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Expected/estimated date of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryDay" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Expected/estimated day of week of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Committed date of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CommitDay" type="ns:DayOfWeekType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Committed day of week of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Standard transit time per origin, destination, and service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MaximumTransitTime" type="ns:TransitTimeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Maximum expected transit time</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraPlannedServiceLevel" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Text describing planned delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AstraDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Currently not supported.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>TBD</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The postal code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>16</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The state or province code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>14</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The country code of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>2</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AirportId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The identifier for the airport of the destination of the shipment.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>4</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShipmentSpecialServiceType">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of special service offered by FedEx. BROKER_SELECT_OPTION should be used for Express shipments only.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CALL_BEFORE_DELIVERY"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUSTOM_DELIVERY_WINDOW"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DO_NOT_BREAK_DOWN_PALLETS"/>
+          <xs:enumeration value="DO_NOT_STACK_PALLETS"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EAST_COAST_SPECIAL"/>
+          <xs:enumeration value="ELECTRONIC_TRADE_DOCUMENTS"/>
+          <xs:enumeration value="EMAIL_NOTIFICATION"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FOOD"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FUTURE_DAY_SHIPMENT"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_PREMIUM"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="PENDING_SHIPMENT"/>
+          <xs:enumeration value="POISON"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="RETURN_SHIPMENT"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="TOP_LOAD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShipmentSpecialServicesRequested">
+        <xs:annotation>
+          <xs:documentation>These special services are available at the shipment level for some or all service types. If the shipper is requesting a special service which requires additional data (such as the COD amount), the shipment special service type must be present in the specialServiceTypes collection, and the supporting detail must be provided in the appropriate sub-object below.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SpecialServiceTypes" type="ns:ShipmentSpecialServiceType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of all special services requested for the enclosing shipment (or other shipment-level transaction).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CodDetail" type="ns:CodDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx COD (Collect-On-Delivery) shipment. This element is required when SpecialServiceType.COD is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HoldAtLocationDetail" type="ns:HoldAtLocationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for a FedEx shipment that is to be held at the destination FedEx location for pickup by the recipient. This element is required when SpecialServiceType.HOLD_AT_LOCATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailNotificationDetail" type="ns:EMailNotificationDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data required for FedEx to provide email notification to the customer regarding the shipment. This element is required when SpecialServiceType.EMAIL_NOTIFICATION is present in the SpecialServiceTypes collection.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ReturnShipmentDetail" type="ns:ReturnShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Printed Return Label. This element is required when SpecialServiceType.PRINTED_RETURN_LABEL is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PendingShipmentDetail" type="ns:PendingShipmentDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This field should be populated for pending shipments (e.g. e-mail label) It is required by a PENDING_SHIPMENT special service type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentDryIceDetail" type="ns:ShipmentDryIceDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Number of packages in this shipment which contain dry ice and the total weight of the dry ice for this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="HomeDeliveryPremiumDetail" type="ns:HomeDeliveryPremiumDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The descriptive data required for FedEx Home Delivery options. This element is required when SpecialServiceType.HOME_DELIVERY_PREMIUM is present in the SpecialServiceTypes collection</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EtdDetail" type="ns:EtdDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Electronic Trade document references.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDeliveryWindowDetail" type="ns:CustomDeliveryWindowDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specification for date or range of dates on which delivery is to be attempted.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocument">
+        <xs:annotation>
+          <xs:documentation>All package-level shipping documents (other than labels and barcodes).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:ReturnedShippingDocumentType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Shipping Document Type</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how this document image/file is organized.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShippingDocumentDisposition" type="ns:ShippingDocumentDispositionType" minOccurs="0"/>
+          <xs:element name="AccessReference" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The name under which a STORED or DEFERRED document is written.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Resolution" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the image resolution in DPI (dots per inch).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CopiesToPrint" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Can be zero for documents whose disposition implies that no content is included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Parts" type="ns:ShippingDocumentPart" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>One or more document parts which make up a single logical document, such as multiple pages of a single form.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentDispositionDetail">
+        <xs:annotation>
+          <xs:documentation>Each occurrence of this class specifies a particular way in which a kind of shipping document is to be produced and provided.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DispositionType" type="ns:ShippingDocumentDispositionType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Values in this field specify how to create and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to organize all documents of this type.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailDetail" type="ns:ShippingDocumentEMailDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how to e-mail document images.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PrintDetail" type="ns:ShippingDocumentPrintDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how a queued document is to be printed.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentDispositionType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to return a shipping document to the caller.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONFIRMED"/>
+          <xs:enumeration value="DEFERRED_RETURNED"/>
+          <xs:enumeration value="DEFERRED_STORED"/>
+          <xs:enumeration value="EMAILED"/>
+          <xs:enumeration value="QUEUED"/>
+          <xs:enumeration value="RETURNED"/>
+          <xs:enumeration value="STORED"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies how to e-mail shipping documents.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="EMailRecipients" type="ns:ShippingDocumentEMailRecipient" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Provides the roles and email addresses for e-mail recipients.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Grouping" type="ns:ShippingDocumentEMailGroupingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the convention by which documents are to be grouped as e-mail attachments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentEMailGroupingType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BY_RECIPIENT"/>
+          <xs:enumeration value="NONE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentEMailRecipient">
+        <xs:annotation>
+          <xs:documentation>Specifies an individual recipient of e-mailed shipping document(s).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="RecipientType" type="ns:EMailNotificationRecipientType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship of this recipient in the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Address to which the document is to be sent.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentFormat">
+        <xs:annotation>
+          <xs:documentation>Specifies characteristics of a shipping document to be produced.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Dispositions" type="ns:ShippingDocumentDispositionDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies how to create, organize, and return the document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TopOfPageOffset" type="ns:LinearMeasure" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies how far down the page to move the beginning of the image; allows for printing on letterhead and other pre-printed stock.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ImageType" type="ns:ShippingDocumentImageType" minOccurs="0"/>
+          <xs:element name="StockType" type="ns:ShippingDocumentStockType" minOccurs="0"/>
+          <xs:element name="ProvideInstructions" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For those shipping document types which have both a "form" and "instructions" component (e.g. NAFTA Certificate of Origin and General Agency Agreement), this field indicates whether to provide the instructions.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs the language to be used for this individual document, independently from other content returned for the same shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomDocumentIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the individual document specified by the client.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentGroupingType">
+        <xs:annotation>
+          <xs:documentation>Specifies how to organize all shipping documents of the same type.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CONSOLIDATED_BY_DOCUMENT_TYPE"/>
+          <xs:enumeration value="INDIVIDUAL"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ShippingDocumentImageType">
+        <xs:annotation>
+          <xs:documentation>Specifies the image format used for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="DOC"/>
+          <xs:enumeration value="DPL"/>
+          <xs:enumeration value="EPL2"/>
+          <xs:enumeration value="PDF"/>
+          <xs:enumeration value="PNG"/>
+          <xs:enumeration value="RTF"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="ZPLII"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ShippingDocumentPart">
+        <xs:annotation>
+          <xs:documentation>A single part of a shipping document, such as one page of a multiple-page document whose format requires a separate image per page.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="DocumentPartSequenceNumber" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The one-origin position of this part within a document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Image" type="xs:base64Binary" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Graphic or printer commands for this image within a document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentPrintDetail">
+        <xs:annotation>
+          <xs:documentation>Specifies printing options for a shipping document.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PrinterId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Provides environment-specific printer identification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ShippingDocumentSpecification">
+        <xs:annotation>
+          <xs:documentation>Contains all data required for additional (non-label) shipping documents to be produced in conjunction with a specific shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ShippingDocumentTypes" type="ns:RequestedShippingDocumentType" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Indicates the types of shipping documents requested by the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CertificateOfOrigin" type="ns:CertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="CommercialInvoiceDetail" type="ns:CommercialInvoiceDetail" minOccurs="0"/>
+          <xs:element name="CustomPackageDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of each package-level custom document (the same specification is used for all packages).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CustomShipmentDocumentDetail" type="ns:CustomDocumentDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of a shipment-level custom document.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="GeneralAgencyAgreementDetail" type="ns:GeneralAgencyAgreementDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This element is currently not supported and is for the future use. (Details pertaining to the GAA.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NaftaCertificateOfOriginDetail" type="ns:NaftaCertificateOfOriginDetail" minOccurs="0"/>
+          <xs:element name="Op900Detail" type="ns:Op900Detail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FreightAddressLabelDetail" type="ns:FreightAddressLabelDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the production of the OP-900 document for hazardous materials.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ShippingDocumentStockType">
+        <xs:annotation>
+          <xs:documentation>Specifies the type of paper (stock) on which a document will be printed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="OP_900_LG_B"/>
+          <xs:enumeration value="OP_900_LL_B"/>
+          <xs:enumeration value="OP_950"/>
+          <xs:enumeration value="PAPER_4X6"/>
+          <xs:enumeration value="PAPER_LETTER"/>
+          <xs:enumeration value="STOCK_4X6"/>
+          <xs:enumeration value="STOCK_4X6.75_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X6.75_TRAILING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X8"/>
+          <xs:enumeration value="STOCK_4X9_LEADING_DOC_TAB"/>
+          <xs:enumeration value="STOCK_4X9_TRAILING_DOC_TAB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureOptionDetail">
+        <xs:annotation>
+          <xs:documentation>The descriptive data required for FedEx delivery signature services.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="OptionType" type="ns:SignatureOptionType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature services option selected by the customer for this shipment. See OptionType for the list of valid values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureReleaseNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the delivery signature release authorization number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>10</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SignatureOptionType">
+        <xs:annotation>
+          <xs:documentation>Identifies the delivery signature services options offered by FedEx.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADULT"/>
+          <xs:enumeration value="DIRECT"/>
+          <xs:enumeration value="INDIRECT"/>
+          <xs:enumeration value="NO_SIGNATURE_REQUIRED"/>
+          <xs:enumeration value="SERVICE_DEFAULT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostAncillaryEndorsementType">
+        <xs:annotation>
+          <xs:documentation>These values are mutually exclusive; at most one of them can be attached to a SmartPost shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS_CORRECTION"/>
+          <xs:enumeration value="CARRIER_LEAVE_IF_NO_RESPONSE"/>
+          <xs:enumeration value="CHANGE_SERVICE"/>
+          <xs:enumeration value="FORWARDING_SERVICE"/>
+          <xs:enumeration value="RETURN_SERVICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SmartPostIndiciaType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="MEDIA_MAIL"/>
+          <xs:enumeration value="PARCEL_RETURN"/>
+          <xs:enumeration value="PARCEL_SELECT"/>
+          <xs:enumeration value="PRESORTED_BOUND_PRINTED_MATTER"/>
+          <xs:enumeration value="PRESORTED_STANDARD"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SmartPostShipmentDetail">
+        <xs:annotation>
+          <xs:documentation>Data required for shipments handled under the SMART_POST and GROUND_SMART_POST service types.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Indicia" type="ns:SmartPostIndiciaType" minOccurs="0"/>
+          <xs:element name="AncillaryEndorsement" type="ns:SmartPostAncillaryEndorsementType" minOccurs="0"/>
+          <xs:element name="HubId" type="xs:string" minOccurs="0"/>
+          <xs:element name="CustomerManifestId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                The CustomerManifestId is used to group Smart Post packages onto a manifest for each trailer that is being prepared. If you do not have multiple trailers this field can be omitted. If you have multiple trailers, you
+                must assign the same Manifest Id to each SmartPost package as determined by its trailer.  In other words, all packages on a trailer must have the same Customer Manifest Id. The manifest Id must be unique to your account number for a minimum of 6 months
+                and cannot exceed 8 characters in length. We recommend you use the day of year + the trailer id (this could simply be a sequential number for that trailer). So if you had 3 trailers that you started loading on Feb 10
+                the 3 manifest ids would be 041001, 041002, 041003 (in this case we used leading zeros on the trailer numbers).
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SpecialRatingAppliedType">
+        <xs:annotation>
+          <xs:documentation>Special circumstance rating used for this shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_FUEL_SURCHARGE"/>
+          <xs:enumeration value="IMPORT_PRICING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="StringBarcode">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents a barcode whose content must be represented as ASCII text (i.e. not binary data).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:StringBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The kind of barcode data in this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data content of this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="StringBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS"/>
+          <xs:enumeration value="ASTRA"/>
+          <xs:enumeration value="FDX_1D"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="POSTAL"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Surcharge">
+        <xs:annotation>
+          <xs:documentation>Identifies each surcharge applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="SurchargeType" type="ns:SurchargeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Level" type="ns:SurchargeLevelType" minOccurs="0"/>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The amount of the surcharge applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SurchargeLevelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PACKAGE"/>
+          <xs:enumeration value="SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="SurchargeType">
+        <xs:annotation>
+          <xs:documentation>The type of the surcharge.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDITIONAL_HANDLING"/>
+          <xs:enumeration value="ANCILLARY_FEE"/>
+          <xs:enumeration value="APPOINTMENT_DELIVERY"/>
+          <xs:enumeration value="BROKER_SELECT_OPTION"/>
+          <xs:enumeration value="CANADIAN_DESTINATION"/>
+          <xs:enumeration value="CLEARANCE_ENTRY_FEE"/>
+          <xs:enumeration value="COD"/>
+          <xs:enumeration value="CUT_FLOWERS"/>
+          <xs:enumeration value="DANGEROUS_GOODS"/>
+          <xs:enumeration value="DELIVERY_AREA"/>
+          <xs:enumeration value="DELIVERY_CONFIRMATION"/>
+          <xs:enumeration value="DOCUMENTATION_FEE"/>
+          <xs:enumeration value="DRY_ICE"/>
+          <xs:enumeration value="EMAIL_LABEL"/>
+          <xs:enumeration value="EUROPE_FIRST"/>
+          <xs:enumeration value="EXCESS_VALUE"/>
+          <xs:enumeration value="EXHIBITION"/>
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="EXTREME_LENGTH"/>
+          <xs:enumeration value="FEDEX_TAG"/>
+          <xs:enumeration value="FICE"/>
+          <xs:enumeration value="FLATBED"/>
+          <xs:enumeration value="FREIGHT_GUARANTEE"/>
+          <xs:enumeration value="FREIGHT_ON_VALUE"/>
+          <xs:enumeration value="FUEL"/>
+          <xs:enumeration value="HOLD_AT_LOCATION"/>
+          <xs:enumeration value="HOME_DELIVERY_APPOINTMENT"/>
+          <xs:enumeration value="HOME_DELIVERY_DATE_CERTAIN"/>
+          <xs:enumeration value="HOME_DELIVERY_EVENING"/>
+          <xs:enumeration value="INSIDE_DELIVERY"/>
+          <xs:enumeration value="INSIDE_PICKUP"/>
+          <xs:enumeration value="INSURED_VALUE"/>
+          <xs:enumeration value="INTERHAWAII"/>
+          <xs:enumeration value="LIFTGATE_DELIVERY"/>
+          <xs:enumeration value="LIFTGATE_PICKUP"/>
+          <xs:enumeration value="LIMITED_ACCESS_DELIVERY"/>
+          <xs:enumeration value="LIMITED_ACCESS_PICKUP"/>
+          <xs:enumeration value="METRO_DELIVERY"/>
+          <xs:enumeration value="METRO_PICKUP"/>
+          <xs:enumeration value="NON_MACHINABLE"/>
+          <xs:enumeration value="OFFSHORE"/>
+          <xs:enumeration value="ON_CALL_PICKUP"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="OUT_OF_DELIVERY_AREA"/>
+          <xs:enumeration value="OUT_OF_PICKUP_AREA"/>
+          <xs:enumeration value="OVERSIZE"/>
+          <xs:enumeration value="OVER_DIMENSION"/>
+          <xs:enumeration value="PIECE_COUNT_VERIFICATION"/>
+          <xs:enumeration value="PRE_DELIVERY_NOTIFICATION"/>
+          <xs:enumeration value="PRIORITY_ALERT"/>
+          <xs:enumeration value="PROTECTION_FROM_FREEZING"/>
+          <xs:enumeration value="REGIONAL_MALL_DELIVERY"/>
+          <xs:enumeration value="REGIONAL_MALL_PICKUP"/>
+          <xs:enumeration value="RESIDENTIAL_DELIVERY"/>
+          <xs:enumeration value="RESIDENTIAL_PICKUP"/>
+          <xs:enumeration value="RETURN_LABEL"/>
+          <xs:enumeration value="SATURDAY_DELIVERY"/>
+          <xs:enumeration value="SATURDAY_PICKUP"/>
+          <xs:enumeration value="SIGNATURE_OPTION"/>
+          <xs:enumeration value="TARP"/>
+          <xs:enumeration value="THIRD_PARTY_CONSIGNEE"/>
+          <xs:enumeration value="TRANSMART_SERVICE_FEE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Tax">
+        <xs:annotation>
+          <xs:documentation>Identifies each tax applied to the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TaxType" type="ns:TaxType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The type of tax applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="0"/>
+          <xs:element name="Amount" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The amount of the tax applied to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TaxType">
+        <xs:annotation>
+          <xs:documentation>The type of the tax.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPORT"/>
+          <xs:enumeration value="GST"/>
+          <xs:enumeration value="HST"/>
+          <xs:enumeration value="INTRACOUNTRY"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PST"/>
+          <xs:enumeration value="VAT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TaxpayerIdentification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for taxpayer identification information.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TinType" type="ns:TinType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the category of the taxpayer identification number. See TinType for the list of values.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Number" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the taxpayer identification number.</xs:documentation>
+              <xs:appinfo>
+                <xs:MaxLength>15</xs:MaxLength>
+              </xs:appinfo>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Usage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the usage of Tax Identification Number in Shipment processing</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TermsOfSaleType">
+        <xs:annotation>
+          <xs:documentation>
+            Required for dutiable international express or ground shipment. This field is not applicable to an international PIB (document) or a non-document which does not require a commercial invoice express shipment.
+            CFR_OR_CPT (Cost and Freight/Carriage Paid TO)
+            CIF_OR_CIP (Cost Insurance and Freight/Carraige Insurance Paid)
+            DDP (Delivered Duty Paid)
+            DDU (Delivered Duty Unpaid)
+            EXW (Ex Works)
+            FOB_OR_FCA (Free On Board/Free Carrier)
+          </xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CFR_OR_CPT"/>
+          <xs:enumeration value="CIF_OR_CIP"/>
+          <xs:enumeration value="DDP"/>
+          <xs:enumeration value="DDU"/>
+          <xs:enumeration value="EXW"/>
+          <xs:enumeration value="FOB_OR_FCA"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TinType">
+        <xs:annotation>
+          <xs:documentation>Identifies the category of the taxpayer identification number.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BUSINESS_NATIONAL"/>
+          <xs:enumeration value="BUSINESS_STATE"/>
+          <xs:enumeration value="PERSONAL_NATIONAL"/>
+          <xs:enumeration value="PERSONAL_STATE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackingId">
+        <xs:sequence>
+          <xs:element name="TrackingIdType" type="ns:TrackingIdType" minOccurs="0"/>
+          <xs:element name="FormId" type="xs:string" minOccurs="0"/>
+          <xs:element name="UspsApplicationId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For use with SmartPost tracking IDs only</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackingIdType">
+        <xs:annotation>
+          <xs:documentation>TrackingIdType</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EXPRESS"/>
+          <xs:enumeration value="FREIGHT"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TransactionDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerTransactionId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form text to be echoed back in the reply. Used to match requests and replies.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs data payload language/translations (contrasted with ClientDetail.localization, which governs Notification.localizedMessage language selection).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TransitTimeType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of valid shipment transit time values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EIGHTEEN_DAYS"/>
+          <xs:enumeration value="EIGHT_DAYS"/>
+          <xs:enumeration value="ELEVEN_DAYS"/>
+          <xs:enumeration value="FIFTEEN_DAYS"/>
+          <xs:enumeration value="FIVE_DAYS"/>
+          <xs:enumeration value="FOURTEEN_DAYS"/>
+          <xs:enumeration value="FOUR_DAYS"/>
+          <xs:enumeration value="NINETEEN_DAYS"/>
+          <xs:enumeration value="NINE_DAYS"/>
+          <xs:enumeration value="ONE_DAY"/>
+          <xs:enumeration value="SEVENTEEN_DAYS"/>
+          <xs:enumeration value="SEVEN_DAYS"/>
+          <xs:enumeration value="SIXTEEN_DAYS"/>
+          <xs:enumeration value="SIX_DAYS"/>
+          <xs:enumeration value="TEN_DAYS"/>
+          <xs:enumeration value="THIRTEEN_DAYS"/>
+          <xs:enumeration value="THREE_DAYS"/>
+          <xs:enumeration value="TWELVE_DAYS"/>
+          <xs:enumeration value="TWENTY_DAYS"/>
+          <xs:enumeration value="TWO_DAYS"/>
+          <xs:enumeration value="UNKNOWN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentIdProducer">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CSHP"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="UploadDocumentProducerType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="FEDEX_CLS"/>
+          <xs:enumeration value="FEDEX_GTM"/>
+          <xs:enumeration value="OTHER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="UploadDocumentReferenceDetail">
+        <xs:sequence>
+          <xs:element name="LineNumber" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="CustomerReference" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentProducer" type="ns:UploadDocumentProducerType" minOccurs="0"/>
+          <xs:element name="DocumentType" type="ns:UploadDocumentType" minOccurs="0"/>
+          <xs:element name="DocumentId" type="xs:string" minOccurs="0"/>
+          <xs:element name="DocumentIdProducer" type="ns:UploadDocumentIdProducer" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="UploadDocumentType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="COMMERCIAL_INVOICE"/>
+          <xs:enumeration value="ETD_LABEL"/>
+          <xs:enumeration value="NAFTA_CERTIFICATE_OF_ORIGIN"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PRO_FORMA_INVOICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ValidateShipmentRequest">
+        <xs:annotation>
+          <xs:documentation>Descriptive data sent to FedEx by a customer in order to validate a shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Descriptive data for this customer transaction. The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RequestedShipment" type="ns:RequestedShipment" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data about the shipment being sent by the requestor.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ValidatedHazardousCommodityContent">
+        <xs:annotation>
+          <xs:documentation>Documents the kind and quantity of an individual hazardous commodity in a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Description" type="ns:ValidatedHazardousCommodityDescription" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies and describes an individual hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Quantity" type="ns:HazardousCommodityQuantityDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the amount of the commodity in alternate units.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Options" type="ns:HazardousCommodityOptionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Customer-provided specifications for handling individual commodities.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ValidatedHazardousCommodityDescription">
+        <xs:annotation>
+          <xs:documentation>Identifies and describes an individual hazardous commodity. For 201001 load, this is based on data from the FedEx Ground Hazardous Materials Shipping Guide.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Regulatory identifier for a commodity (e.g. "UN ID" value).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackingGroup" type="ns:HazardousCommodityPackingGroupType" minOccurs="0"/>
+          <xs:element name="ProperShippingName" type="xs:string" minOccurs="0"/>
+          <xs:element name="ProperShippingNameAndDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Fully-expanded descriptive text for a hazardous commodity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TechnicalName" type="xs:string" minOccurs="0"/>
+          <xs:element name="HazardClass" type="xs:string" minOccurs="0"/>
+          <xs:element name="SubsidiaryClasses" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
+          <xs:element name="Symbols" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Coded indications for special requirements or constraints.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LabelText" type="xs:string" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VariableHandlingChargeDetail">
+        <xs:annotation>
+          <xs:documentation>Details about how to calculate variable handling charges at the shipment level.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingChargeType" type="ns:VariableHandlingChargeType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FixedValue" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>
+                Used with Variable handling charge type of FIXED_VALUE.
+                Contains the amount to be added to the freight charge.
+                Contains 2 explicit decimal positions with a total max length of 10 including the decimal.
+              </xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PercentValue" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual percentage (10 means 10%, which is a mutiplier of 0.1)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VariableHandlingChargeType">
+        <xs:annotation>
+          <xs:documentation>The type of handling charge to be calculated and returned in the reply.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FIXED_AMOUNT"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_CHARGE_EXCLUDING_TAXES"/>
+          <xs:enumeration value="PERCENTAGE_OF_NET_FREIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="VariableHandlingCharges">
+        <xs:annotation>
+          <xs:documentation>The variable handling charges calculated based on the type variable handling charges requested.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="VariableHandlingCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The variable handling charge amount calculated based on the requested variable handling charge detail.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalCustomerCharge" type="ns:Money" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The calculated varibale handling charge plus the net charge.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Volume">
+        <xs:annotation>
+          <xs:documentation>Three-dimensional volume/cubic measurement.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:VolumeUnits" minOccurs="0"/>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="VolumeUnits">
+        <xs:annotation>
+          <xs:documentation>Units of three-dimensional volume/cubic measure.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CUBIC_FT"/>
+          <xs:enumeration value="CUBIC_M"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Weight">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the heaviness of an object.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:WeightUnits" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure associated with a weight value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:decimal" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the weight value of a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="WeightUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the unit of measure associated with a weight value. See the list of enumerated types for valid values.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KG"/>
+          <xs:enumeration value="LB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="WebAuthenticationDetail">
+        <xs:annotation>
+          <xs:documentation>Used in authentication of the sender's identity.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UserCredential" type="ns:WebAuthenticationCredential" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Credential used to authenticate a specific software application. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="WebAuthenticationCredential">
+        <xs:annotation>
+          <xs:documentation>Two part authentication string used for the sender's identity</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Key" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifying part of authentication credential. This value is provided by FedEx after registration</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Secret part of authentication key. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VersionId">
+        <xs:annotation>
+          <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ServiceId" type="xs:string" fixed="ship" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies a system or sub-system which performs an operation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Major" type="xs:int" fixed="9" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service business level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Intermediate" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service interface level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Minor" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service code level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="ProcessShipmentReply">
+    <part name="ProcessShipmentReply" element="ns:ProcessShipmentReply"/>
+  </message>
+  <message name="DeleteTagRequest">
+    <part name="DeleteTagRequest" element="ns:DeleteTagRequest"/>
+  </message>
+  <message name="ProcessShipmentRequest">
+    <part name="ProcessShipmentRequest" element="ns:ProcessShipmentRequest"/>
+  </message>
+  <message name="CreatePendingShipmentRequest">
+    <part name="CreatePendingShipmentRequest" element="ns:CreatePendingShipmentRequest"/>
+  </message>
+  <message name="ProcessTagRequest">
+    <part name="ProcessTagRequest" element="ns:ProcessTagRequest"/>
+  </message>
+  <message name="CancelPendingShipmentReply">
+    <part name="CancelPendingShipmentReply" element="ns:CancelPendingShipmentReply"/>
+  </message>
+  <message name="CancelPendingShipmentRequest">
+    <part name="CancelPendingShipmentRequest" element="ns:CancelPendingShipmentRequest"/>
+  </message>
+  <message name="DeleteShipmentRequest">
+    <part name="DeleteShipmentRequest" element="ns:DeleteShipmentRequest"/>
+  </message>
+  <message name="ShipmentReply">
+    <part name="ShipmentReply" element="ns:ShipmentReply"/>
+  </message>
+  <message name="ProcessTagReply">
+    <part name="ProcessTagReply" element="ns:ProcessTagReply"/>
+  </message>
+  <message name="ValidateShipmentRequest">
+    <part name="ValidateShipmentRequest" element="ns:ValidateShipmentRequest"/>
+  </message>
+  <message name="CreatePendingShipmentReply">
+    <part name="CreatePendingShipmentReply" element="ns:CreatePendingShipmentReply"/>
+  </message>
+  <portType name="ShipPortType">
+    <operation name="processTag" parameterOrder="ProcessTagRequest">
+      <input message="ns:ProcessTagRequest"/>
+      <output message="ns:ProcessTagReply"/>
+    </operation>
+    <operation name="createPendingShipment" parameterOrder="CreatePendingShipmentRequest">
+      <input message="ns:CreatePendingShipmentRequest"/>
+      <output message="ns:CreatePendingShipmentReply"/>
+    </operation>
+    <operation name="cancelPendingShipment" parameterOrder="CancelPendingShipmentRequest">
+      <input message="ns:CancelPendingShipmentRequest"/>
+      <output message="ns:CancelPendingShipmentReply"/>
+    </operation>
+    <operation name="processShipment" parameterOrder="ProcessShipmentRequest">
+      <input message="ns:ProcessShipmentRequest"/>
+      <output message="ns:ProcessShipmentReply"/>
+    </operation>
+    <operation name="deleteTag" parameterOrder="DeleteTagRequest">
+      <input message="ns:DeleteTagRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+    <operation name="validateShipment" parameterOrder="ValidateShipmentRequest">
+      <input message="ns:ValidateShipmentRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+    <operation name="deleteShipment" parameterOrder="DeleteShipmentRequest">
+      <input message="ns:DeleteShipmentRequest"/>
+      <output message="ns:ShipmentReply"/>
+    </operation>
+  </portType>
+  <binding name="ShipServiceSoapBinding" type="ns:ShipPortType">
+    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="processTag">
+      <s1:operation soapAction="processTag" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="createPendingShipment">
+      <s1:operation soapAction="createPendingShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="cancelPendingShipment">
+      <s1:operation soapAction="cancelPendingShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="processShipment">
+      <s1:operation soapAction="processShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="deleteTag">
+      <s1:operation soapAction="deleteTag" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="validateShipment">
+      <s1:operation soapAction="validateShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="deleteShipment">
+      <s1:operation soapAction="deleteShipment" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="ShipService">
+    <port name="ShipServicePort" binding="ns:ShipServiceSoapBinding">
+      <s1:address location=""/>
+    </port>
+  </service>
+</definitions>
diff --git app/code/core/Mage/Usa/etc/wsdl/FedEx/TrackService_v5.wsdl app/code/core/Mage/Usa/etc/wsdl/FedEx/TrackService_v5.wsdl
new file mode 100644
index 0000000..1f275b3
--- /dev/null
+++ app/code/core/Mage/Usa/etc/wsdl/FedEx/TrackService_v5.wsdl
@@ -0,0 +1,1510 @@
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://fedex.com/ws/track/v5" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fedex.com/ws/track/v5" name="TrackServiceDefinitions">
+  <types>
+    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fedex.com/ws/track/v5">
+      <xs:element name="SignatureProofOfDeliveryFaxReply" type="ns:SignatureProofOfDeliveryFaxReply"/>
+      <xs:element name="SignatureProofOfDeliveryFaxRequest" type="ns:SignatureProofOfDeliveryFaxRequest"/>
+      <xs:element name="SignatureProofOfDeliveryLetterReply" type="ns:SignatureProofOfDeliveryLetterReply"/>
+      <xs:element name="SignatureProofOfDeliveryLetterRequest" type="ns:SignatureProofOfDeliveryLetterRequest"/>
+      <xs:element name="TrackNotificationReply" type="ns:TrackNotificationReply"/>
+      <xs:element name="TrackNotificationRequest" type="ns:TrackNotificationRequest"/>
+      <xs:element name="TrackReply" type="ns:TrackReply"/>
+      <xs:element name="TrackRequest" type="ns:TrackRequest"/>
+      <xs:complexType name="Address">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for a physical location. May be used as an actual physical address (place to which one could go), or as a container of "address parts" which should be handled as a unit (such as a city-state-ZIP combination within the US).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="StreetLines" type="xs:string" minOccurs="0" maxOccurs="2">
+            <xs:annotation>
+              <xs:documentation>Combination of number, street name, etc. At least one line is required for a valid physical address; empty lines should not be included.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="City" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Name of city, town, etc.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StateOrProvinceCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifying abbreviation for US state, Canada province, etc. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PostalCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a region (usually small) for mail/package delivery. Format and presence of this field will vary, depending on country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="UrbanizationCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Relevant only to addresses in Puerto Rico.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CountryCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The two-letter code used to identify a country.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Residential" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether this address residential (as opposed to commercial).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="ArrivalLocationType">
+        <xs:annotation>
+          <xs:documentation>Identifies where a tracking event occurs.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="AIRPORT"/>
+          <xs:enumeration value="CUSTOMER"/>
+          <xs:enumeration value="CUSTOMS_BROKER"/>
+          <xs:enumeration value="DELIVERY_LOCATION"/>
+          <xs:enumeration value="DESTINATION_AIRPORT"/>
+          <xs:enumeration value="DESTINATION_FEDEX_FACILITY"/>
+          <xs:enumeration value="DROP_BOX"/>
+          <xs:enumeration value="ENROUTE"/>
+          <xs:enumeration value="FEDEX_FACILITY"/>
+          <xs:enumeration value="FEDEX_OFFICE_LOCATION"/>
+          <xs:enumeration value="INTERLINE_CARRIER"/>
+          <xs:enumeration value="NON_FEDEX_FACILITY"/>
+          <xs:enumeration value="ORIGIN_AIRPORT"/>
+          <xs:enumeration value="ORIGIN_FEDEX_FACILITY"/>
+          <xs:enumeration value="PICKUP_LOCATION"/>
+          <xs:enumeration value="PLANE"/>
+          <xs:enumeration value="PORT_OF_ENTRY"/>
+          <xs:enumeration value="SORT_FACILITY"/>
+          <xs:enumeration value="TURNPOINT"/>
+          <xs:enumeration value="VEHICLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="CarrierCodeType">
+        <xs:annotation>
+          <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FDXC"/>
+          <xs:enumeration value="FDXE"/>
+          <xs:enumeration value="FDXG"/>
+          <xs:enumeration value="FXCC"/>
+          <xs:enumeration value="FXFR"/>
+          <xs:enumeration value="FXSP"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="ClientDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data for the client submitting a transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The FedEx account number associated with this transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MeterNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This number is assigned by FedEx and identifies the unique device from which the request is originating</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IntegratorId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only used in transactions which require identification of the Fed Ex Office integrator.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language to be used for human-readable Notification.localizedMessages in responses to the request containing this ClientDetail object. Different requests from the same client may contain different Localization data. (Contrast with TransactionDetail.localization, which governs data payload language/translation.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Contact">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for a point-of-contact person.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PersonName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's name.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Title" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the contact person's title.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CompanyName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the company this contact is associated with.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PhoneExtension" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the phone extension associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagerNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the pager number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the fax number associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the email address associated with this contact.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="ContactAndAddress">
+        <xs:sequence>
+          <xs:element name="Contact" type="ns:Contact" minOccurs="1"/>
+          <xs:element name="Address" type="ns:Address" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Dimensions">
+        <xs:annotation>
+          <xs:documentation>The dimensions of this package and the unit type used for the measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Length" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="Width" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="Height" type="xs:nonNegativeInteger" minOccurs="0"/>
+          <xs:element name="Units" type="ns:LinearUnits" minOccurs="0"/>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Distance">
+        <xs:annotation>
+          <xs:documentation>Driving or other transportation distances, distinct from dimension measurements.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the distance quantity.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Units" type="ns:DistanceUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure for the distance value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="DistanceUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of units of measure that can be associated with a distance value.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KM"/>
+          <xs:enumeration value="MI"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationDetail">
+        <xs:annotation>
+          <xs:documentation>Information describing email notifications that will be sent in relation to events that occur during package movement</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PersonalMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A message that will be included in the email notifications</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Recipients" type="ns:EMailNotificationRecipient" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information describing the destination of the email, format of the email and events to be notified on</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationEventType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ON_DELIVERY"/>
+          <xs:enumeration value="ON_EXCEPTION"/>
+          <xs:enumeration value="ON_SHIPMENT"/>
+          <xs:enumeration value="ON_TENDER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="EMailNotificationFormatType">
+        <xs:annotation>
+          <xs:documentation>The format of the email</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="HTML"/>
+          <xs:enumeration value="TEXT"/>
+          <xs:enumeration value="WIRELESS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="EMailNotificationRecipient">
+        <xs:sequence>
+          <xs:element name="EMailNotificationRecipientType" type="ns:EMailNotificationRecipientType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the relationship this email recipient has to the shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The email address to send the notification to</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationEventsRequested" type="ns:EMailNotificationEventType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of email notifications being requested for this recipient.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Format" type="ns:EMailNotificationFormatType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The format of the email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The language/locale to be used in this email notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="EMailNotificationRecipientType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BROKER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="RECIPIENT"/>
+          <xs:enumeration value="SHIPPER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="LinearUnits">
+        <xs:annotation>
+          <xs:documentation>CM = centimeters, IN = inches</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="CM"/>
+          <xs:enumeration value="IN"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="Localization">
+        <xs:annotation>
+          <xs:documentation>Identifies the representation of human-readable text.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="LanguageCode" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for language (e.g. EN, FR, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocaleCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Two-letter code for the region (e.g. us, ca, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Notification">
+        <xs:annotation>
+          <xs:documentation>The descriptive data regarding the result of the submitted transaction.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Severity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The severity of this notification. This can indicate success or failure or some other information about the request. The values that can be returned are SUCCESS - Your transaction succeeded with no other applicable information. NOTE - Additional information that may be of interest to you about your transaction. WARNING - Additional information that you need to know about your transaction that you may need to take action on. ERROR - Information about an error that occurred while processing your transaction. FAILURE - FedEx was unable to process your transaction at this time due to a system failure. Please try again later</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Source" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Indicates the source of this notification. Combined with the Code it uniquely identifies this notification</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Code" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that represents this notification. Combined with the Source it uniquely identifies this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Message" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Human-readable text that explains this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LocalizedMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The translated message. The language and locale specified in the ClientDetail. Localization are used to determine the representation. Currently only supported in a TrackReply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MessageParameters" type="ns:NotificationParameter" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>A collection of name/value pairs that provide specific data to help the client determine the nature of an error (or warning, etc.) witout having to parse the message string.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="NotificationParameter">
+        <xs:sequence>
+          <xs:element name="Id" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the type of data contained in Value (e.g. SERVICE_TYPE, PACKAGE_SEQUENCE, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The value of the parameter (e.g. PRIORITY_OVERNIGHT, 2, etc..).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="NotificationSeverityType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of severity values for a Notification.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ERROR"/>
+          <xs:enumeration value="FAILURE"/>
+          <xs:enumeration value="NOTE"/>
+          <xs:enumeration value="SUCCESS"/>
+          <xs:enumeration value="WARNING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="OfficeOrderDeliveryMethodType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="COURIER"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PICKUP"/>
+          <xs:enumeration value="SHIPMENT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="OperatingCompanyType">
+        <xs:annotation>
+          <xs:documentation>Identification for a FedEx operating company (transportation and non-transportation).</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_OFFICE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="PackagingType">
+        <xs:annotation>
+          <xs:documentation>The enumerated packaging type used for this package.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_10KG_BOX"/>
+          <xs:enumeration value="FEDEX_25KG_BOX"/>
+          <xs:enumeration value="FEDEX_BOX"/>
+          <xs:enumeration value="FEDEX_ENVELOPE"/>
+          <xs:enumeration value="FEDEX_PAK"/>
+          <xs:enumeration value="FEDEX_TUBE"/>
+          <xs:enumeration value="YOUR_PACKAGING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="QualifiedTrackingNumber">
+        <xs:annotation>
+          <xs:documentation>Tracking number and additional shipment data used to identify a unique shipment for proof of delivery.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FedEx assigned identifier for a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The date the package was shipped.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If the account number used to ship the package is provided in the request the shipper and recipient information is included on the letter or fax.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Carrier" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FedEx operating company that delivered the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Destination" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Only country is used for elimination of duplicate tracking numbers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="RedirectToHoldEligibilityType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ELIGIBLE"/>
+          <xs:enumeration value="INELIGIBLE"/>
+          <xs:enumeration value="POSSIBLY_ELIGIBLE"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="ServiceType">
+        <xs:annotation>
+          <xs:documentation>The service type of the package/shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EUROPE_FIRST_INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="FEDEX_1_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_2_DAY"/>
+          <xs:enumeration value="FEDEX_2_DAY_AM"/>
+          <xs:enumeration value="FEDEX_2_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_3_DAY_FREIGHT"/>
+          <xs:enumeration value="FEDEX_EXPRESS_SAVER"/>
+          <xs:enumeration value="FEDEX_FIRST_FREIGHT"/>
+          <xs:enumeration value="FEDEX_FREIGHT_ECONOMY"/>
+          <xs:enumeration value="FEDEX_FREIGHT_PRIORITY"/>
+          <xs:enumeration value="FEDEX_GROUND"/>
+          <xs:enumeration value="FIRST_OVERNIGHT"/>
+          <xs:enumeration value="GROUND_HOME_DELIVERY"/>
+          <xs:enumeration value="INTERNATIONAL_DISTRIBUTION_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_ECONOMY_FREIGHT"/>
+          <xs:enumeration value="INTERNATIONAL_FIRST"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_DISTRIBUTION"/>
+          <xs:enumeration value="INTERNATIONAL_PRIORITY_FREIGHT"/>
+          <xs:enumeration value="PRIORITY_OVERNIGHT"/>
+          <xs:enumeration value="SMART_POST"/>
+          <xs:enumeration value="STANDARD_OVERNIGHT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureProofOfDeliveryFaxReply">
+        <xs:annotation>
+          <xs:documentation>FedEx Signature Proof Of Delivery Fax reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This contains the severity type of the most severe Notification in the Notifications array.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about the request/reply such was the transaction successful or not, and any additional information relevant to the request and/or reply. There may be multiple Notifications in a reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionDetail that is echoed back to the caller for matching requests and replies and a Localization element for defining the language/translation used in the reply data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Contains the version of the reply being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxConfirmationNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Confirmation of fax transmission.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="SignatureProofOfDeliveryFaxRequest">
+        <xs:annotation>
+          <xs:documentation>FedEx Signature Proof Of Delivery Fax request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains a free form field that is echoed back in the reply to match requests with replies and data that governs the data payload language/translations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The version of the request being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QualifiedTrackingNumber" type="ns:QualifiedTrackingNumber" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Tracking number and additional shipment data used to identify a unique shipment for proof of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalComments" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Additional customer-supplied text to be added to the body of the letter.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxSender" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address information about the person requesting the fax to be sent.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="FaxRecipient" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contact and address information, including the fax number, about the person to receive the fax.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="SignatureProofOfDeliveryImageType">
+        <xs:annotation>
+          <xs:documentation>Identifies the set of SPOD image types.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="PDF"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="SignatureProofOfDeliveryLetterReply">
+        <xs:annotation>
+          <xs:documentation>FedEx Signature Proof Of Delivery Letter reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This contains the severity type of the most severe Notification in the Notifications array.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about the request/reply such was the transaction successful or not, and any additional information relevant to the request and/or reply. There may be multiple Notifications in a reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionDetail that is echoed back to the caller for matching requests and replies and a Localization element for defining the language/translation used in the reply data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Image of letter encoded in Base64 format.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Letter" type="xs:base64Binary" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Image of letter encoded in Base64 format.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="SignatureProofOfDeliveryLetterRequest">
+        <xs:annotation>
+          <xs:documentation>FedEx Signature Proof Of Delivery Letter request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains a free form field that is echoed back in the reply to match requests with replies and data that governs the data payload language/translations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The version of the request being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="QualifiedTrackingNumber" type="ns:QualifiedTrackingNumber" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Tracking number and additional shipment data used to identify a unique shipment for proof of delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="AdditionalComments" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Additional customer-supplied text to be added to the body of the letter.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="LetterFormat" type="ns:SignatureProofOfDeliveryImageType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the set of SPOD image types.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Consignee" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If provided this information will be print on the letter.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="StringBarcode">
+        <xs:annotation>
+          <xs:documentation>Each instance of this data type represents a barcode whose content must be represented as ASCII text (i.e. not binary data).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Type" type="ns:StringBarcodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The kind of barcode data in this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The data content of this instance.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="StringBarcodeType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="ADDRESS"/>
+          <xs:enumeration value="ASTRA"/>
+          <xs:enumeration value="FEDEX_1D"/>
+          <xs:enumeration value="GROUND"/>
+          <xs:enumeration value="POSTAL"/>
+          <xs:enumeration value="USPS"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:simpleType name="TrackDeliveryLocationType">
+        <xs:annotation>
+          <xs:documentation>The delivery location at the delivered to address.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="FEDEX_LOCATION"/>
+          <xs:enumeration value="GUARD_OR_SECURITY_STATION"/>
+          <xs:enumeration value="IN_BOND_OR_CAGE"/>
+          <xs:enumeration value="MAILROOM"/>
+          <xs:enumeration value="OTHER"/>
+          <xs:enumeration value="PHARMACY"/>
+          <xs:enumeration value="RECEPTIONIST_OR_FRONT_DESK"/>
+          <xs:enumeration value="RESIDENCE"/>
+          <xs:enumeration value="SHIPPING_RECEIVING"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackDetail">
+        <xs:annotation>
+          <xs:documentation>Detailed tracking information about a particular package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Notification" type="ns:Notification" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To report soft error on an individual track detail.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx package identifier.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Barcode" type="ns:StringBarcode" minOccurs="0"/>
+          <xs:element name="TrackingNumberUniqueIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>When duplicate tracking numbers exist this data is returned with summary information for each of the duplicates. The summary information is used to determine which of the duplicates the intended tracking number is. This identifier is used on a subsequent track request to retrieve the tracking data for the desired tracking number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that identifies this type of status. This is the most recent status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A human-readable description of this status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Reconciliation" type="ns:TrackReconciliation" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used to report the status of a piece of a multiple piece shipment which is no longer traveling with the rest of the packages in the shipment or has not been accounted for.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceCommitMessage" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used to convey information such as. 1. FedEx has received information about a package but has not yet taken possession of it. 2. FedEx has handed the package off to a third party for final delivery. 3. The package delivery has been cancelled</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCode" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies a FedEx operating company (transportation).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OperatingCompany" type="ns:OperatingCompanyType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies operating transportation company that is the specific to the carrier code.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ProductionLocationContactAndAddress" type="ns:ContactAndAddress" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Specifies the FXO production centre contact and address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OtherIdentifiers" type="ns:TrackPackageIdentifier" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Other related identifiers for this package such as reference numbers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceInfo" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Retained for legacy compatibility only. User/screen friendly description of the Service type (e.g. Priority Overnight).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ServiceType" type="ns:ServiceType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Strict representation of the Service type (e.g. PRIORITY_OVERNIGHT).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight of this package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDimensions" type="ns:Dimensions" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Physical dimensions of the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageDimensionalWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The dimensional weight of the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentWeight" type="ns:Weight" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The weight of the entire shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packaging" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Retained for legacy compatibility only.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackagingType" type="ns:PackagingType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Strict representation of the Packaging type (e.g. FEDEX_BOX, YOUR_PACKAGING).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageSequenceNumber" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The sequence number of this package in a shipment. This would be 2 if it was package number 2 of 4.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageCount" type="xs:nonNegativeInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of packages in this shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackReturnLabelType" type="ns:TrackReturnLabelType" minOccurs="0"/>
+          <xs:element name="TrackReturnDescription" type="xs:string" minOccurs="0"/>
+          <xs:element name="ShipperAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address information for the shipper.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OriginLocationAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address of the FedEx pickup location/facility.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EstimatedPickupTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Estimated package pickup time for shipments that haven't been picked up.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Time package was shipped/tendered over to FedEx. Time portion will be populated if available, otherwise will be set to midnight.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TotalTransitDistance" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The distance from the origin to the destination. Returned for Custom Critical shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DistanceToDestination" type="ns:Distance" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Total distance package still has to travel. Returned for Custom Critical shipments.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address this package is to be (or has been) delivered.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DestinationLocationAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The address of the FedEx delivery location/facility.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EstimatedDeliveryTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Projected package delivery time based on ship time stamp, service and destination. Not populated if delivery has already occurred.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ActualDeliveryTimestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The time the package was actually delivered.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ActualDeliveryAddress" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Actual address where package was delivered. Differs from destinationAddress, which indicates where the package was to be delivered; This field tells where delivery actually occurred (next door, at station, etc.)</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OfficeOrderDeliveryMethod" type="ns:OfficeOrderDeliveryMethodType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the method of office order delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryLocationType" type="ns:TrackDeliveryLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Strict text indicating the delivery location at the delivered to address.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliveryLocationDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>User/screen friendly representation of the DeliveryLocationType (delivery location at the delivered to address). Can be returned in localized text.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DeliverySignatureName" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>This is either the name of the person that signed for the package or "Signature not requested" or "Signature on file".</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SignatureProofOfDeliveryAvailable" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>True if signed for by signature image is available.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationEventsAvailable" type="ns:EMailNotificationEventType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of email notifications that are available for the package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SplitShipmentParts" type="ns:TrackSplitShipmentPart" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Returned for cargo shipments only when they are currently split across vehicles.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RedirectToHoldEligibility" type="ns:RedirectToHoldEligibilityType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates redirection eligibility as determined by tracking service, subject to refinement/override by redirect-to-hold service.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Events" type="ns:TrackEvent" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Event information for a tracking number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackEvent">
+        <xs:annotation>
+          <xs:documentation>FedEx scanning information about a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Timestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The time this event occurred.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EventType" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Carrier's scan code. Pairs with EventDescription.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="EventDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Literal description that pairs with the EventType.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusExceptionCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Further defines the Scan Type code's specific type (e.g., DEX08 business closed). Pairs with StatusExceptionDescription.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusExceptionDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Literal description that pairs with the StatusExceptionCode.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Address" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Address information of the station that is responsible for the scan.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ArrivalLocation" type="ns:ArrivalLocationType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates where the arrival actually occurred.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackIdentifierType">
+        <xs:annotation>
+          <xs:documentation>The type of track to be performed.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="BILL_OF_LADING"/>
+          <xs:enumeration value="COD_RETURN_TRACKING_NUMBER"/>
+          <xs:enumeration value="CUSTOMER_AUTHORIZATION_NUMBER"/>
+          <xs:enumeration value="CUSTOMER_REFERENCE"/>
+          <xs:enumeration value="DEPARTMENT"/>
+          <xs:enumeration value="FREE_FORM_REFERENCE"/>
+          <xs:enumeration value="GROUND_INTERNATIONAL"/>
+          <xs:enumeration value="GROUND_SHIPMENT_ID"/>
+          <xs:enumeration value="GROUP_MPS"/>
+          <xs:enumeration value="INVOICE"/>
+          <xs:enumeration value="JOB_GLOBAL_TRACKING_NUMBER"/>
+          <xs:enumeration value="ORDER_GLOBAL_TRACKING_NUMBER"/>
+          <xs:enumeration value="ORDER_TO_PAY_NUMBER"/>
+          <xs:enumeration value="PARTNER_CARRIER_NUMBER"/>
+          <xs:enumeration value="PART_NUMBER"/>
+          <xs:enumeration value="PURCHASE_ORDER"/>
+          <xs:enumeration value="RETURNED_TO_SHIPPER_TRACKING_NUMBER"/>
+          <xs:enumeration value="RETURN_MATERIALS_AUTHORIZATION"/>
+          <xs:enumeration value="SHIPPER_REFERENCE"/>
+          <xs:enumeration value="STANDARD_MPS"/>
+          <xs:enumeration value="TRACKING_NUMBER_OR_DOORTAG"/>
+          <xs:enumeration value="TRANSPORTATION_CONTROL_NUMBER"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackNotificationPackage">
+        <xs:sequence>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>FedEx assigned identifier for a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumberUniqueIdentifiers" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>When duplicate tracking numbers exist this data is returned with summary information for each of the duplicates. The summary information is used to determine which of the duplicates the intended tracking number is. This identifier is used on a subsequent track request to retrieve the tracking data for the desired tracking number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCode" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identification of a FedEx operating company (transportation).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDate" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The date the package was shipped (tendered to FedEx).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Destination" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The destination address of this package. Only city, state/province, and country are returned.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="RecipientDetails" type="ns:TrackNotificationRecipientDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Options available for a tracking notification recipient.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackNotificationRecipientDetail">
+        <xs:annotation>
+          <xs:documentation>Options available for a tracking notification recipient.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="NotificationEventsAvailable" type="ns:EMailNotificationEventType" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>The types of email notifications available for this recipient.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackNotificationReply">
+        <xs:annotation>
+          <xs:documentation>FedEx Track Notification reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This contains the severity type of the most severe Notification in the Notifications array.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about the request/reply such was the transaction successful or not, and any additional information relevant to the request and/or reply. There may be multiple Notifications in a reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionDetail that is echoed back to the caller for matching requests and replies and a Localization element for defining the language/translation used in the reply data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Contains the version of the reply being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DuplicateWaybill" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>True if duplicate packages (more than one package with the same tracking number) have been found, the packages array contains information about each duplicate. Use this information to determine which of the tracking numbers is the one you need and resend your request using the tracking number and TrackingNumberUniqueIdentifier for that package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MoreDataAvailable" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>True if additional packages remain to be retrieved.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagingToken" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value that must be passed in a TrackNotification request to retrieve the next set of packages (when MoreDataAvailable = true).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Packages" type="ns:TrackNotificationPackage" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about the notifications that are available for this tracking number. If there are duplicates the ship date and destination address information is returned for determining which TrackingNumberUniqueIdentifier to use on a subsequent request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackNotificationRequest">
+        <xs:annotation>
+          <xs:documentation>FedEx Track Notification request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains a free form field that is echoed back in the reply to match requests with replies and data that governs the data payload language/translations</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumber" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The tracking number to which the notifications will be triggered from.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MultiPiece" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Indicates whether to return tracking information for all associated packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagingToken" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>When the MoreDataAvailable field is true in a TrackNotificationReply the PagingToken must be sent in the subsequent TrackNotificationRequest to retrieve the next page of data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumberUniqueId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Use this field when your original request informs you that there are duplicates of this tracking number. If you get duplicates you will also receive some information about each of the duplicate tracking numbers to enable you to chose one and resend that number along with the TrackingNumberUniqueId to get notifications for that tracking number.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDateRangeBegin" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To narrow the search to a period in time the ShipDateRangeBegin and ShipDateRangeEnd can be used to help eliminate duplicates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDateRangeEnd" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To narrow the search to a period in time the ShipDateRangeBegin and ShipDateRangeEnd can be used to help eliminate duplicates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SenderEMailAddress" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Included in the email notification identifying the requester of this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="SenderContactName" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Included in the email notification identifying the requester of this notification.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="NotificationDetail" type="ns:EMailNotificationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Who to send the email notifications to and for which events. The notificationRecipientType and NotifyOnShipment fields are not used in this request.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackPackageIdentifier">
+        <xs:annotation>
+          <xs:documentation>The type and value of the package identifier that is to be used to retrieve the tracking information for a package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Value" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The value to be used to retrieve tracking information for a package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Type" type="ns:TrackIdentifierType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type of the Value to be used to retrieve tracking information for a package (e.g. SHIPPER_REFERENCE, PURCHASE_ORDER, TRACKING_NUMBER_OR_DOORTAG, etc..) .</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackReconciliation">
+        <xs:annotation>
+          <xs:documentation>Used to report the status of a piece of a multiple piece shipment which is no longer traveling with the rest of the packages in the shipment or has not been accounted for.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Status" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>An identifier for this type of status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Description" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>A human-readable description of this status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackReply">
+        <xs:annotation>
+          <xs:documentation>The descriptive data returned from a FedEx package tracking request.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="HighestSeverity" type="ns:NotificationSeverityType" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>This contains the severity type of the most severe Notification in the Notifications array.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Notifications" type="ns:Notification" minOccurs="1" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Information about the request/reply such was the transaction successful or not, and any additional information relevant to the request and/or reply. There may be multiple Notifications in a reply.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains the CustomerTransactionDetail that is echoed back to the caller for matching requests and replies and a Localization element for defining the language/translation used in the reply data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Contains the version of the reply being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="DuplicateWaybill" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>True if duplicate packages (more than one package with the same tracking number) have been found, and only limited data will be provided for each one.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="MoreData" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>True if additional packages remain to be retrieved.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagingToken" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Value that must be passed in a TrackNotification request to retrieve the next set of packages (when MoreDataAvailable = true).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackDetails" type="ns:TrackDetail" minOccurs="0" maxOccurs="unbounded">
+            <xs:annotation>
+              <xs:documentation>Contains detailed tracking information for the requested packages(s).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TrackRequest">
+        <xs:annotation>
+          <xs:documentation>The descriptive data sent by a client to track a FedEx package.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="WebAuthenticationDetail" type="ns:WebAuthenticationDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data to be used in authentication of the sender's identity (and right to use FedEx web services).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ClientDetail" type="ns:ClientDetail" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Descriptive data identifying the client submitting the transaction.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TransactionDetail" type="ns:TransactionDetail" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Contains a free form field that is echoed back in the reply to match requests with replies and data that governs the data payload language/translations.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Version" type="ns:VersionId" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The version of the request being used.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="CarrierCode" type="ns:CarrierCodeType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The FedEx operating company (transportation) used for this package's delivery.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="OperatingCompany" type="ns:OperatingCompanyType" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies operating transportation company that is the specific to the carrier code.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PackageIdentifier" type="ns:TrackPackageIdentifier" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>The type and value of the package identifier that is to be used to retrieve the tracking information for a package or group of packages.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="TrackingNumberUniqueIdentifier" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Used to distinguish duplicate FedEx tracking numbers.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDateRangeBegin" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To narrow the search to a period in time the ShipDateRangeBegin and ShipDateRangeEnd can be used to help eliminate duplicates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipDateRangeEnd" type="xs:date" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>To narrow the search to a period in time the ShipDateRangeBegin and ShipDateRangeEnd can be used to help eliminate duplicates.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="ShipmentAccountNumber" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For tracking by references information either the account number or destination postal code and country must be provided.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Destination" type="ns:Address" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>For tracking by references information either the account number or destination postal code and country must be provided.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="IncludeDetailedScans" type="xs:boolean" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>If false the reply will contain summary/profile data including current status. If true the reply contains profile + detailed scan activity for each package.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="PagingToken" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>When the MoreData field = true in a TrackReply the PagingToken must be sent in the subsequent TrackRequest to retrieve the next page of data.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="TrackReturnLabelType">
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="EMAIL"/>
+          <xs:enumeration value="PRINT"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="TrackSplitShipmentPart">
+        <xs:annotation>
+          <xs:documentation>Used when a cargo shipment is split across vehicles. This is used to give the status of each part of the shipment.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="PieceCount" type="xs:positiveInteger" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The number of pieces in this part.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Timestamp" type="xs:dateTime" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>The date and time this status began.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusCode" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A code that identifies this type of status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="StatusDescription" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>A human-readable description of this status.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="TransactionDetail">
+        <xs:annotation>
+          <xs:documentation>Descriptive data that governs data payload language/translations.  The TransactionDetail from the request is echoed back to the caller in the corresponding reply.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="CustomerTransactionId" type="xs:string" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Free form text to be echoed back in the reply. Used to match requests and replies.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Localization" type="ns:Localization" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Governs data payload language/translations (contrasted with ClientDetail.localization, which governs Notification.localizedMessage language selection).</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="Weight">
+        <xs:annotation>
+          <xs:documentation>The descriptive data for the heaviness of an object.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Units" type="ns:WeightUnits" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the unit of measure associated with a weight value.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Value" type="xs:decimal" minOccurs="0">
+            <xs:annotation>
+              <xs:documentation>Identifies the weight value of a package/shipment.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:simpleType name="WeightUnits">
+        <xs:annotation>
+          <xs:documentation>Identifies the collection of units of measure that can be associated with a weight value.</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="KG"/>
+          <xs:enumeration value="LB"/>
+        </xs:restriction>
+      </xs:simpleType>
+      <xs:complexType name="WebAuthenticationDetail">
+        <xs:annotation>
+          <xs:documentation>Used in authentication of the sender's identity.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="UserCredential" type="ns:WebAuthenticationCredential" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Credential used to authenticate a specific software application. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="WebAuthenticationCredential">
+        <xs:annotation>
+          <xs:documentation>Two part authentication string used for the sender's identity</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="Key" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifying part of authentication credential. This value is provided by FedEx after registration</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Password" type="xs:string" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Secret part of authentication key. This value is provided by FedEx after registration.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+      <xs:complexType name="VersionId">
+        <xs:annotation>
+          <xs:documentation>Identifies the version/level of a service operation expected by a caller (in each request) and performed by the callee (in each reply).</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+          <xs:element name="ServiceId" type="xs:string" fixed="trck" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies a system or sub-system which performs an operation.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Major" type="xs:int" fixed="5" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service business level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Intermediate" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service interface level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+          <xs:element name="Minor" type="xs:int" fixed="0" minOccurs="1">
+            <xs:annotation>
+              <xs:documentation>Identifies the service code level.</xs:documentation>
+            </xs:annotation>
+          </xs:element>
+        </xs:sequence>
+      </xs:complexType>
+    </xs:schema>
+  </types>
+  <message name="SignatureProofOfDeliveryFaxReply">
+    <part name="SignatureProofOfDeliveryFaxReply" element="ns:SignatureProofOfDeliveryFaxReply"/>
+  </message>
+  <message name="TrackRequest">
+    <part name="TrackRequest" element="ns:TrackRequest"/>
+  </message>
+  <message name="SignatureProofOfDeliveryFaxRequest">
+    <part name="SignatureProofOfDeliveryFaxRequest" element="ns:SignatureProofOfDeliveryFaxRequest"/>
+  </message>
+  <message name="SignatureProofOfDeliveryLetterRequest">
+    <part name="SignatureProofOfDeliveryLetterRequest" element="ns:SignatureProofOfDeliveryLetterRequest"/>
+  </message>
+  <message name="TrackNotificationRequest">
+    <part name="TrackNotificationRequest" element="ns:TrackNotificationRequest"/>
+  </message>
+  <message name="TrackNotificationReply">
+    <part name="TrackNotificationReply" element="ns:TrackNotificationReply"/>
+  </message>
+  <message name="TrackReply">
+    <part name="TrackReply" element="ns:TrackReply"/>
+  </message>
+  <message name="SignatureProofOfDeliveryLetterReply">
+    <part name="SignatureProofOfDeliveryLetterReply" element="ns:SignatureProofOfDeliveryLetterReply"/>
+  </message>
+  <portType name="TrackPortType">
+    <operation name="getTrackNotification" parameterOrder="TrackNotificationRequest">
+      <input message="ns:TrackNotificationRequest"/>
+      <output message="ns:TrackNotificationReply"/>
+    </operation>
+    <operation name="retrieveSignatureProofOfDeliveryLetter" parameterOrder="SignatureProofOfDeliveryLetterRequest">
+      <input message="ns:SignatureProofOfDeliveryLetterRequest"/>
+      <output message="ns:SignatureProofOfDeliveryLetterReply"/>
+    </operation>
+    <operation name="track" parameterOrder="TrackRequest">
+      <input message="ns:TrackRequest"/>
+      <output message="ns:TrackReply"/>
+    </operation>
+    <operation name="sendSignatureProofOfDeliveryFax" parameterOrder="SignatureProofOfDeliveryFaxRequest">
+      <input message="ns:SignatureProofOfDeliveryFaxRequest"/>
+      <output message="ns:SignatureProofOfDeliveryFaxReply"/>
+    </operation>
+  </portType>
+  <binding name="TrackServiceSoapBinding" type="ns:TrackPortType">
+    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="getTrackNotification">
+      <s1:operation soapAction="getTrackNotification" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="retrieveSignatureProofOfDeliveryLetter">
+      <s1:operation soapAction="retrieveSignatureProofOfDeliveryLetter" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="track">
+      <s1:operation soapAction="track" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="sendSignatureProofOfDeliveryFax">
+      <s1:operation soapAction="sendSignatureProofOfDeliveryFax" style="document"/>
+      <input>
+        <s1:body use="literal"/>
+      </input>
+      <output>
+        <s1:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="TrackService">
+    <port name="TrackServicePort" binding="ns:TrackServiceSoapBinding">
+      <s1:address location=""/>
+    </port>
+  </service>
+</definitions>
diff --git app/code/core/Mage/Usa/sql/usa_setup/mysql4-install-1.6.0.0.php app/code/core/Mage/Usa/sql/usa_setup/mysql4-install-1.6.0.0.php
new file mode 100644
index 0000000..8ce1063
--- /dev/null
+++ app/code/core/Mage/Usa/sql/usa_setup/mysql4-install-1.6.0.0.php
@@ -0,0 +1,26 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
diff --git app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-0.7.0-0.7.1.php app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-0.7.0-0.7.1.php
index 1eb10c0..d61b2c1 100644
--- app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-0.7.0-0.7.1.php
+++ app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-0.7.0-0.7.1.php
@@ -20,7 +20,7 @@
  *
  * @category    Mage
  * @package     Mage_Usa
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  */
 
diff --git app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php
new file mode 100644
index 0000000..a1faae9
--- /dev/null
+++ app/code/core/Mage/Usa/sql/usa_setup/mysql4-upgrade-1.6.0.0-1.6.0.1.php
@@ -0,0 +1,112 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+
+$codes = array(
+    'method' => array(
+        'EUROPEFIRSTINTERNATIONALPRIORITY'  => 'EUROPE_FIRST_INTERNATIONAL_PRIORITY',
+        'FEDEX1DAYFREIGHT'                  => 'FEDEX_1_DAY_FREIGHT',
+        'FEDEX2DAYFREIGHT'                  => 'FEDEX_2_DAY_FREIGHT',
+        'FEDEX2DAY'                         => 'FEDEX_2_DAY',
+        'FEDEX3DAYFREIGHT'                  => 'FEDEX_3_DAY_FREIGHT',
+        'FEDEXEXPRESSSAVER'                 => 'FEDEX_EXPRESS_SAVER',
+        'FEDEXGROUND'                       => 'FEDEX_GROUND',
+        'FIRSTOVERNIGHT'                    => 'FIRST_OVERNIGHT',
+        'GROUNDHOMEDELIVERY'                => 'GROUND_HOME_DELIVERY',
+        'INTERNATIONALECONOMY'              => 'INTERNATIONAL_ECONOMY',
+        'INTERNATIONALECONOMY FREIGHT'      => 'INTERNATIONAL_ECONOMY_FREIGHT',
+        'INTERNATIONALFIRST'                => 'INTERNATIONAL_FIRST',
+        'INTERNATIONALGROUND'               => 'INTERNATIONAL_GROUND',
+        'INTERNATIONALPRIORITY'             => 'INTERNATIONAL_PRIORITY',
+        'INTERNATIONALPRIORITY FREIGHT'     => 'INTERNATIONAL_PRIORITY_FREIGHT',
+        'PRIORITYOVERNIGHT'                 => 'PRIORITY_OVERNIGHT',
+        'SMARTPOST'                         => 'SMART_POST',
+        'STANDARDOVERNIGHT'                 => 'STANDARD_OVERNIGHT',
+        'FEDEXFREIGHT'                      => 'FEDEX_FREIGHT',
+        'FEDEXNATIONALFREIGHT'              => 'FEDEX_NATIONAL_FREIGHT',
+    ),
+    'dropoff' => array(
+        'REGULARPICKUP'         => 'REGULAR_PICKUP',
+        'REQUESTCOURIER'        => 'REQUEST_COURIER',
+        'DROPBOX'               => 'DROP_BOX',
+        'BUSINESSSERVICECENTER' => 'BUSINESS_SERVICE_CENTER',
+        'STATION'               => 'STATION'
+    ),
+    'packaging' => array(
+        'FEDEXENVELOPE'     => 'FEDEX_ENVELOPE',
+        'FEDEXPAK'          => 'FEDEX_PAK',
+        'FEDEXBOX'          => 'FEDEX_BOX',
+        'FEDEXTUBE'         => 'FEDEX_TUBE',
+        'FEDEX10KGBOX'      => 'FEDEX_10KG_BOX',
+        'FEDEX25KGBOX'      => 'FEDEX_25KG_BOX',
+        'YOURPACKAGING'     => 'YOUR_PACKAGING'
+    ),
+);
+
+/* @var $installer Mage_Core_Model_Resource_Setup */
+$installer = $this;
+$configDataTable = $installer->getTable('core/config_data');
+$conn = $installer->getConnection();
+
+$select = $conn->select()
+        ->from($configDataTable)
+        ->where('path IN (?)',
+                array(
+                    'carriers/fedex/packaging',
+                    'carriers/fedex/dropoff',
+                    'carriers/fedex/free_method',
+                    'carriers/fedex/allowed_methods'
+               )
+        );
+$mapsOld = $conn->fetchAll($select);
+foreach ($mapsOld as $mapOld) {
+    $mapNew = '';
+    if (stripos($mapOld['path'], 'packaging') && isset($codes['packaging'][$mapOld['value']])) {
+        $mapNew = $codes['packaging'][$mapOld['value']];
+    } else if (stripos($mapOld['path'], 'dropoff') && isset($codes['dropoff'][$mapOld['value']])) {
+        $mapNew = $codes['dropoff'][$mapOld['value']];
+    } else if (stripos($mapOld['path'], 'free_method') && isset($codes['method'][$mapOld['value']])) {
+        $mapNew = $codes['method'][$mapOld['value']];
+    } else if (stripos($mapOld['path'], 'allowed_methods')) {
+        foreach (explode(',', $mapOld['value']) as $shippingMethod) {
+            if (isset($codes['method'][$shippingMethod])) {
+                $mapNew[] = $codes['method'][$shippingMethod];
+            } else {
+                $mapNew[] = $shippingMethod;
+            }
+        }
+        $mapNew = implode($mapNew, ',');
+    } else {
+        continue;
+    }
+
+    if (!empty($mapNew) && $mapNew != $mapOld['value']) {
+        $whereConfigId = $conn->quoteInto('config_id = ?', $mapOld['config_id']);
+        $conn->update($configDataTable,
+                      array('value' => $mapNew),
+                      $whereConfigId
+        );
+    }
+}
diff --git app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
index 14f1477..5b9f631 100644
--- app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
+++ app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
@@ -107,6 +107,15 @@
             </td>
             <td class="value scope-label"><?php echo Mage::helper('catalog')->__('[GLOBAL]') ?></td>
         </tr>
+        <tr>
+            <td class="label"><label for="inventory_is_decimal_divided"><?php echo Mage::helper('catalog')->__('Can be Divided into Multiple Boxes for Shipping') ?></label></td>
+            <td class="value"><select id="inventory_is_decimal_divided" name="<?php echo $this->getFieldSuffix() ?>[stock_data][is_decimal_divided]" class="select" <?php echo $_readonly;?>>
+                <option value="0"><?php echo Mage::helper('catalog')->__('No') ?></option>
+                <option value="1"<?php if($this->getFieldValue('is_decimal_divided') == 1): ?> selected="selected"<?php endif; ?>><?php echo Mage::helper('catalog')->__('Yes') ?></option>
+            </select>
+            </td>
+            <td class="value scope-label"><?php echo Mage::helper('adminhtml')->__('[GLOBAL]') ?></td>
+        </tr>
         <?php endif; ?>
 
         <tr>
@@ -226,6 +235,22 @@
     Event.observe($('inventory_enable_qty_increments'), 'change', applyEnableQtyIncrements);
     Event.observe($('inventory_use_config_enable_qty_increments'), 'change', applyEnableQtyIncrements);
     applyEnableQtyIncrements();
+
+    function applyEnableDecimalDivided() {
+        $('inventory_is_decimal_divided').up('tr').hide();
+        $('inventory_qty_increments').removeClassName('validate-digits').removeClassName('validate-number');
+        $('inventory_min_sale_qty').removeClassName('validate-digits').removeClassName('validate-number');
+        if ($('inventory_is_qty_decimal').value == 1) {
+            $('inventory_is_decimal_divided').up('tr').show();
+            $('inventory_qty_increments').addClassName('validate-number');
+            $('inventory_min_sale_qty').addClassName('validate-number');
+        } else {
+            $('inventory_qty_increments').addClassName('validate-digits');
+            $('inventory_min_sale_qty').addClassName('validate-digits');
+        }
+    }
+    Event.observe($('inventory_is_qty_decimal'), 'change', applyEnableDecimalDivided);
+    applyEnableDecimalDivided();
     //]]>
     </script>
     </fieldset>
diff --git app/design/adminhtml/default/default/template/system/shipping/ups.phtml app/design/adminhtml/default/default/template/system/shipping/ups.phtml
index dc48e83..4603978 100644
--- app/design/adminhtml/default/default/template/system/shipping/ups.phtml
+++ app/design/adminhtml/default/default/template/system/shipping/ups.phtml
@@ -20,203 +20,176 @@
  *
  * @category    design
  * @package     default_default
- * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
  * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
  */
 
+/** @var $upsModel Mage_Usa_Model_Shipping_Carrier_Ups */
+$upsModel = Mage::getSingleton('usa/shipping_carrier_ups');
+$orShipArr = $upsModel->getCode('originShipment');
+$defShipArr = $upsModel->getCode('method');
 
-$orShipArr = Mage::getSingleton('usa/shipping_carrier_ups')->getCode('originShipment');
-
-$defShipArr = Mage::getSingleton('usa/shipping_carrier_ups')->getCode('method');
-
+/** @var $this Mage_Adminhtml_Block_Template */
 $sectionCode = $this->getRequest()->getParam('section');
 $websiteCode = $this->getRequest()->getParam('website');
 $storeCode = $this->getRequest()->getParam('store');
 
-
-if(!$storeCode && $websiteCode){
+if (!$storeCode && $websiteCode) {
+    /** @var $web Mage_Core_Model_Website */
     $web = Mage::getModel('Mage_Core_Model_Website')->load($websiteCode);
-    $stroredAllowedMethods = $web->getConfig('carriers/ups/allowed_methods');
-    $stroredAllowedMethods = explode(',',$stroredAllowedMethods);
-    $stroredOriginShipment = $web->getConfig('carriers/ups/origin_shipment');
-    $stroredFreeShipment = $web->getConfig('carriers/ups/free_method');
+    $storedAllowedMethods = explode(',', $web->getConfig('carriers/ups/allowed_methods'));
+    $storedOriginShipment = $web->getConfig('carriers/ups/origin_shipment');
+    $storedFreeShipment   = $web->getConfig('carriers/ups/free_method');
+    $storedUpsType        = $web->getConfig('carriers/ups/type');
 } elseif ($storeCode) {
-    $stroredAllowedMethods = Mage::getStoreConfig('carriers/ups/allowed_methods',$storeCode);
-    $stroredAllowedMethods = explode(',',$stroredAllowedMethods);
-    $stroredOriginShipment = Mage::getStoreConfig('carriers/ups/origin_shipment',$storeCode);
-    $stroredFreeShipment = Mage::getStoreConfig('carriers/ups/free_method',$storeCode);
+    $storedAllowedMethods = explode(',', Mage::getStoreConfig('carriers/ups/allowed_methods', $storeCode));
+    $storedOriginShipment = Mage::getStoreConfig('carriers/ups/origin_shipment', $storeCode);
+    $storedFreeShipment   = Mage::getStoreConfig('carriers/ups/free_method', $storeCode);
+    $storedUpsType        = Mage::getStoreConfig('carriers/ups/type', $storeCode);
 } else {
-    $stroredAllowedMethods = Mage::getStoreConfig('carriers/ups/allowed_methods');
-    $stroredAllowedMethods = explode(',',$stroredAllowedMethods);
-    $stroredOriginShipment = Mage::getStoreConfig('carriers/ups/origin_shipment');
-    $stroredFreeShipment = Mage::getStoreConfig('carriers/ups/free_method');
+    $storedAllowedMethods = explode(',', Mage::getStoreConfig('carriers/ups/allowed_methods'));
+    $storedOriginShipment = Mage::getStoreConfig('carriers/ups/origin_shipment');
+    $storedFreeShipment   = Mage::getStoreConfig('carriers/ups/free_method');
+    $storedUpsType        = Mage::getStoreConfig('carriers/ups/type');
 }
 ?>
 <script type="text/javascript">
 //<![CDATA[
-    originShipmentObj = new Object();
-
-
-    <?php
-    //get origin shipment data, using in UPS XML module
-        foreach ($orShipArr as $key=>$val){
-            print "originShipmentObj['$key'] = new Object();\n";
-            foreach ($val as $code=>$label){
-                print "\toriginShipmentObj['$key']['$code'] = '$label';\n";
-            }
-        }
-    ?>
-    //get default shipment data, using in UPS module
-    <?php
-        print "originShipmentObj['default'] = new Object();\n";
-        foreach ($defShipArr as $code=>$label){
-            print "\toriginShipmentObj['default']['$code'] = '$label';\n";
-        }
-    ?>
-    //get stored Allowed Methods
-    <?php
-    print "stroredAllowedMethods = new Array();\n";
-        foreach ($stroredAllowedMethods as $code){
-            print "\tstroredAllowedMethods.push('$code');\n";
-        }
-    ?>
-    //set stored origin shipment
-    <?php
-        print "stroredOriginShipment='$stroredOriginShipment'";
-    ?>
-
-    //set stored Free origin shipment
-    <?php
-        print "stroredFreeShipment='$stroredFreeShipment'";
-    ?>
-
-
-    function hideRowArrayElements(arr,method)
+    function hideRowArrayElements(arr)
     {
-        for(a=0;a<arr.length;a++){
+        for (var a = 0; a < arr.length; a++) {
             $(arr[a]).up(1).hide();
         }
     }
 
-    function showRowArrayElements(arr,method)
+    function showRowArrayElements(arr)
     {
-        for(a=0;a<arr.length;a++){
+        for (var a = 0; a < arr.length; a++) {
             $(arr[a]).up(1).show();
         }
     }
 
-    function inArray(arr,value)
+    function inArray(arr, value)
     {
-        var i;
-        for (i=0; i < arr.length; i++) {
-                if (arr[i] === value) {
-                        return true;
-                }
+        for (var i = 0; i < arr.length; i++) {
+            if (arr[i] === value) {
+                return true;
+            }
         }
         return false;
     }
 
     var upsXml = Class.create();
     upsXml.prototype = {
-        initialize : function()
+        initialize: function()
         {
-
             this.carriersUpsTypeId = 'carriers_ups_type';
-            if($(this.carriersUpsTypeId)){
-                this.checkingUpsXmlId = new Array('carriers_ups_gateway_xml_url','carriers_ups_username','carriers_ups_password','carriers_ups_access_license_number');
-                this.checkingUpsId = new Array('carriers_ups_gateway_url');
-                this.originShipmentTitle = '';
-                this.allowedMethodsId = 'carriers_ups_allowed_methods';
-                this.freeShipmentId = 'carriers_ups_free_method';
-                this.onlyUpsXmlElements = new Array('carriers_ups_gateway_xml_url','carriers_ups_tracking_xml_url','carriers_ups_username','carriers_ups_password','carriers_ups_access_license_number','carriers_ups_origin_shipment','carriers_ups_negotiated_active','carriers_ups_shipper_number','carriers_ups_mode_xml');
-                this.onlyUpsElements = new Array('carriers_ups_gateway_url');
-                this.setFormValues();
-                Event.observe($('carriers_ups_type'), 'change', this.setFormValues.bind(this));
+            if (!$(this.carriersUpsTypeId)) {
+                return;
             }
 
+            this.checkingUpsXmlId = ['carriers_ups_gateway_xml_url','carriers_ups_username',
+                'carriers_ups_password','carriers_ups_access_license_number'];
+            this.checkingUpsId = ['carriers_ups_gateway_url'];
+            this.originShipmentTitle = '';
+            this.allowedMethodsId = 'carriers_ups_allowed_methods';
+            this.freeShipmentId = 'carriers_ups_free_method';
+            this.onlyUpsXmlElements = ['carriers_ups_gateway_xml_url','carriers_ups_tracking_xml_url',
+                'carriers_ups_username','carriers_ups_password','carriers_ups_access_license_number',
+                'carriers_ups_origin_shipment','carriers_ups_negotiated_active','carriers_ups_shipper_number',
+                'carriers_ups_mode_xml'];
+            this.onlyUpsElements = ['carriers_ups_gateway_url'];
+
+            this.storedOriginShipment = '<?php echo $storedOriginShipment ?>';
+            this.storedFreeShipment = '<?php echo $storedFreeShipment ?>';
+            this.storedUpsType = '<?php echo $storedUpsType ?>';
+            <?php /** @var $_coreHelper Mage_Core_Helper_Data */ $_coreHelper = Mage::helper('core'); ?>
+            this.storedAllowedMethods = <?php echo $_coreHelper->jsonEncode($storedAllowedMethods) ?>;
+            this.originShipmentObj = <?php echo $_coreHelper->jsonEncode($orShipArr) ?>;
+            this.originShipmentObj['default'] = <?php echo $_coreHelper->jsonEncode($defShipArr) ?>;
+
+            this.setFormValues();
+            Event.observe($(this.carriersUpsTypeId), 'change', this.setFormValues.bind(this));
         },
         updateAllowedMethods: function(originShipmentTitle)
         {
-            selectFieldAllowedMethod = $(this.allowedMethodsId);
-            selectFieldFreeShipment = $(this.freeShipmentId);
+            var allowedMethods = $(this.allowedMethodsId), // multiselect
+                freeMethod = $(this.freeShipmentId), // single-choice select
+                originShipment = this.originShipmentObj[originShipmentTitle];
 
-            originShipment = originShipmentObj[originShipmentTitle];
-
-            while (selectFieldAllowedMethod.length> 0) {
-                selectFieldAllowedMethod.remove(0);
-            }
-            while (selectFieldFreeShipment.length> 0) {
-                selectFieldFreeShipment.remove(0);
+            while (allowedMethods.length > 0) {
+                allowedMethods.remove(0);
             }
 
-            var optionFree = document.createElement("OPTION");
-            optionFree.text = 'None';
-            optionFree.value = '';
-            try {
-                selectFieldFreeShipment.add(optionFree, null);
-            } catch(ex) {
-                selectFieldFreeShipment.add(optionFree);
+            while (freeMethod.length > 0) {
+                freeMethod.remove(0);
             }
 
-            for(code in originShipment){
-                var option = document.createElement("OPTION");
-                option.text = originShipment[code];
-                option.value = code;
-
-                var optionFree = document.createElement("OPTION");
-                optionFree.text = originShipment[code];
-                optionFree.value = code;
+            freeMethod.insert(new Element('option', {value:''}).update('None'));
 
-                if( (originShipmentTitle == stroredOriginShipment || originShipmentTitle=='default') && stroredFreeShipment==code){
-                    optionFree.selected = true;
+            var code, option;
+            for (code in originShipment) {
+                option = new Element('option', {value:code}).update(originShipment[code]);
+                if ((originShipmentTitle == this.storedOriginShipment || originShipmentTitle == 'default')
+                    && this.storedFreeShipment == code
+                ) {
+                    option.selected = true;
                 }
-                if( (originShipmentTitle == stroredOriginShipment || originShipmentTitle=='default') && inArray(stroredAllowedMethods,code)){
+                freeMethod.insert(option);
+
+                option = new Element('option', {value:code}).update(originShipment[code]);
+                if (this.storedUpsType == 'UPS') {
+                    if (originShipmentTitle != 'default' || inArray(this.storedAllowedMethods, code)) {
+                        option.selected = true;
+                    }
+                } else if (originShipmentTitle != this.storedOriginShipment
+                    || inArray(this.storedAllowedMethods, code)
+                ) {
                     option.selected = true;
                 }
-                try {
-                    selectFieldAllowedMethod.add(option, null); // standards compliant; doesn't work in IE
-                    selectFieldFreeShipment.add(optionFree, null);
-                } catch(ex) {
-                    selectFieldAllowedMethod.add(option); // IE only
-                    selectFieldFreeShipment.add(optionFree);
+
+                if ((originShipmentTitle == 'default' || originShipmentTitle == this.storedOriginShipment)
+                    && inArray(this.storedAllowedMethods, code)
+                ) {
+                    option.selected = true;
                 }
+
+                allowedMethods.insert(option);
             }
         },
         setFormValues: function()
         {
-            if($F(this.carriersUpsTypeId) == 'UPS'){
-                for(a=0;a<this.checkingUpsXmlId.length;a++){
+            var a;
+            if ($F(this.carriersUpsTypeId) == 'UPS') {
+                for (a = 0; a < this.checkingUpsXmlId.length; a++) {
                     $(this.checkingUpsXmlId[a]).removeClassName('required-entry');
                 }
-                for(a=0;a<this.checkingUpsId.length;a++){
+                for (a = 0; a < this.checkingUpsId.length; a++) {
                     $(this.checkingUpsXmlId[a]).addClassName('required-entry');
                 }
                 Event.stopObserving($('carriers_ups_origin_shipment'), 'change', this.changeOriginShipment.bind(this));
                 showRowArrayElements(this.onlyUpsElements);
                 hideRowArrayElements(this.onlyUpsXmlElements);
-                this.changeOriginShipment(null,'default');
+                this.changeOriginShipment(null, 'default');
             } else {
-                for(a=0;a<this.checkingUpsXmlId.length;a++){
+                for (a = 0; a < this.checkingUpsXmlId.length; a++) {
                     $(this.checkingUpsXmlId[a]).addClassName('required-entry');
                 }
-                for(a=0;a<this.checkingUpsId.length;a++){
+                for (a = 0; a < this.checkingUpsId.length; a++) {
                     $(this.checkingUpsXmlId[a]).removeClassName('required-entry');
                 }
                 Event.observe($('carriers_ups_origin_shipment'), 'change', this.changeOriginShipment.bind(this));
                 showRowArrayElements(this.onlyUpsXmlElements);
                 hideRowArrayElements(this.onlyUpsElements);
-                this.changeOriginShipment();
+                this.changeOriginShipment(null, null);
             }
         },
-        changeOriginShipment: function(Event,key)
+        changeOriginShipment: function(Event, key)
         {
-            if(key)
-                this.originShipmentTitle = key
-            else
-                this.originShipmentTitle = $F('carriers_ups_origin_shipment');
+            this.originShipmentTitle = key ? key : $F('carriers_ups_origin_shipment');
             this.updateAllowedMethods(this.originShipmentTitle);
         }
-    }
+    };
     xml = new upsXml();
-//]]>
+    //]]>
 </script>
diff --git app/design/adminhtml/default/default/template/usa/dhl/unitofmeasure.phtml app/design/adminhtml/default/default/template/usa/dhl/unitofmeasure.phtml
new file mode 100644
index 0000000..29ed62f
--- /dev/null
+++ app/design/adminhtml/default/default/template/usa/dhl/unitofmeasure.phtml
@@ -0,0 +1,53 @@
+<?php
+/**
+ * Magento
+ *
+ * NOTICE OF LICENSE
+ *
+ * This source file is subject to the Open Software License (OSL 3.0)
+ * that is bundled with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://opensource.org/licenses/osl-3.0.php
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@magentocommerce.com so we can send you a copy immediately.
+ *
+ * DISCLAIMER
+ *
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
+ * versions in the future. If you wish to customize Magento for your
+ * needs please refer to http://www.magentocommerce.com for more information.
+ *
+ * @category    Mage
+ * @package     Mage_Usa
+ * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
+ * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
+ */
+?>
+<?php
+/**
+ * @var $this Mage_Usa_Block_Adminhtml_Dhl_Unitofmeasure
+ */
+?>
+<script type="text/javascript">
+    //<![CDATA[
+    function changeDimensions()
+    {
+        var dimensionUnit = '(<?php echo $this->getInch(); ?>)';
+        var dhlintUnitOfMeasureNote = '<?php echo $this->getDivideOrderWeightNoteLbp(); ?>';
+        if ($("carriers_dhlint_unit_of_measure").value == "K") {
+            dimensionUnit = '(<?php echo $this->getCm(); ?>)';
+            dhlintUnitOfMeasureNote = '<?php echo $this->getDivideOrderWeightNoteKg(); ?>';
+        }
+        $$('[for="carriers_dhlint_height"]')[0].innerHTML = '<?php echo $this->getHeight(); ?> ' + dimensionUnit;
+        $$('[for="carriers_dhlint_depth"]')[0].innerHTML = '<?php echo $this->getDepth(); ?> ' + dimensionUnit;
+        $$('[for="carriers_dhlint_width"]')[0].innerHTML = '<?php echo $this->getWidth(); ?> ' + dimensionUnit;
+
+        $('carriers_dhlint_divide_order_weight').next().down().innerHTML = dhlintUnitOfMeasureNote;
+    }
+    document.observe("dom:loaded", function() {
+        $("carriers_dhlint_unit_of_measure").observe("change", changeDimensions);
+        changeDimensions();
+    });
+    //]]>
+</script>
diff --git lib/Varien/Date.php lib/Varien/Date.php
index 621e9bb..bac2ed3 100644
--- lib/Varien/Date.php
+++ lib/Varien/Date.php
@@ -40,6 +40,9 @@ class Varien_Date
     const DATETIME_INTERNAL_FORMAT = 'yyyy-MM-dd HH:mm:ss';
     const DATE_INTERNAL_FORMAT = 'yyyy-MM-dd';
 
+    const DATETIME_PHP_FORMAT       = 'Y-m-d H:i:s';
+    const DATE_PHP_FORMAT           = 'Y-m-d';
+
     private static $_convertZendToStrftimeDate = array(
         'yyyy-MM-ddTHH:mm:ssZZZZ' => '%c',
         'EEEE' => '%A',
@@ -85,4 +88,16 @@ class Varien_Date
         }
         return $value;
     }
+
+    /**
+     * Retrieve current date in internal format
+     *
+     * @param boolean $withoutTime day only flag
+     * @return string
+     */
+    public static function now($withoutTime = false)
+    {
+        $format = $withoutTime ? self::DATE_PHP_FORMAT : self::DATETIME_PHP_FORMAT;
+        return date($format);
+    }
 }
\n\ No newline at end of filediff --git media/dhl/logo.jpg media/dhl/logo.jpg
new file mode 100644
index 0000000..4f80976
--- /dev/null
+++ media/dhl/logo.jpg
@@ -0,0 +1,29 @@
+ÿØÿà JFIF  H H  ÿÛ C 		
+ $.' ",#(7),01444'9=82<.342ÿÛ C			2!!22222222222222222222222222222222222222222222222222ÿÀ  vª" ÿÄ              ÿÄ E      QT‘Ñ!1ARUa’“¡á"Sq¢#24Br±3�”$bÁCðE²ñÿÄ             ÿÄ 8 
+     R!1Q‘¡ÑSáð2Aaq’"�±#BbÁ$3r‚ÿÚ   ? ë³&IDÇ’—–I%Œü­aÍ¡?óïþóãágžQ+€qÞ~gŠÚc’6-ŒþV°æÐÏåkmà"Ò&Æy•ÞmœÆ+Xshgòµ‡6�p"lg™LÛ8-ŒþV°æÐÏåkmàDØÏ2™¶p[ü­aÍ¡ŸÊÖÚ5Å6µkŸbz˜§û3m¿uKRoÊW=Ý‚hMDÎÉc�2¥†—<ì– ¯Yü­aÍ¡ŸÊÖÚ9§êÚXðýC†um,x~¢Î‹Y�©VuTœéyü­aÍ¡ŸÊÖÚ9§êÚXðýC†um,x~¡¢ÖcêSUIÀ.—ŸÊÖÚü­aÍ£špÎ­¥�Ô8gVÒÇ‡ê-f>¥5Tœéyü­aÍ¡ŸÊÖÚ9§êÚXðýC†um,x~¡¢ÖcêSUIÀ.—ŸÊÖÚü­aÍ£špÎ­¥�Ôz›iUIñ¦:¾h?ú0Ñk1õ)ª¤àJÏåkmþV°æÑJƒnZ‰cDù<¢þåËü‹K/µ!”ºË‰qµä¤�äb´¦¦/Œžj´´†/�«s?•¬9´3ùZÃ›F¸t‰±žeE›g±ŸÊÖÚü­aÍ£YJ$¤Ô£""+ÌÏ˜Qê6ÎQMq0}™GIÜ“Ro5v‰àÒf$1Ç™SCHf6` çòµ‡6†+Xshæœ3«icÃõÕ´±áú‹-f>¥XÕRp¥çòµ‡6†+Xshæœ3«icÃõlÚÚÔ‡�ËDÊœY’R’o”ö�¦«ßÔ¡ð·��]#?•¬9´3ùZÃ›F”d¼˜Í”…¥o]ïšJâ¿°d3"#3;ˆ¹LÅ<×¶YæU/k³ŸÊÖÚü­aÍ£ŸÔí”¢œâ {<Ý>êT¤Þjíœ3«icÃõ[MXEò�2®·Âä"ö¥çòµ‡6†+Xshæœ3«icÃõÕ´±áú�tZÌ}J÷UIÀ.—ŸÊÖÚü­aÍ£›5k«/º†š&VâÌ’”“|§´^â“éŠÙJZTýÞù¤®+ûŠˆm–ýÿ R š�3l°6­ìþV°æÐÏåkmËG]*Dd¡œ•Jsð¤øÉ%Îf*ü3«icÃõÅ\­Êk�¾åw‡ºVå4.—ŸÊÖÚü­aÍ£špÎ­¥�Ô8gVÒÇ‡ê$Ñk1õ*MU' º^+Xshgòµ‡6ŽiÃ:¶–<?Q¿G¯VªÓÓÉ ¸Ü_³ü)Þ<u=[AsŸ°}JñÞæ‚ç`¯™ü­aÍ¡ŸÊÖÚ5ÀQÒ&Æy•K6Îc?•¬9´3ùZÃ›F¸‘63Ì¦mœÆ+Xshgòµ‡6�p"lg™LÛ8-ŒþV°æÐÏåkmàDØÏ2™¶p[ü­aÍ¢ÌÉš˜lÌï3IŸömcòí~Âþï�È÷½ùD�Ê�k@ÁV§þ}ÿ Þc\lOüûÿ ¼Æ¸Â¨ÿ ¹ÿ sü«±ü  D»@ @ðé¸L¬ÚJTåÇ’J;ˆÏ´ÁzÕ×3ùœu¹t½ã/Ð�æ9ø´I²U™r\�óÑÔã‡”£Ë=Ãª�8ÝóÜ7iŸO2C…þkv™ôð³$8_æ«€,|
+ªtãwÏpp*©Ó�ß=ÂÆ— ¬iPâ
+¸ÇÀª§N7|÷ª�8ÝóÜ\‚iPâ
+¸ÇÀª§N7|÷ª�8ÝóÜ\‚iPâ
+¸ÇÀª§N7|÷š�.E&I1$ÐkRr‹!W•ßúC¦OÍšë•Ó'�æÍuÊÒ 2™‚ÊU—
+¤ˆ«Wûy
+É2?Ò®c/àWÆÍ=*]J*Qø�Ôm!Ìkã-rŠfÆZåÖÀE¡¬¦‘ÍG%ËÉ¤èíþÃæXÇ=Á­ÞWÍ1Ž{ƒ[¼¨k_\É#¦FWÿ YD|…ÑÞ)cÕ­N-KZ�JQÞfgÆf<K-…�¡}$¶„ 2™îÉPóVJ¡%>á}ÚOô§OÌÿ �[³Ña?;ÚÏ�Ël5qä8²,³æ/�¿ct¾°�âÌ¯™öÍ0ªÌ¯™öÍ0}Öø¨Úúç³AÓ#«ßQ}òˆù£ýÄ�ZÓB‰k‹!§äº„¡Dw“ì!Îœqn¸§Q©j35(ùLÄ4„»8ñ°((iIvqã`_  6–Ò 	û1CÄåûwÓþÕ“÷¯ýjèïõÉ#ci{·’66—;ä¦¬�7hª2Q÷«/ºIþ”éùŸñóŒöi°\”ñû©."çQó“4¶ƒRŒ’”•ægÄDCšÚ*ÑÕ¦ÜÙ™Ek‰²Óÿ !‰Y6S·{Ø±#c«&Êvï{té¯T&9%õ^µŸ'11× À ,ð  êõ}´Ó�¼†šA­ÅžJR\æ:u�Ý"4WË÷�^“Ñò!dhy³EQ’�¾p¾é'úS§æÇÌZ†}VYÍ·pX•õ9g6ÝÁ  g,Ô  D  D  DÖ?.×ì/àT…µ�Ëµûøþñ¿ìíÍU©ÿ Ÿ÷˜×ÿ >ÿ ï1®1j?îÜÿ *Ü @ .Ð  î+Ï�N×W=ƒgMŒ¿¼Y}ò‹ô§£ó?ãæ%†'JðÆ©a‰Ò¼1ª6·j¥;=H§¾mÇoÝ%'õžŸ–�Â:¾¼ç–áèYOZ’Ð²ž&´7$)NÕõç<·êúóž[„X³1á—Y˜ðŽJaŠírCèe™Ž­Å™RD\g°tˆéušKË%ºH"Zˆ®½Wq˜­Ù*hÁO�‹Ÿp¾í'ú§æÀ´JéçäÆ‚Ä­‘Ž~L`X-ZŒöi�\”ñû©.$ó¨ùˆ‡-›1éó’ú¯ZÎþÂ.b.ÁnµTÊ½Jb3v}¤T'Ý$¬‹Þç3#1ÁŠÎ¢®úw‹”"(Ù”\.~ªåŠ6eŸªˆ/ÁŠÎ¢®úw‡+:Š»éÞ/çâÄ9…{?!ÍD��¢]T��$ÊOÿ ¶á¡J²s]žŒýƒj:}å{Äf®Î#ô¥(I%$D’+ˆ‹�ˆg×UŒœÜg~õBº¬dæã;÷¬3%³#’_VKh+Ï·°»G.©Ô^ªN\—�—‰)æJyˆZm4ZÍVI2ÄEæ�»ï$²Õ§—`�àÅgQW};Â…±DÜ·8\ýw%b‰¹np¹úîQ %ø1YÔUßNðàÅgQW};Æ†~,C˜WóñbÔ@	~VuwÓ¼81YÔUßNðÏÅˆs	Ÿ‹æ¢ Kðb³¨«¾�áÁŠÎ¢®úw†~,C˜LüX‡5_ƒ�E]ôïVuwÓ¼3ñbÂgâÄ9¨€ü¬ê*ï§xpb³¨«¾�áŸ‹æ?!ÍiÓ)ïTç7’ãW•Ì”ó˜êPá³#q˜NKh+‹·´Äuž£&‘å‘—8ÜV�ø—ÈmÕ˜Ìœé
+÷RW‘dö�ú5]F~@Æ�žö¬zºŒü™;=íU»_\¸Ž™|gýuý;Å0L*ÍVÖµ-pÖ¥(ï35¦ó=£ÎVuwÓ¼iÀ`…�¡Ã˜Zp!`hpæ@	~VuwÓ¼81YÔUßNñ6~,C˜RçâÄ9¨�`²ôLJ^púÚ²|d­Z>ZF(öR¬ì„!ÈÆÒw)jRL’ZxŒt(qƒ¸Ì'%´ÅÛÚ)ÖV5¬ÉŒÜ•R²±­fLfä¬ü€ 0Ö  "  "  "  "k—köð*BÚÇåÚý…üÿ øßö
+�væ®_hê¶‚=¡šÔHn9.{Š(êUüEÎB/µ^çøª¶Žu£jÐÍD&¨äç¸dÑåv‘ˆÚÝU~ä`Ë?¥»ø¯¡�ƒ4ßÒÝÃçô^cv£«Üÿ A�ÚŽ¯süUq[ª¯À Ämnª¿ ‡9©rs^cv£«Üÿ A�ÚŽ¯süUq[ª¯À Ämnª¿ ƒ ag4ÈYÍy�ÚŽ¯süUÑ*–¢T¦Ù8†Ñ(î7Ž¢JKI™ŒX�­ÕWà³Ç}èTœâ¨òMÄ§-Ã$‘{
+î]â)H`øIáµE)kÀÒO«r®Š=?,Ì•!e’ÒOœôŸafë«yÕºê�KYÞ¥)˜Û«TÝ«O\‡8“ÈÚ:)æ!¢/ÒSY·yÞ¯ÒSˆY·yÞ€ -«h  Šy»aVm“q¥ÜW^¦øü‡ßêÚXðýEx,8B¯£C„+êÚXðýC†um,x~¢¼Í!4Xp…aá�[K¨Ù�i+•)ˆ�˜5«”ýŸKœÏŒAÓ)2ê¯û8íû¥øœ?ÂŸ™Ž‹H£G£ÆömSŠþ£†\j?ú.ÁN¨ÓÂ,•:£O°h.[è%JVRˆ¸Îë¯1\´–‘TÇ¡R?ÍEy$¹‹æ$«•véÓ¸Þ_ºÒœôüˆs]q÷Vëª5¸³5)GÎb½.pç6*½.på¼lSÜ3«icÃõÕ´±áúŠðM!jh°á
+ÃÃ:¶–<?Pá�[K¨¯	Ë5D:¬ßhêO5hï_ü�£¼q$4ñ´¹Í‰!§�¥Îh°W?&£6u<ÐIsúHJn;´ŸÌK�‰$DDDEÄDB>µVn‘O*å:¯u¤t•¸†	¼²~‘¿ä°�å“ô�ÿ %i-©jDh™
+’~òÍEy$·˜¯ðÎ­¥�ÔA>ó’[Î¨ÖâÌÔ¥9Œcv*(˜À.VäTQ1€8\«êÚXðýC†um,x~¢¼M!I¢Ã„+êÚXðýEªÏJ©Nˆr§	þ’R‹ŒËIŠuœ¢ª­7)Â2ŠÑ‘¸}/øŽ’”’RII$Šâ"æµÆ&M�ù¬Úã?¦Æ‹üÖ³�É/ªæÐWž“ì.ÑD]´ª)Å	”¤Ï‰9Ü_1½nŸsÚÄ�y“Y&»¹Œù<¿ìSÄÔTŒ1å¼^êj*VòÞ/uaá�[K¨pÎ­¥�ÔW€\ÑaÂÍ!XxgVÒÇ‡ê3«icÃõà!4Xp…aá�[K¨pÎ­¥�ÔW€4Xp„ÑaÂ‡†um,x~¡Ã:¶–<?Q^ ÑaÂE‡VÕ´±áúŒ‘­Un\–ã²L©Ç%%ìýEht)CÌcg²þáÔû¤eø¼Ä,‚e‹ü”,‚ed‹ü”ËÏ½œn¸…É}ãKH;Ö®Â.kÅLë– Ìî§¸E£5PÛ¨U-¦¹™BuÈîFSW™öñ�\FÖê«ðS†‘w›ñ*œ0ä‹¸4ß‰^cv£«Üÿ A�ÚŽ¯süUq[ª¯À Ämnª¿ „Ù9©²s^cv£«Üÿ A�ÚŽ¯süUq[ª¯À Ämnª¿ ƒ ag4ÈYÍy�ÚŽ¯süU¿OR×MŠ·JçÊEu×Åxä8�­ÕWàëÔóqTØªt®pÙA¬®»Žâ¼jxc@s¬ û,ohe€÷.khçZ6­ÔBajŽN{†MÞWix�­ÕWà¿Oüûÿ ¼Æ¸Ãš¥¢GØÞU˜ªZ#hÈ‚¤â6·U_€AˆÚÝU~°ô¦ùmRiMòÚ©8�­ÕWàb6·U_€Bì¥7ËjiMòÚ¡è*«¼ÚÞªEüHk ’3ö¤ª•Ê,hOœVÎóQ'ñ«OÈ…Àl¨É“8lŸ&Làh\³ªê÷ªê÷SkYÉ„+zÎL!rÌ«¨?Ü«¨?ÜLYÉ„&³“\³ªê÷ªê÷S Öra	¬äÂ,ÀjºƒýÁéP*Ê;Šÿ Ý7¤¬äÂšÎNsv,•]ó÷˜KE¥Å—ý^bv‰ŽÑ’æ¾§Œ¿B=Ôíå?!k•ó?`6û(¤¯™û/o²ÆËFi-2Ú[m<‰I\D>Ö¬„)WÜWÜEy˜ô+ÜÜªw¹¹\î¯µVž¹� ‘ÈÚ2
+F†UÔî¦E¾"ö€Ö´X-ø‹ÚCE‚å˜WP¸WP¸:˜uœ˜BëYÉ„.aÎU�†Ž#­’ŽãZÓq$´˜èÐ!3N†Üf
+ä ¹yÌùÌÆÈ
+ÕožÀì
+µE[ç°;ñG’“UÆwüEyŽ}Y�Z«ÏSê§ÈKeî¶ƒOáNñÐ€sO>dår¹§Ÿ2r€¹\³ªê÷ªê÷SoYÉ„+zÎL!rÌ«¨?ÜlÙÚ«Ï!³†ê	Gq­i¸“Úc¨ “€^“€Z´èÓa7‚÷R\gÎ£ç3@9Î.7+9Ä¸Ü¨êÅŠÄRiÓ4-{n*OþÈRåY
+¬u²mÌhQì;‡Eb
+¹anåf¹!nåËN�VIÜpþÉ¼y€Õuûƒ©€³¬äÂ�g' ¹fUÔîUÔî¦¬äÂºÎL!rÌ«¨?Ü«¨?ÜLYÉ„&³“\³ªê÷ªê÷S Öra	¬äÂÎY§Õ78¨0¦ÚhïJ_�[ˆM×gÕ™uÒâ8«Šõ»ìòˆûO ¬ú£$™oú|•gÕ$Ëx¿Óä©8�­ÕWàb6·U_€Bì½)¾[WZS|¶ªN#kuUø�­ÕWà» iMòÚšS|¶ªN#kuUø�­ÕWà» iMòÚšS|¶ªN#kuUø:õ<ÜU6*�+œ6Pk+®ã¸¯qmcòí~ÂþÏƒL$sìÐ7nY~'0‘­³@û*Ôÿ Ï¿ûÌk‹Õxì¼¦Ô‡MI;Žâ-ãã�Ðwaoå¢¦28™ÀÚ~^«†M hŠ þ7 îÂÞÜnƒ»x�A¥óÇ/Uîz\T 	ün7AÝ…¼1¸ÝvðÐi|ñËÕ3Òàê  Oãqºì-á�Æè;°·†ƒKçŽ^©ž—U �Ðwaon7AÝ…¼4_<rõLô¸:¨ øÜnƒ»xcqºì-á Òùã—ªg¥ÁÕ@ ŸÆãtØ[Ã�Ðwao—Ï½S=.ª þ7 îÂÞÜnƒ»xh4¾xåê™épuP 'ñ¸ÝvðÆãtØ[ÃA¥óÇ/TÏKƒª€?�Æè;°·ŒR-±ÖûÄêAe)FEÄ[@PR�‚qËÕz&”ì¨Pÿ ©v¥+ÂõôÛeLª’Î*$©(âR”ÝÅ~ŽQ+¼*‹ºküú©¤´]Ñ=ýx	
+}²¥ÔÜy¸Å ÔÕÙw ‹Oo`Ø•i©Ð˜SòMÆÛ.s"ßÆ8>N’gÛöõ\—Î’c7Pà$¶4Ç)ëœh’Üd–V[�’o.Î>1¡þ¥Ùþ”¯Ôvß
+…×´Û¿ÇÕtÝ%×´Gg¾ÀÐ­U6£ÛÅ7\nûŒòHŒ�A•â>OÚ$—qrh;•’ÝåÎñã|2Ñ6Ñþ>«Æš‡Ñ¸÷ÁaµÞÑ*2	†ÿ µWáJ›ºÿ —Ú¨ZÚe-‚zW¶JLòH‰$fgò¼†@’fÛÿ ŸT.¨É1ûú(°ÿ ©v¥+Âõqíe6Dô‰æãŸ[‰$ñiã1ë¼.mtÖÿ çÕzí%›]þÊ,�ý¦Ð^JJ[¼w^ÛEw™�–�jéÒ &i%öØ2ÊÊu$›‹Oƒ¼.ºk~Þ¨í!‚îˆ…#í2€ÂÍ))o\w^Ûew™�–ƒj Ô"¦K-I&ÕÉ–‚#?1ãü.§MaöõGš†§D@Q 'ñ¸ÝvðÆãtØ[Äz/ž9z¨³Òàê  Oãqºì-á�Æè;°·†ƒKçŽ^©ž—U �Ðwaon7AÝ…¼4_<rõLô¸:¨ øÜnƒ»xcqºì-á Òùã—ªg¥ÁÕ@ ŸÆãtØ[Ã�Ðwao—Ï½S=.ª þ7 îÂÞÜnƒ»xh4¾xåê™épuP 'ñ¸ÝvðÆãtØ[ÃA¥óÇ/TÏKƒª€?�Æè;°·†7 îÂÞ/ž9z¦z\T ¶±ùv¿aG�Ðwao(Q-	Yr(¯+Æ¯…SÅœc“+ö·ûUª^ç”Û,j“
+4©ö‰EÊF²âgqµ†»ä1¹NˆëŠZÚ½J;Ìò�xùÂ¡|©[Åâk/°6ßsÙ@3_2z,ÙÜma®ùwXk¾CàýJÞT/ƒõ+xòõ¼Ìö^Ú'¢Í�ÆÖï�gqµ†»ä0áP¾Ô­á…Bø?R·…ëx7™ì–‡‰è³gqµ†»äÜma®ù8T/ƒõ+xaP¾Ô­ázÞæ{%¡âz,ÙÜma®ùwXk¾CàýJÞT/ƒõ+x^·ƒyžÉhxž‹6wXk¾A�ÆÖï�Ã…Bø?R·†àýJÞ­àÞg²Z'¢Í�ÆÖï�gqµ†»ä0áP¾Ô­á…Bø?R·…ëx7™ì–‡‰è³gqµ†»äÜma®ù8T/ƒõ+xaP¾Ô­ázÞæ{%¡âz,ÙÜma®ùwXk¾CàýJÞT/ƒõ+x^·ƒyžÉhxž‹6wXk¾C�ZJô;Eh£.{q©Õ—%ã]Äñ—é#çÑ´ùˆIÚù-2¶ht–rª³8ˆÉg÷Hç3ãååþ×ž�#O°t(°fD&ä¼”ûî®ûÔ|çÊ5»^ìOe£N ¦hžKÜü;®?Ë²Û§Î³rH£ÁvÉ´ÉAºEÄ$Û~IÉmØèM÷Ü•$ˆD¿N³–r’e˜ŒŸâ2Q‘¨ô_yŸ`�nëZá*;.R¨§ÿ �Ìý¼‚ì¿�¿÷Œú�ë47™¿ð¡Å-ß”C8Ÿ{OÙUlM}t‡'¥¨®K›+ šlŽâ3#Uæ¥!q�¼@ ¢dÄÔí$ö&Ë.6ã’ËØ3ØEÎ?>QZû?�í=Z:�jm¤©(#3ä%Ü&­sè'Ù³ôvrªrø”¢YýÒ9Ìô^[�@‡þ@h¿R{-JÂTYÂ@¹ú[�È[}–­RkVÊÑ&”Ü”5E„¬©e’Iå1ýÏ@ÍkêtS¥à´ØñeÍzæÛC)I“]·—!ÝëÄ6˜û2¡¡¦ÉåIqÂ"ËQ9q(ùø®âsi¶rÈRšP’Œ’ÉO¾£[ŠæMæwî½³d¸‹\ñöUa=6[QÉÜ-kž'oÍWŸ˜Ýˆ²�R¢IiÊ´Ã5-iY[3¸�Wó\DD_#1½J�e¬Å®dyÒ×ï8m:·>bÐ\Å}ÃæÍÙj±Ý¬ZäãÒÏ-¶MJI4ŽnC¿“Êîqö{L‰2·W–ÛG™¶¬†j>"RŒË´Ìˆ‹häg@ÈÙ½O&aÑÉ”âKMÜE¶“°ðjÌÒÙf«.ÕUJ<ž[ŒÆ%{22ãQ–›¯+¹o3â!«±M´V�uŠÌÖ‡òaÄu\f}#/?�ÚÕY”Z›FTa F2Té	Q�æGøJýŸ?�³•Š³„DXS<ZM[Ç‘6r,@Øx�½ÔDÏ×-òœ,-oÒßÜï<ù­¨’èsš7c9	ÄÝ”D›¯ò³]‡T¶íÁª-MQ":m“i¼’£"2%*îc>}3Š63)eˆ©m´ò%*2"ó_´}%nÅ‹ŒºÓ®I*ó4Ýú¼®Ü=~‘ýá¶úÙCáÎ€ÎZ2¶‚Ù³ëê¯�a9šXk2Í�7“�iùr\9Í¥®Æ¨ÛiuÕ+„•¥¾E�Ü§w5÷aÍÎÇ§QbD}>ÑæÑrÕ–weÝÙyÜ*ŸhPhäÜxñXË­:âRÚ35äZ4úÒ?¼6ßsãý§‡˜EIh¹½À<?ËÕ]ã� ¡%¨ç5Rx�ƒNA—Ë�l"D6Ð”!æ„‘R•‚övÍµL Å‰)>Ñô$ÍÃ%Äffw5÷	L*Áú•¼{z¿�o3ÙgÊ! 8‘}ü~«6wXk¾A�ÆÖï�Ã…Bø?R·†àýJÞ­àÞg²ŽÐñ=lî6°×|ƒ;�¬5ß!‡
+…ð~¥o*Áú•¼/[Á¼Ïd´<OE›;�¬5ß ÎãkwÈaÂ¡|©[Ã
+…ð~¥oÖðo3Ù-ÑfÎãkwÈ3¸ÚÃ]òp¨_êVðÂ¡|©[Âõ¼ÌöKCÄôY³¸ÚÃ]òî6°×|†*Áú•¼0¨_êVð½oó=’Ðñ=lî6°×|ƒ;�¬5ß!‡
+…ð~¥o*Áú•¼/[Á¼Ïd´<OE›;�¬5ß ÎãkwÈaÂ¡|©[Ã
+…ð~¥oÖðo3Ù-ÑfÎãkwÈ3¸ÚÃ]òp¨_êVðÂ¡|©[Âõ¼ÌöKCÄôY³¸ÚÃ]òˆÈÈŒŽò>C!§…Bø?R·�´¤’’IÄEq	¡3Üç@ý¯þÂáùÛu¢ô	<¥¦s¨I�ä’¿‹Ì|a²zÅß=à#A�È<ÏuÐ�ãgú	†Éë|÷†'¬]óÞ <ÕôüäîëÜûý€˜lž±wÏxa²zÅß=à«éøÉÝÓ>ÿ `&'¬]óÞlž±wÏx jú~òwtÏ¿Ø	†Éë|÷†'¬]óÞ ¾Ÿ�ü�Ý3ïöa²zÅß=á†Éë|÷€¯§à'wLûý€˜lž±wÏxa²zÅß=à«éøÉÝÓ>ÿ `&'¬]óÞlž±wÏx jú~òwtÏ¿Ø	†Éë|÷�0Ù=bïžð ÕôüäîéŸ°eï³“~{“W]™œ¸fjp“r¶ßÈ6éö%Ø2Ó ë“^RHòRážI›²¸À¦–"-n§º�Þ#Rá’]³ì;/µX’“P)µ›Ó�GôÒò}ÖþEx˜Ã$—ÿ "ïžðÃ¨`q¹™î£}\Ï¶QÝô
+•b°™òf1SxÜ‘~Uè»”ïæ1÷M±Øté±'ž˜ùûï->õÚ
+ãÿ Ûˆ zh¡;Áæ{®�]PëÝÛþƒ²–Ãdõ‹¾{ÄMJÇ�ZlwæÔÞu¦ô°¤Þ›ôŸ äP@7Ì÷\2ªV´Øý‚‘‘G’ügYÄÞFZ9DGy^Wi”ÛªM-øPêÏ·í”j7	^D\\}€ÑC  ó=×­«™­ÉgØvQ¬ýš&6W°®Ìk(ïVAdßó¸Äµ2É½LC¹©n¸á]íff’ìã¸ vêXœ,Aæ{©â29×ý‡eßÙüæÝtÓjg¥¨Ô´ �&£>33<¾=‚J™bãRT§"ÉYHQ)õ&õ�ü¼w€IÅœ3Ýâ..è;(ÔØ	è�ó‰µ3ÒN™©d‚4š�´É\{�.ÅE¤ºoÇ’â¤«ñ>²½gýïâ ÒDñgÌ÷Gx…K…‹¶}‡e-†Éë|÷†'¬]óÞ #Õôüäîêûý€˜lž±wÏxa²zÅß=à«éøÉÝÓ>ÿ `&'¬]óÞlž±wÏx jú~òwtÏ¿Ø	†Éë|÷†'¬]óÞ ¾Ÿ�ü�Ý3ïöa²zÅß=á†Éë|÷€¯§à'wLûý€˜lž±wÏxa²zÅß=à«éøÉÝÓ>ÿ `&'¬]óÞlž±wÏx jú~òwtÏ¿Ø	†Éë|÷†'¬]óÞ ¾Ÿ�ü�Ý3ïöa²zÅß=á†Éë|÷€¯§à'wLûý€˜lž±wÏx‘BM(JLòŒŠã3ç CM$–ÿ R’¸|Ž~õÿÙ
\ No newline at end of file
