コード例 #1
0
 public RateRequest(FedExGlobalServiceSettings globalSettings, MerchantTribe.Web.Logging.ILogger logger)
 {
     RequestHeader = new Header();
     ReturnType = ReturnShipmentIndicatorType.NONRETURN;
     ShipDate = DateTime.Now.AddHours(4);
     globals = globalSettings;
     _logger = logger;
     Service = ServiceType.FEDEXGROUND;
     Packaging = PackageType.YOURPACKAGING;
     WeightUnits = WeightType.LBS;
     OriginAddress = new Address();
     DestinationAddress = new Address();
     Dimensions = new DimensionsBlock();
     this.ContainsAlcohol = false;
     this.SpecialServices = new RateSpecialServices();
     this.PackageCount = 0;
 }
コード例 #2
0
 public RateRequest(FedExGlobalServiceSettings globalSettings, MerchantTribe.Web.Logging.ILogger logger)
 {
     RequestHeader        = new Header();
     ReturnType           = ReturnShipmentIndicatorType.NONRETURN;
     ShipDate             = DateTime.Now.AddHours(4);
     globals              = globalSettings;
     _logger              = logger;
     Service              = ServiceType.FEDEXGROUND;
     Packaging            = PackageType.YOURPACKAGING;
     WeightUnits          = WeightType.LBS;
     OriginAddress        = new Address();
     DestinationAddress   = new Address();
     Dimensions           = new DimensionsBlock();
     this.ContainsAlcohol = false;
     this.SpecialServices = new RateSpecialServices();
     this.PackageCount    = 0;
 }