You are here

function _uc_fedex_services in FedEx Shipping 7

Same name and namespace in other branches
  1. 5 uc_fedex.module \_uc_fedex_services()
  2. 6 uc_fedex.module \_uc_fedex_services()

Convenience function to get FedEx codes for their services. This should probably be sucked out of the WSDL file, to be sure the options stay correct and up-to-date.

Return value

An array of human-friendly names for the different FedEx service codes

3 calls to _uc_fedex_services()
uc_fedex_admin_settings in ./uc_fedex.module
Default FedEx Web Services API settings.
uc_fedex_quote in ./uc_fedex.module
Callback for retrieving a FedEx shipping quote.
uc_fedex_shipping_method in ./uc_fedex.module
Implementation of Ubercart's hook_shipping_method().

File

./uc_fedex.module, line 952
FedEx Web Services Rate / Available Services Quote

Code

function _uc_fedex_services() {
  return array(
    'FEDEX_GROUND' => t('FedEx Ground'),
    'GROUND_HOME_DELIVERY' => t('FedEx Home Delivery'),
    'STANDARD_OVERNIGHT' => t('FedEx Standard Overnight'),
    'PRIORITY_OVERNIGHT' => t('FedEx Priority Overnight'),
    'FIRST_OVERNIGHT' => t('FedEx First Overnight'),
    'FEDEX_2_DAY' => t('FedEx 2nd Day'),
    'FEDEX_EXPRESS_SAVER' => t('FedEx Express Saver'),
    'FEDEX_1_DAY_FREIGHT' => t('FedEx 1-Day Freight'),
    'FEDEX_2_DAY_FREIGHT' => t('FedEx 2-Day Freight'),
    'FEDEX_3_DAY_FREIGHT' => t('FedEx 3-Day Freight'),
    'EUROPE_FIRST_INTERNATIONAL_PRIORITY' => t('FedEx Europe First International Priority'),
    'INTERNATIONAL_ECONOMY' => t('FedEx International Economy'),
    'INTERNATIONAL_ECONOMY_FREIGHT' => t('FedEx International Economy Freight'),
    'INTERNATIONAL_ECONOMY_DISTRIBUTION' => t('FedEx International Economy Distribution'),
    'INTERNATIONAL_PRIORITY' => t('FedEx International Priority'),
    'INTERNATIONAL_PRIORITY_FREIGHT' => t('FedEx International Priority Freight'),
    'INTERNATIONAL_PRIORITY_DISTRIBUTION' => t('FedEx International Priority Distribution'),
    'INTERNATIONAL_FIRST' => t('FedEx International First'),
    'INTERNATIONAL_DISTRIBUTION_FREIGHT' => t('FedEx International Distribution Freight'),
  );
}