You are here

public static function USPSUtilities::services in Ubercart 8.4

Maps parcel shipment services to their IDs.

2 calls to USPSUtilities::services()
uc_usps_uc_shipping_method in shipping/uc_usps/uc_usps.module
Implements hook_uc_shipping_method().
USPSSettingsForm::buildForm in shipping/uc_usps/src/Form/USPSSettingsForm.php
Form constructor.

File

shipping/uc_usps/src/USPSUtilities.php, line 30

Class

USPSUtilities
Utility routines for USPS Shipping.

Namespace

Drupal\uc_usps

Code

public static function services() {
  return [
    'zeroFlat' => t('U.S.P.S. First-Class Mail Letter'),
    'zeroParcel' => t('U.S.P.S. First-Class Mail Parcel'),
    1 => t('U.S.P.S. Priority Mail'),
    28 => t('U.S.P.S. Priority Mail Small Flat-Rate Box'),
    17 => t('U.S.P.S. Priority Mail Regular/Medium Flat-Rate Box'),
    22 => t('U.S.P.S. Priority Mail Large Flat-Rate Box'),
    3 => t('U.S.P.S. Express Mail'),
    23 => t('U.S.P.S. Express Mail Sunday/Holiday Guarantee'),
    4 => t('U.S.P.S. Parcel Post'),
    5 => t('U.S.P.S. Bound Printed Matter'),
    6 => t('U.S.P.S. Media Mail'),
    7 => t('U.S.P.S. Library'),
  ];
}