コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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());
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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()));
 }