<?php
/**
*@desc This model will map PWC shipping services with MSHShippingLibrary's shipping services
*/                                     
class Service_Mapper_model extends CI_Model
{
    function getFexExServices($ref=NULL)
    {   
        $services = $this->fedexServiceCodeList();

        $return = array();

        if(!empty($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
        	$return = $services;
        }

        return $return;
    }

    function getUPSServices($ref=NULL)
    {
        $services = array('01' => 'UPS Next Day Air&reg;',
                    '02' => 'UPS Second Day Air&reg;',
                    '03' => 'UPS Ground',
                    '07' => 'UPS Worldwide Express',
                    '08' => 'UPS Worldwide Expedited',
                    '11' => 'UPS Standard',
                    '12' => 'UPS Three-Day Select&lt;sup&gt;&reg;&lt;/sup&gt;',
                    '13' => 'UPS Next Day Air Saver&lt;sup&gt;&reg;&lt;/sup&gt;',
                    '14' => 'UPS Next Day Air&lt;sup&gt;&reg;&lt;/sup&gt; Early A.M.',
                    '54' => 'UPS Worldwide Express Plus',
                    '59' => 'UPS Second Day Air A.M.&lt;sup&gt;&reg;&lt;/sup&gt;',
                    '65' => 'UPS Saver',
                    '82' => 'UPS Today Standard',
                    '83' => 'UPS Today Dedicated Courier',
                    '84' => 'UPS Today Intercity',
                    '85' => 'UPS Today Express',
                    '86' => 'UPS Today Express Saver'); 
                                      
        $return = array();

        if(!empty($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
        	$return = $services;
        }
        
        return $return;
    }

    function getUSPSServices($ref=NULL)
    {
        $services = $this->uspsServiceList();

        $return = array();

        if(!empty($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
        	$return = $services;
        }

        return $return;
    }

    function getCanadaPostServices($ref=NULL)
    {
        $services = $this->canadaPostServiceList();
        $return = array();

        if(!empty($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
        	$return = $services;
        }

        return $return;
    }

    function getAustraliaPostServices($ref=NULL)
    {
        $services = array('01' => 'STANDARD',
                     '02' => 'EXPRESS',
                     '03' => 'AIR',
                     '04' => 'SEA');
        $return = array();

        if(!empty($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
        	$return = $services;
        }

        return $return;
    }
    function getEndiciaPostServices($ref=NULL)
    {
        $services = $this->endiciaPostServiceList();
        $return = array();
                                    
        if(is_array($ref))
        {
            foreach($ref as $key)
            {
                if(isset($services[$key]))
                {
                    $return[$key] = $services[$key];
                }
            }
        }else {
			//die('here else');
        	$return = $services;
        }
		//print_r($return);
        return $return;
    } 
    
    function fedexServiceCodeList()
    {
      return array('01' => 'FEDEX_GROUND',
                   '02' => 'GROUND_HOME_DELIVERY',
                   '03' => 'SMART_POST',
                   '04' => 'FEDEX_2_DAY',
                   '05' => 'FEDEX_EXPRESS_SAVER',
                   '06' => 'FEDEX_FREIGHT',
                   '07' => 'FEDEX_NATIONAL_FREIGHT',
                   '08' => 'FEDEX_1_DAY_FREIGHT',
                   '09' => 'FEDEX_2_DAY_FREIGHT',
                   '10' => 'FEDEX_3_DAY_FREIGHT',
                   '11' => 'FIRST_OVERNIGHT',
                   '12' => 'STANDARD_OVERNIGHT',
                   '13' => 'PRIORITY_OVERNIGHT',
                   '14' => 'INTERNATIONAL_ECONOMY',
                   '15' => 'INTERNATIONAL_ECONOMY_FREIGHT',
                   '16' => 'INTERNATIONAL_FIRST',
                   //'17' => 'INTERNATIONAL_GROUND',
                   '18' => 'INTERNATIONAL_PRIORITY',
                   '19' => 'INTERNATIONAL_PRIORITY_FREIGHT',
                   '20' => 'EUROPE_FIRST_INTERNATIONAL_PRIORITY',
                   '21' => 'PAYOR_ACCOUNT_PACKAGE');
    }
    
    function fedexServiceList()
    {
        return array(  '01' => 'FedEx Ground',
                        '02' => 'Ground Home Delivery',
                        '03' => 'Smart Post',
                        '04' => 'FedEx 2 Day',
                        '05' => 'FedEx Express Saver',
                        '06' => 'FedEx Freight',
                        '07' => 'FedEx National Freight',
                        '08' => 'FedEx 1 Day Freight',
                        '09' => 'FedEx 2 Day Freight',
                        '10' => 'FedEx 3 Day Freight',
                        '11' => 'First Overnight',
                        '12' => 'Standard Overnight',
                        '13' => 'Priority Overnight',
                        '14' => 'International Economy',
                        '15' => 'International Economy Freight',
                        '16' => 'International First',
                        //'17' => 'International Ground',
                        '18' => 'International Priority',
                        '19' => 'International Priority Freight',
                        '20' => 'Europe First International Priority');
    }
    
    function upsServiceList()
    {
       return array('14' => 'Next Day Air Early AM',
                    '01' => 'Next Day Air',
                    '13' => 'Next Day Air Saver',
                    '59' => '2nd Day Air AM',
                    '02' => '2nd Day Air',
                    '12' => '3 Day Select',
                    '03' => 'Ground',
                    '11' => 'Standard',
                    '07' => 'Worldwide Express',
                    '54' => 'Worldwide Express Plus',
                    '08' => 'Worldwide Expedited',
                    '65' => 'Saver',
                    '82' => 'UPS Today Standard',
                    '83' => 'UPS Today Dedicated Courier',
                    '84' => 'UPS Today Intercity',
                    '85' => 'UPS Today Express',
                    '86' => 'UPS Today Express Saver');
    }
    
    function uspsServiceList()
    {       
        return array(
        1 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Large Envelope',
        2 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Letter',
        3 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Parcel',
        4 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Postcards',
        5 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        6 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        7 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        8 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt;',
        9 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt;',
        10 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        11 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        12 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        13 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        14 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        15 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        16 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        17 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt;',
        18 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt;',
        19 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt;',
        20 => 'Standard Post&lt;sup&gt;&#174;&lt;/sup&gt;',
        21 => 'Media Mail Parcel',
        22 => 'Library Mail Parcel',
        23 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        24 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        25 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        26 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        27 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        28 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; Large Postcards',
        29 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        30 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        31 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        32 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        33 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        34 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box',
        35 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box',
        36 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box',
        37 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box',
        38 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box',
        39 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box',
        40 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box',
        41 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box',
        42 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box',
        43 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box',
        44 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery',
        45 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery',
        46 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery',
        47 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery',
        48 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery',
        49 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope',
        50 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope',
        51 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope',
        52 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope',
        53 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope',
        54 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        55 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        56 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        57 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        58 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        59 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box',
        60 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box',
        61 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box',
        62 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box',
        63 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box',
        64 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        65 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        66 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        67 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        68 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        69 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        70 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        71 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        72 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        73 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        74 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        75 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        76 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        77 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        78 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        79 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope',
        80 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope',
        81 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope',
        82 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope',
        83 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope',
        84 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        85 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        86 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        87 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        88 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Hold For Pickup',
        89 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box Hold For Pickup',
        90 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box Hold For Pickup',
        91 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box Hold For Pickup',
        92 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box Hold For Pickup',
        93 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Large Flat Rate Box Hold For Pickup',
        94 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box Hold For Pickup',
        95 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box Hold For Pickup',
        96 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box Hold For Pickup',
        97 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box Hold For Pickup',
        98 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Medium Flat Rate Box Hold For Pickup',
        99 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box Hold For Pickup',
        100 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box Hold For Pickup',
        101 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box Hold For Pickup',
        102 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box Hold For Pickup',
        103 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Box Hold For Pickup',
        104 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        105 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        106 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        107 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        108 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup',
        109 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        110 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        111 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        112 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        113 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        114 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope Hold For Pickup',
        115 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope Hold For Pickup',
        116 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope Hold For Pickup',
        117 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope Hold For Pickup',
        118 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Gift Card Flat Rate Envelope Hold For Pickup',
        119 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope',
        120 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope',
        121 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope',
        122 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope',
        123 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope',
        124 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope Hold For Pickup',
        125 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope Hold For Pickup',
        126 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope Hold For Pickup',
        127 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope Hold For Pickup',
        128 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Window Flat Rate Envelope Hold For Pickup',
        129 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope',
        130 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope',
        131 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope',
        132 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope',
        133 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope',
        134 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope Hold For Pickup',
        135 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope Hold For Pickup',
        136 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope Hold For Pickup',
        137 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope Hold For Pickup',
        138 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Small Flat Rate Envelope Hold For Pickup',
        139 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        140 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        141 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        142 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        143 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        144 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        145 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        146 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        147 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        148 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup',
        149 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        150 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        151 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        152 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        153 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        154 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A',
        155 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A',
        156 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A',
        157 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A',
        158 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A',
        159 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A Hold For Pickup',
        160 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A Hold For Pickup',
        161 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A Hold For Pickup',
        162 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A Hold For Pickup',
        163 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box A Hold For Pickup',
        164 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B',
        165 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B',
        166 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B',
        167 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B',
        168 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B',
        169 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B Hold For Pickup',
        170 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B Hold For Pickup',
        171 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B Hold For Pickup',
        172 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B Hold For Pickup',
        173 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box B Hold For Pickup',
        174 => 'First-Class&lt;sup&gt;&#8482;&lt;/sup&gt; Package Service Hold For Pickup',
        175 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        176 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        177 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        178 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        179 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        180 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup',
        181 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup',
        182 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup',
        183 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup',
        184 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup',
        185 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes',
        186 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes',
        187 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes',
        188 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes',
        189 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes',
        190 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C',
        191 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C',
        192 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C',
        193 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C',
        194 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C',
        195 => 'Priority Mail 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C Hold For Pickup',
        196 => 'Priority Mail 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C Hold For Pickup',
        197 => 'Priority Mail 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C Hold For Pickup',
        198 => 'Priority Mail Military&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C Hold For Pickup',
        199 => 'Priority Mail DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Regional Rate Box C ',
        200 => 'Hold For PickupFirst-Class&lt;sup&gt;&#8482;&lt;/sup&gt; Package Service',
        201 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        202 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        203 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        204 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        205 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope',
        206 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        207 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        208 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        209 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        210 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope Hold For Pickup',
        211 => 'Priority Mail Express 1-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Padded Flat Rate Envelope',
        212 => 'Priority Mail Express 2-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Padded Flat Rate Envelope',
        213 => 'Priority Mail Express 3-Day&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Padded Flat Rate Envelope',
        214 => 'Priority Mail Express Military&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Padded Flat Rate Envelope',
        215 => 'Priority Mail Express DPO&lt;sup&gt;&#8482;&lt;/sup&gt; Sunday/Holiday Delivery Padded Flat Rate Envelope',
        216 => 'Priority Mail Express International&lt;sup&gt;&#8482;&lt;/sup&gt;',
        217 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt;',
        218 => 'Global Express Guaranteed&lt;sup&gt;&#174;&lt;/sup&gt; (GXG)',
        219 => 'Global Express Guaranteed&lt;sup&gt;&#174;&lt;/sup&gt; Document',
        220 => 'Global Express Guaranteed&lt;sup&gt;&#174;&lt;/sup&gt; Non-Document Rectangular',
        221 => 'Global Express Guaranteed&lt;sup&gt;&#174;&lt;/sup&gt; Non-Document Non-Rectangular',
        222 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Flat Rate Envelope',
        223 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Medium Flat Rate Box',
        224 => 'Priority Mail Express International&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Envelope',
        225 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Large Flat Rate Box',
        226 => 'USPS GXG&lt;sup&gt;&#8482;&lt;/sup&gt; Envelopes',
        227 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; International Letter',
        228 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; International Large Envelope',
        229 => 'First-Class Package International Service&lt;sup&gt;&#8482;&lt;/sup&gt;',
        230 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Small Flat Rate Box',
        231 => 'Priority Mail Express International&lt;sup&gt;&#8482;&lt;/sup&gt; Legal Flat Rate Envelope',
        232 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Gift Card Flat Rate Envelope',
        233 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Window Flat Rate Envelope',
        234 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Small Flat Rate Envelope',
        235 => 'First-Class Mail&lt;sup&gt;&#174;&lt;/sup&gt; International Postcard',
        236 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Legal Flat Rate Envelope',
        237 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Padded Flat Rate Envelope',
        238 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; DVD Flat Rate priced box',
        239 => 'Priority Mail International&lt;sup&gt;&#174;&lt;/sup&gt; Large Video Flat Rate priced box',
        240 => 'Priority Mail Express International&lt;sup&gt;&#8482;&lt;/sup&gt; Flat Rate Boxes',
        241 => 'Priority Mail Express International&lt;sup&gt;&#8482;&lt;/sup&gt; Padded Flat Rate Envelope');
    }
    
    function canadaPostServiceList()
    {
        return array('01' => 'Priority Courier',
                     '02' => 'Xpresspost',
                     '03' => 'Expedited',
                     '04' => 'Regular',
                     '05' => 'Priority Worldwide USA',
                     '06' => 'Xpresspost USA',
                     '07' => 'Expedited US Business Contract',
                     '08' => 'Small Packets Air',
                     '09' => 'Small Packets Surface',
                     '10' => 'Priority Worldwide INTL',
                     '11' => 'XpressPost International',
                     '12' => 'Air Parcel',
                     '13' => 'Surface Parcel');
    }
    
    function australiaPostServiceList()
    {
       return array('01' => 'Standard Postage',
                    '02' => 'Express Postage',
                    '03' => 'Air Mail',
                    '04' => 'Sea Mail');
    }
    
    function endiciaPostServiceList()
    {
        return array('01' => 'First-Class Mail',
                     '02' => 'Priority Mail',
                     '03' => 'Express Mail',
                     '04' => 'Library Mail',
                     '05' => 'Media Mail',
                     '06' => 'Parcel Post',
                     '07' => 'Parcel Select',
                     '08' => 'Critical Mail',
                     '09' => 'Standard Mail',
                     '10' => 'Express Mail International',
                     '11' => 'First Class Package International Service',
                     '12' => 'Priority Mail International',
                     '13' => 'Lightweight',
                     '14' => 'Global Express Guaranteed',
                     '15' => 'Priority Mail Small Flat Rate Box',
                     '16' => 'Priority Mail Medium Flat Rate Box',
                     '17' => 'Priority Mail Large Flat Rate Box', 
                     '18' => 'Priority Mail Flat Rate Envelope',
                     '19' => 'Priority Mail Legal Flat Rate Envelope',
                     '20' => 'Priority Mail Padded Flat Rate Envelope');
    }
    
}
?>