Class VatGroupService
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
public class VatGroupService : ICacheStorage<string, VatGroup>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
VatGroupService
- Implements
- Inherited Members
Methods
ClearCache()
Clears cached countries.
public void ClearCache()
ClearCache(VatGroupKey)
[Obsolete("Is not used anymore")]
public void ClearCache(VatGroupKey key)
Parameters
key
VatGroupKey
ClearCache(IEnumerable<VatGroupKey>)
[Obsolete("Is not used anymore")]
public void ClearCache(IEnumerable<VatGroupKey> keys)
Parameters
keys
IEnumerable<VatGroupKey>
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<string> keys)
Parameters
keys
IEnumerable<string>- Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(string key)
Parameters
key
string- Key to reset
Delete(string)
Deletes an instance with the specified parameters.
public void Delete(string vatGroupId)
Parameters
vatGroupId
string- The VAT group id.
Delete(string, string)
Deletes an instance with the specified parameters.
[Obsolete("Use Translations.Remove(languageId) instead.")]
public void Delete(string vatGroupId, string languageId)
Parameters
DeleteCountryRelation(string)
Deletes an instance with the specified parameters.
[Obsolete("Use DeleteVatGroupCountryRelations instead.")]
public void DeleteCountryRelation(string vatGroupId)
Parameters
vatGroupId
string- The vat group id.
DeleteCountryRelation(string, string)
Deletes an instance with the specified parameters.
[Obsolete("Use DeleteVatGroupCountryRelations instead.")]
public void DeleteCountryRelation(string vatGroupId, string languageId)
Parameters
DeleteCountryRelation(string, string, string)
Deletes an instance with the specified parameters.
[Obsolete("Use DeleteVatGroupCountryRelation instead.")]
public void DeleteCountryRelation(string vatGroupId, string languageId, string countryId)
Parameters
vatGroupId
string- The vat group id.
languageId
string- The language id.
countryId
string- The country id.
DeleteVatGroupCountryRelation(string, string)
Deletes the country relation for the country with the given id from the VAT group with the given id.
public void DeleteVatGroupCountryRelation(string vatGroupId, string countryId)
Parameters
DeleteVatGroupCountryRelations(string)
Deletes all country relations from the VAT group with the given id.
public void DeleteVatGroupCountryRelations(string vatGroupId)
Parameters
vatGroupId
string- The vat group id.
GetVatGroup(string)
Gets the vatGroup.
public VatGroup GetVatGroup(string vatGroupId)
Parameters
vatGroupId
string- The vatGroup Id.
Returns
GetVatGroup(string, string)
Gets the vatGroup.
[Obsolete("Use the overload without languageId and then use Translations on the VAT group.")]
public VatGroup GetVatGroup(string vatGroupId, string languageId)
Parameters
Returns
GetVatGroupCountryRelation(string, string)
Gets the VatGroupCountryRelation by group id and country id.
public VatGroupCountryRelation GetVatGroupCountryRelation(string groupId, string countryId)
Parameters
Returns
GetVatGroupCountryRelation(string, string, string)
Gets the VatGroupCountryRelation by group id, country id and language id.
[Obsolete("Use the overload without languageId.")]
public VatGroupCountryRelation GetVatGroupCountryRelation(string vatGroupId, string countryId, string languageId)
Parameters
Returns
GetVatGroupInvariantLanguage(string)
Gets the vatGroup.
[Obsolete("Use the GetVatGroup instead")]
public VatGroup GetVatGroupInvariantLanguage(string vatGroupId)
Parameters
vatGroupId
string- The vatGroup Id.
Returns
GetVatGroups()
Gets all VatGroups.
public IEnumerable<VatGroup> GetVatGroups()
Returns
- IEnumerable<VatGroup>
- A collection of the VatGroup.
GetVatGroupsForContextLanguage()
Gets all VAT groups for the context language.
[Obsolete("Use the GetVatGroups instead")]
public IEnumerable<VatGroup> GetVatGroupsForContextLanguage()
Returns
- IEnumerable<VatGroup>
- The collection of the VatGroup.
GetVatGroupsForLanguage(string)
Gets all VAT groups for the specified language.
[Obsolete("Use the GetVatGroups instead")]
public IEnumerable<VatGroup> GetVatGroupsForLanguage(string languageId)
Parameters
languageId
string- The language id.
Returns
- IEnumerable<VatGroup>
- The collection of the VatGroup.
GetVatGroupsForLanguage(string, bool)
Gets all VAT groups for the specified language.
[Obsolete("Use the GetVatGroups instead")]
public IEnumerable<VatGroup> GetVatGroupsForLanguage(string languageId, bool showUntranslated)
Parameters
Returns
- IEnumerable<VatGroup>
- The collection of the VatGroup.
Save(VatGroup)
Saves a vatGroup instance
public void Save(VatGroup vatGroup)
Parameters
vatGroup
VatGroup- The vatGroup.
Save(VatGroupCountryRelation)
Saves an instance with the specified parameters.
public void Save(VatGroupCountryRelation vatGroupCountryRelation)
Parameters
vatGroupCountryRelation
VatGroupCountryRelation- The vat group country relation.