Class FlatRateTaxProvider
- Namespace
- Dynamicweb.Ecommerce.Products.Taxes.TaxProviders
- Assembly
- Dynamicweb.Ecommerce.dll
Flat rate tax provider
[AddInName("Flat rate tax provider")]
public class FlatRateTaxProvider : TaxProvider, IParameterOptions
- Inheritance
-
FlatRateTaxProvider
- Implements
- Inherited Members
Fields
AmountType
public TaxAmountType AmountType
Field Value
Properties
Amount
[AddInParameter("Amount")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=NewUIinput; Explanation=If 'Fixed' is selected, the currency of the fixed amount is the default currency set for products")]
public double Amount { get; set; }
Property Value
AmountTypeSelection
[AddInParameter("Amount type")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=false;NewGUI=true")]
public string AmountTypeSelection { get; set; }
Property Value
CalculateVat
[AddInParameter("Add VAT to taxes")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool CalculateVat { get; set; }
Property Value
IncludedProductGroups
[AddInParameter("Product groups")]
[AddInParameterEditor(typeof(ProductGroupParameterEditor), "Multiple=true")]
public string? IncludedProductGroups { get; set; }
Property Value
IncludedProducts
[AddInParameter("Products")]
[AddInParameterEditor(typeof(ProductSelectorParameterEditor), "Multiple=true")]
public string? IncludedProducts { get; set; }
Property Value
Methods
AddTaxOrderLinesToOrder(Order)
Adds taxes for a order.
public override void AddTaxOrderLinesToOrder(Order order)
Parameters
orderOrderThe order.
AddTaxesToProducts(IEnumerable<Product>)
Adds taxes for given products.
public override void AddTaxesToProducts(IEnumerable<Product> products)
Parameters
productsIEnumerable<Product>The products.