You are here

function _uc_ups_service_list in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_ups/uc_ups.module \_uc_ups_service_list()
  2. 7.3 shipping/uc_ups/uc_ups.module \_uc_ups_service_list()

Convenience function to get UPS codes for their services.

5 calls to _uc_ups_service_list()
uc_ups_admin_settings in shipping/uc_ups/uc_ups.admin.inc
UPS Online Tool settings.
uc_ups_fulfill_order in shipping/uc_ups/uc_ups.ship.inc
Shipment creation callback.
uc_ups_shipment_request in shipping/uc_ups/uc_ups.ship.inc
Constructs an XML shipment request.
uc_ups_shipping_method in shipping/uc_ups/uc_ups.module
Implements hook_shipping_method().
uc_ups_shipping_quote in shipping/uc_ups/uc_ups.module
Construct an XML quote request.

File

shipping/uc_ups/uc_ups.module, line 854
Shipping quote module that interfaces with www.ups.com to get rates for small package shipments.

Code

function _uc_ups_service_list() {
  return array(
    // Domestic services
    '03' => t('UPS Ground'),
    '01' => t('UPS Next Day Air'),
    '13' => t('UPS Next Day Air Saver'),
    '14' => t('UPS Next Day Early A.M.'),
    '02' => t('UPS 2nd Day Air'),
    '59' => t('UPS 2nd Day Air A.M.'),
    '12' => t('UPS 3 Day Select'),
    // International services
    '11' => t('UPS Standard'),
    '07' => t('UPS Worldwide Express'),
    '08' => t('UPS Worldwide Expedited'),
    '54' => t('UPS Worldwide Express Plus'),
    '65' => t('UPS Worldwide Saver'),
  );
}