Class CatalogTaxManager

Implements operations for the tax manager.

Inheritance
System.Object
CatalogTaxManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class CatalogTaxManager

Methods

CreateTaxCategory(String, Boolean)

Creates tax category with the specified name.

Declaration
public static CatalogTaxDto CreateTaxCategory(string name, bool updateExisting)
Parameters
Type Name Description
System.String name
System.Boolean updateExisting

If true and tax category with the specified name already exists, it will be updated. Otherwise, a new category will be created.

Returns
Type Description
CatalogTaxDto

GetTaxCategories()

Gets the taxes.

Declaration
public static CatalogTaxDto GetTaxCategories()
Returns
Type Description
CatalogTaxDto

GetTaxCategories(Boolean)

Declaration
public static CatalogTaxDto GetTaxCategories(bool useCache)
Parameters
Type Name Description
System.Boolean useCache
Returns
Type Description
CatalogTaxDto

GetTaxCategoryByName(String)

Gets the tax category by name.

Declaration
public static CatalogTaxDto GetTaxCategoryByName(string taxCategoryName)
Parameters
Type Name Description
System.String taxCategoryName
Returns
Type Description
CatalogTaxDto

GetTaxCategoryByTaxCategoryId(Int32)

Gets the tax category by id.

Declaration
public static CatalogTaxDto GetTaxCategoryByTaxCategoryId(int taxCategoryId)
Parameters
Type Name Description
System.Int32 taxCategoryId
Returns
Type Description
CatalogTaxDto

GetTaxCategoryIdByName(String)

Gets the tax category id by name.

Declaration
[Obsolete("The tax category name is not unique, and this method will return the first match without any explicit ordering. Avoid use. Will remain at least until November 2016.")]
public static int GetTaxCategoryIdByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Int32

TaxCategoryId. If tax category is not found, returns -1.

GetTaxCategoryNameById(Int32)

Gets the tax category name by id.

Declaration
public static string GetTaxCategoryNameById(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
System.String

TaxCategory name. If tax category is not found, returns empty string.

SaveTaxCategory(CatalogTaxDto)

Saves changes in TaxCategory table.

Declaration
public static void SaveTaxCategory(CatalogTaxDto dataset)
Parameters
Type Name Description
CatalogTaxDto dataset

The dto.