You are here

public static function USPSUtilities::internationalServices in Ubercart 8.4

Maps international parcel services to their IDs.

2 calls to USPSUtilities::internationalServices()
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 66

Class

USPSUtilities
Utility routines for USPS Shipping.

Namespace

Drupal\uc_usps

Code

public static function internationalServices() {
  return [
    15 => t('First Class Mail International Package'),
    2 => t('Priority Mail International'),
    16 => t('Priority Mail International Small Flat-Rate Box'),
    9 => t('Priority Mail International Regular/Medium Flat-Rate Box'),
    11 => t('Priority Mail International Large Flat-Rate Box'),
    4 => t('Global Express Guaranteed'),
    6 => t('Global Express Guaranteed Non-Document Rectangular'),
    7 => t('Global Express Guaranteed Non-Document Non-Rectangular'),
    1 => t('Express Mail International (EMS)'),
  ];
}