本文整理汇总了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;
}
示例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;
}
示例3: ManualPaymentProcessor
public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
{
this._manualPaymentSettings = manualPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
}
示例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;
}
示例5: PurchaseOrderPaymentProcessor
public PurchaseOrderPaymentProcessor(PurchaseOrderPaymentSettings purchaseOrderPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
{
this._purchaseOrderPaymentSettings = purchaseOrderPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
}
示例6: CashOnDeliveryPaymentProcessor
public CashOnDeliveryPaymentProcessor(CashOnDeliveryPaymentSettings cashOnDeliveryPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
{
this._cashOnDeliveryPaymentSettings = cashOnDeliveryPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
}
示例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;
}
示例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;
}
示例9: CheckMoneyOrderPaymentProcessor
public CheckMoneyOrderPaymentProcessor(CheckMoneyOrderPaymentSettings checkMoneyOrderPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
{
this._checkMoneyOrderPaymentSettings = checkMoneyOrderPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
}
示例10: BPayPaymentProcessor
public BPayPaymentProcessor(BPayPaymentSettings bPayPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService, IOrderService orderService)
{
this._bPayPaymentSettings = bPayPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
this._orderService = orderService;
}
示例11: PayPalStandardProvider
public PayPalStandardProvider(
IOrderTotalCalculationService orderTotalCalculationService,
ICommonServices services,
ILogger logger)
{
_orderTotalCalculationService = orderTotalCalculationService;
_services = services;
_logger = logger;
}
示例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;
}
示例13: Plugin
public Plugin(
IAmazonPayService apiService,
IOrderTotalCalculationService orderTotalCalculationService,
ICommonServices services)
{
_apiService = apiService;
_orderTotalCalculationService = orderTotalCalculationService;
_services = services;
}
示例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;
}
示例15: DirectDebitPaymentProcessor
public DirectDebitPaymentProcessor(DirectDebitPaymentSettings directDebitPaymentSettings,
ISettingService settingService,
IOrderTotalCalculationService orderTotalCalculationService,
ILocalizationService localizationService)
{
this._directDebitPaymentSettings = directDebitPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
this._localizationService = localizationService;
}