Class TaxManager

Implements operations for the tax manager.

Inheritance
System.Object
TaxManager
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.Orders.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class TaxManager

Methods

GetTax(Int32)

Gets the tax by id.

Declaration
public static TaxDto GetTax(int taxId)
Parameters
Type Name Description
System.Int32 taxId
Returns
Type Description
TaxDto

GetTax(String)

Gets the tax by name.

Declaration
public static TaxDto GetTax(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
TaxDto

GetTaxDto(Nullable<TaxType>)

Gets all tax rows for the current application and optionally a specific tax type.

Declaration
public static TaxDto GetTaxDto(TaxType? type)
Parameters
Type Name Description
System.Nullable<TaxType> type

The type of the taxes to return, or all types if null.

Returns
Type Description
TaxDto

A TaxDto containing the specified rows.

GetTaxDto(Nullable<TaxType>, String)

Gets all tax rows for the current application and optionally a specific tax type.

Declaration
[Obsolete("The language parameter is ignored. Use GetTaxDto(Nullable<TaxType>). Will remain at least until November 2016.")]
public static TaxDto GetTaxDto(TaxType? type, string languageCode)
Parameters
Type Name Description
System.Nullable<TaxType> type

The type of the taxes to return, or all types if null.

System.String languageCode

This parameter is unused.

Returns
Type Description
TaxDto

A TaxDto containing the specified rows.

GetTaxes(Guid, String, String, String, String, String, String, String, String)

Gets the taxes.

Declaration
public static DataTable GetTaxes(Guid siteId, string taxCategory, string languageCode, string countryCode, string stateProvinceCode, string zipPostalCode, string district, string county, string city)
Parameters
Type Name Description
System.Guid siteId

The site id.

System.String taxCategory

The tax category.

System.String languageCode

The language code.

System.String countryCode

The country code.

System.String stateProvinceCode

The state province code.

System.String zipPostalCode

The zip postal code.

System.String district

The district.

System.String county

The county.

System.String city

The city.

Returns
Type Description
System.Data.DataTable

SaveTax(TaxDto)

Saves changes in TaxDto.

Declaration
public static void SaveTax(TaxDto dto)
Parameters
Type Name Description
TaxDto dto

The dto.