当前位置: 首页>>代码示例>>C#>>正文


C# IOrderTotalCalculationService类代码示例

本文整理汇总了C#中IOrderTotalCalculationService的典型用法代码示例。如果您正苦于以下问题:C# IOrderTotalCalculationService类的具体用法?C# IOrderTotalCalculationService怎么用?C# IOrderTotalCalculationService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IOrderTotalCalculationService类属于命名空间,在下文中一共展示了IOrderTotalCalculationService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GoogleCheckoutPaymentProcessor

 public GoogleCheckoutPaymentProcessor(ISettingService settingService, 
     IWebHelper webHelper, ITaxService taxService,
     IShippingService shippingService, 
     IOrderTotalCalculationService orderTotalCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPriceCalculationService priceCalculationService, IWorkContext workContext,
     ICustomerService customerService, IGenericAttributeService genericAttributeService, 
     ICountryService countryService,
     IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService,
     IOrderService orderService, ILogger logger, HttpContextBase httpContext)
 {
     this._settingService = settingService;
     this._webHelper = webHelper;
     this._taxService = taxService;
     this._shippingService = shippingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._priceCalculationService = priceCalculationService;
     this._workContext = workContext;
     this._customerService = customerService;
     this._genericAttributeService = genericAttributeService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderProcessingService = orderProcessingService;
     this._orderService = orderService;
     this._logger = logger;
     this._httpContext = httpContext;
 }
开发者ID:nopmcs,项目名称:mycreativestudio,代码行数:28,代码来源:GoogleCheckoutPaymentProcessor.cs

示例2: CalculateAdditionalFee

        /// <summary>
        /// Calculate payment method fee
        /// </summary>
        /// <param name="paymentMethod">Payment method</param>
        /// <param name="orderTotalCalculationService">Order total calculation service</param>
        /// <param name="cart">Shopping cart</param>
        /// <param name="fee">Fee value</param>
        /// <param name="usePercentage">Is fee amount specified as percentage or fixed value?</param>
        /// <returns>Result</returns>
        public static decimal CalculateAdditionalFee(this IPaymentMethod paymentMethod,
			IOrderTotalCalculationService orderTotalCalculationService, 
			IList<OrganizedShoppingCartItem> cart,
            decimal fee, 
			bool usePercentage)
        {
            if (paymentMethod == null)
                throw new ArgumentNullException("paymentMethod");

            if (fee == decimal.Zero)
                return fee;

            var result = decimal.Zero;
            if (usePercentage)
            {
                //percentage
                var orderTotalWithoutPaymentFee = orderTotalCalculationService.GetShoppingCartTotal(cart, usePaymentMethodAdditionalFee: false);
                result = (decimal)((((float)orderTotalWithoutPaymentFee) * ((float)fee)) / 100f);
            }
            else
            {
                //fixed value
                result = fee;
            }
            return result;
        }
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:35,代码来源:PaymentExtentions.cs

示例3: ManualPaymentProcessor

 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._manualPaymentSettings = manualPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:7,代码来源:ManualPaymentProcessor.cs

示例4: CheckoutController

        public CheckoutController(IWorkContext workContext,
            IShoppingCartService shoppingCartService, ILocalizationService localizationService,
            ITaxService taxService, ICurrencyService currencyService,
            IPriceFormatter priceFormatter, IOrderProcessingService orderProcessingService,
            ICustomerService customerService,  ICountryService countryService,
            IStateProvinceService stateProvinceService, IShippingService shippingService,
            IPaymentService paymentService, IOrderTotalCalculationService orderTotalCalculationService,
            ILogger logger, IOrderService orderService, IWebHelper webHelper,
            OrderSettings orderSettings, RewardPointsSettings rewardPointsSettings,
            PaymentSettings paymentSettings)
        {
            this._workContext = workContext;
            this._shoppingCartService = shoppingCartService;
            this._localizationService = localizationService;
            this._taxService = taxService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._orderProcessingService = orderProcessingService;
            this._customerService = customerService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._shippingService = shippingService;
            this._paymentService = paymentService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._logger = logger;
            this._orderService = orderService;
            this._webHelper = webHelper;

            this._orderSettings = orderSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._paymentSettings = paymentSettings;
        }
