Beispiel #1
0
        private static string GetPackagingTypeCode(UpsPackagingType packagingType)
        {
            switch (packagingType)
            {
            case UpsPackagingType.Letter:
                return("01");

            case UpsPackagingType.CustomerSuppliedPackage:
                return("02");

            case UpsPackagingType.Tube:
                return("03");

            case UpsPackagingType.PAK:
                return("04");

            case UpsPackagingType.ExpressBox:
                return("21");

            case UpsPackagingType._10KgBox:
                return("25");

            case UpsPackagingType._25KgBox:
                return("24");

            default:
                return(string.Empty);
            }
        }
Beispiel #2
0
 private static string GetPackagingTypeCode(UpsPackagingType packagingType)
 {
     switch (packagingType)
     {
         case UpsPackagingType.Letter:
             return "01";
         case UpsPackagingType.CustomerSuppliedPackage:
             return "02";
         case UpsPackagingType.Tube:
             return "03";
         case UpsPackagingType.PAK:
             return "04";
         case UpsPackagingType.ExpressBox:
             return "21";
         case UpsPackagingType._10KgBox:
             return "25";
         case UpsPackagingType._25KgBox:
             return "24";
         default:
             return string.Empty;
     }
 }