/// <summary> /// Adds a line item to the customer item cache /// </summary> /// <param name="productVariant"> /// The product Variant. /// </param> /// <param name="name"> /// The name. /// </param> /// <param name="quantity"> /// The quantity. /// </param> /// <param name="extendedData"> /// The extended Data. /// </param> public void AddItem(IProductVariant productVariant, string name, int quantity, ExtendedDataCollection extendedData) { AddItem(productVariant.ToProductVariantDisplay(), name, quantity, extendedData); }
/// <summary> /// Calculates taxes for a product variant. /// </summary> /// <param name="context"> /// The <see cref="ITaxationContext"/>. /// </param> /// <param name="productVariant"> /// The <see cref="IProductVariant"/>. /// </param> /// <returns> /// The <see cref="ITaxCalculationResult"/>. /// </returns> public static IProductTaxCalculationResult CalculateTaxesForProduct(this ITaxationContext context, IProductVariant productVariant) { return context.CalculateTaxesForProduct(productVariant.ToProductVariantDisplay()); }
/// <summary> /// Calculates taxes for a product variant. /// </summary> /// <param name="context"> /// The <see cref="ITaxationContext"/>. /// </param> /// <param name="productVariant"> /// The <see cref="IProductVariant"/>. /// </param> /// <returns> /// The <see cref="ITaxCalculationResult"/>. /// </returns> public static IProductTaxCalculationResult CalculateTaxesForProduct(this ITaxationContext context, IProductVariant productVariant) { return(context.CalculateTaxesForProduct(productVariant.ToProductVariantDisplay())); }