开发者ID:cmcginn,项目名称:StoreFront,代码行数:32,代码来源:CheckoutController.cs

示例5: PurchaseOrderPaymentProcessor

 public PurchaseOrderPaymentProcessor(PurchaseOrderPaymentSettings purchaseOrderPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._purchaseOrderPaymentSettings = purchaseOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
开发者ID:vic0626,项目名称:nas-merk,代码行数:7,代码来源:PurchaseOrderPaymentProcessor.cs

示例6: CashOnDeliveryPaymentProcessor

 public CashOnDeliveryPaymentProcessor(CashOnDeliveryPaymentSettings cashOnDeliveryPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._cashOnDeliveryPaymentSettings = cashOnDeliveryPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
开发者ID:vic0626,项目名称:nas-merk,代码行数:7,代码来源:CashOnDeliveryPaymentProcessor.cs

示例7: PaymentSagePayServerController

        public PaymentSagePayServerController(ISettingService settingService, 
            IPaymentService paymentService, IOrderService orderService, 
            IOrderProcessingService orderProcessingService,
            ILogger logger, SagePayServerPaymentSettings sagePayServerPaymentSettings,
            PaymentSettings paymentSettings, ILocalizationService localizationService,
            IWorkContext workContext, ISagePayServerTransactionService sagePayServerTransactionService,
            IOrderTotalCalculationService orderTotalCalculationService, ICurrencyService currencyService, CurrencySettings currencySettings,
            IMobileDeviceHelper mobileDeviceHelper, OrderSettings orderSettings, HttpContextBase httpContext)
        {
            this._settingService = settingService;
            this._paymentService = paymentService;
            this._orderService = orderService;
            this._orderProcessingService = orderProcessingService;
            this._localizationService = localizationService;
            this._sagePayServerTransactionService = sagePayServerTransactionService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._currencyService = currencyService;

            this._sagePayServerPaymentSettings = sagePayServerPaymentSettings;
            this._paymentSettings = paymentSettings;
            this._currencySettings = currencySettings;
            this._orderSettings = orderSettings;

            this._logger = logger;

            this._workContext = workContext;

            this._httpContext = httpContext;

            this._mobileDeviceHelper = mobileDeviceHelper;
        }
开发者ID:philipengland,项目名称:albionextrusions.co.uk,代码行数:31,代码来源:PaymentSagePayServerController.cs

示例8: PayPalExpressController

        public PayPalExpressController(
			IPaymentService paymentService, IOrderService orderService,
			IOrderProcessingService orderProcessingService,
			ILogger logger, 
			PaymentSettings paymentSettings, ILocalizationService localizationService,
			OrderSettings orderSettings,
			ICurrencyService currencyService, CurrencySettings currencySettings,
			IOrderTotalCalculationService orderTotalCalculationService, ICustomerService customerService,
			IGenericAttributeService genericAttributeService,
            IComponentContext ctx, ICommonServices services,
            IStoreService storeService)
        {
            _paymentService = paymentService;
            _orderService = orderService;
            _orderProcessingService = orderProcessingService;
            _logger = logger;
            _paymentSettings = paymentSettings;
            _localizationService = localizationService;
            _orderSettings = orderSettings;
            _currencyService = currencyService;
            _currencySettings = currencySettings;
            _orderTotalCalculationService = orderTotalCalculationService;
            _customerService = customerService;
            _genericAttributeService = genericAttributeService;
            _services = services;
            _storeService = storeService;

            _helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");

            T = NullLocalizer.Instance;
        }
开发者ID:omidghorbani,项目名称:SmartStoreNET,代码行数:31,代码来源:PayPalExpressController.cs

示例9: CheckMoneyOrderPaymentProcessor

 public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
开发者ID:haithemChkel,项目名称:nopCommerce_33,代码行数:7,代码来源:CheckMoneyOrderPaymentProcessor.cs

示例10: BPayPaymentProcessor

 public BPayPaymentProcessor(BPayPaymentSettings bPayPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, IOrderService orderService)
 {
     this._bPayPaymentSettings = bPayPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._orderService = orderService;
 }
开发者ID:A5hpat,项目名称:Nop.Plugin.Payments.BPay,代码行数:8,代码来源:BPayPaymentProcessor.cs

示例11: PayPalStandardProvider

        public PayPalStandardProvider(
			IOrderTotalCalculationService orderTotalCalculationService,
            ICommonServices services, 
            ILogger logger)
        {
            _orderTotalCalculationService = orderTotalCalculationService;
            _services = services;
            _logger = logger;
        }
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:9,代码来源:PayPalStandardProvider.cs

示例12: PaymentPayMillController

 public PaymentPayMillController(ISettingService settingService, 
     ILocalizationService localizationService, PayMillPaymentSettings PayMillPaymentSettings, IWorkContext WorkContext, IOrderTotalCalculationService OrderTotalCalculationService)
 {
     this._settingService = settingService;
     this._localizationService = localizationService;
     this._PayMillPaymentSettings = PayMillPaymentSettings;
     this._workContext = WorkContext;
     this._orderTotalCalculationService = OrderTotalCalculationService;
 }
开发者ID:emretiryaki,项目名称:paymill-nopcommerce,代码行数:9,代码来源:PaymentPayMillController.cs

示例13: Plugin

		public Plugin(
			IAmazonPayService apiService,
			IOrderTotalCalculationService orderTotalCalculationService,
			ICommonServices services)
		{
			_apiService = apiService;
			_orderTotalCalculationService = orderTotalCalculationService;
			_services = services;
		}
开发者ID:boatengfrankenstein,项目名称:SmartStoreNET,代码行数:9,代码来源:Plugin.cs

示例14: OrderController

 public OrderController(IOrderService orderService, 
     IShipmentService shipmentService, 
     IWorkContext workContext,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IOrderProcessingService orderProcessingService, 
     IDateTimeHelper dateTimeHelper,
     IPaymentService paymentService, 
     ILocalizationService localizationService,
     IPdfService pdfService, 
     IShippingService shippingService,
     ICountryService countryService, 
     IProductAttributeParser productAttributeParser,
     IWebHelper webHelper,
     IDownloadService downloadService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IStoreContext storeContext,
     IOrderTotalCalculationService orderTotalCalculationService,
     IRewardPointsService rewardPointsService,
     IGiftCardService giftCardService,
     CatalogSettings catalogSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     ShippingSettings shippingSettings, 
     AddressSettings addressSettings,
     RewardPointsSettings rewardPointsSettings,
     PdfSettings pdfSettings)
 {
     this._orderService = orderService;
     this._shipmentService = shipmentService;
     this._workContext = workContext;
     this._currencyService = currencyService;
     this._priceFormatter = priceFormatter;
     this._orderProcessingService = orderProcessingService;
     this._dateTimeHelper = dateTimeHelper;
     this._paymentService = paymentService;
     this._localizationService = localizationService;
     this._pdfService = pdfService;
     this._shippingService = shippingService;
     this._countryService = countryService;
     this._productAttributeParser = productAttributeParser;
     this._webHelper = webHelper;
     this._downloadService = downloadService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._storeContext = storeContext;
     this._rewardPointsService = rewardPointsService;
     this._giftCardService = giftCardService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._catalogSettings = catalogSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._shippingSettings = shippingSettings;
     this._addressSettings = addressSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._pdfSettings = pdfSettings;
 }
开发者ID:powareverb,项目名称:grandnode,代码行数:56,代码来源:OrderController.cs

示例15: DirectDebitPaymentProcessor

        public DirectDebitPaymentProcessor(DirectDebitPaymentSettings directDebitPaymentSettings,
            ISettingService settingService,
			IOrderTotalCalculationService orderTotalCalculationService,
            ILocalizationService localizationService)
        {
            this._directDebitPaymentSettings = directDebitPaymentSettings;
            this._settingService = settingService;
			this._orderTotalCalculationService = orderTotalCalculationService;
            this._localizationService = localizationService;
        }
开发者ID:GloriousOnion,项目名称:SmartStoreNET,代码行数:10,代码来源:DirectDebitPaymentProcessor.cs


注:本文中的IOrderTotalCalculationService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。