You are here

function _uc_fedex_express_services in FedEx Shipping 7.2

Same name and namespace in other branches
  1. 6.2 uc_fedex.module \_uc_fedex_express_services()

Convenience function to get FedEx codes for their Express services.

This should probably be sucked out of the WSDL file, to be sure the options stay correct and up-to-date.

Return value

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

4 calls to _uc_fedex_express_services()
uc_fedex_admin_settings in ./uc_fedex.admin.inc
Default FedEx Web Services API settings.
uc_fedex_fulfill_order in ./uc_fedex.ship.inc
Shipment creation callback.
uc_fedex_quote in ./uc_fedex.module
Callback for retrieving a FedEx shipping quote.
uc_fedex_uc_shipping_method in ./uc_fedex.module
Implements Ubercart's hook_uc_shipping_method().

File

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

Code

function _uc_fedex_express_services() {
  return array(
    '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'),
    'EUROPE_FIRST_INTERNATIONAL_PRIORITY' => t('FedEx Europe First International Priority'),
    'INTERNATIONAL_ECONOMY' => t('FedEx International Economy'),
    'INTERNATIONAL_ECONOMY_DISTRIBUTION' => t('FedEx International Economy Distribution'),
    'INTERNATIONAL_PRIORITY' => t('FedEx International Priority'),
    'INTERNATIONAL_PRIORITY_DISTRIBUTION' => t('FedEx International Priority Distribution'),
    'INTERNATIONAL_FIRST' => t('FedEx International First'),
  );
}