Ejemplo n.º 1
0
        public FedexComputationMethod(IMeasureService measureService,
                                      IShippingService shippingService,
                                      FedexSettings fedexSettings,
                                      IOrderTotalCalculationService orderTotalCalculationService,
                                      ICurrencyService currencyService,
                                      ILogger logger,
                                      ICommonServices services)
        {
            this._measureService  = measureService;
            this._shippingService = shippingService;
            this._fedexSettings   = fedexSettings;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._currencyService = currencyService;
            this._logger          = logger;
            this._services        = services;

            T = NullLocalizer.Instance;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new FedexSettings()
            {
                Url                  = "https://gatewaybeta.fedex.com:443/web-services/rate",
                DropoffType          = SmartStore.Fedex.DropoffType.BusinessServiceCenter,
                Street               = "Sender Address Line 1",
                City                 = "Memphis",
                StateOrProvinceCode  = "TN",
                PostalCode           = "38115",
                CountryCode          = "US",
                PackingPackageVolume = 5184
            };

            _services.Settings.SaveSetting(settings);

            _services.Localization.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }
Ejemplo n.º 3
0
 public FedexShipmentTracker(ILogger logger, FedexSettings fedexSettings)
 {
     this._logger        = logger;
     this._fedexSettings = fedexSettings;
 }