Class VatGroupService
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
public class VatGroupService : ICacheStorage<string, VatGroup>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
VatGroupService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public virtual CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public virtual void ClearCache(IEnumerable<string> keys)
Parameters
keysIEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
public virtual void ClearCache(string key)
Parameters
keystringKey to reset
Delete(string)
Deletes an instance with the specified parameters.
public virtual void Delete(string vatGroupId)
Parameters
vatGroupIdstringThe VAT group id.
DeleteVatGroupCountryRelation(string, string)
Deletes the country relation for the country with the given id from the VAT group with the given id.
public virtual void DeleteVatGroupCountryRelation(string vatGroupId, string countryId)
Parameters
DeleteVatGroupCountryRelations(string)
Deletes all country relations from the VAT group with the given id.
public virtual void DeleteVatGroupCountryRelations(string vatGroupId)
Parameters
vatGroupIdstringThe vat group id.
GetVatGroup(string)
Gets the vatGroup.
public virtual VatGroup? GetVatGroup(string vatGroupId)
Parameters
vatGroupIdstringThe vatGroup Id.
Returns
GetVatGroup(string, string, string)
Gets the products VatGroup based upon code2 from country.
public virtual VatGroup? GetVatGroup(string productId, string variantId, string vatCountryCode)
Parameters
Returns
- VatGroup
vatGroup
GetVatGroupCountryRelation(string, string)
Gets the VatGroupCountryRelation by group id and country id.
public virtual VatGroupCountryRelation? GetVatGroupCountryRelation(string groupId, string countryId)
Parameters
Returns
GetVatGroups()
Gets all VatGroups.
public virtual IEnumerable<VatGroup> GetVatGroups()
Returns
- IEnumerable<VatGroup>
A collection of the VatGroup.
Save(VatGroup)
Saves a vatGroup instance
public virtual void Save(VatGroup vatGroup)
Parameters
vatGroupVatGroupThe vatGroup.
Save(VatGroupCountryRelation)
Saves an instance with the specified parameters.
public virtual void Save(VatGroupCountryRelation vatGroupCountryRelation)
Parameters
vatGroupCountryRelationVatGroupCountryRelationThe vat group country relation.
SetCacheType<TObjectCache>()
Changes the storage container
public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, VatGroup>
Type Parameters
TObjectCache