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(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
stringKey to reset
Delete(string)
Deletes an instance with the specified parameters.
public void Delete(string vatGroupId)
Parameters
vatGroupId
stringThe 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 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
stringThe vat group id.
GetVatGroup(string)
Gets the vatGroup.
public VatGroup GetVatGroup(string vatGroupId)
Parameters
vatGroupId
stringThe vatGroup Id.
Returns
GetVatGroup(string, string, string)
Gets the products VatGroup based upon code2 from country.
public 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 VatGroupCountryRelation GetVatGroupCountryRelation(string groupId, string countryId)
Parameters
Returns
GetVatGroups()
Gets all VatGroups.
public IEnumerable<VatGroup> GetVatGroups()
Returns
- IEnumerable<VatGroup>
A collection of the VatGroup.
Save(VatGroup)
Saves a vatGroup instance
public void Save(VatGroup vatGroup)
Parameters
vatGroup
VatGroupThe vatGroup.
Save(VatGroupCountryRelation)
Saves an instance with the specified parameters.
public void Save(VatGroupCountryRelation vatGroupCountryRelation)
Parameters
vatGroupCountryRelation
VatGroupCountryRelationThe vat group country relation.