Table of Contents

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

CacheInformation

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

keys IEnumerable<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

key string

Key to reset

Delete(string)

Deletes an instance with the specified parameters.

public virtual void Delete(string vatGroupId)

Parameters

vatGroupId string

The 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

vatGroupId string

The vat group id.

countryId string

The country id.

DeleteVatGroupCountryRelations(string)

Deletes all country relations from the VAT group with the given id.

public virtual void DeleteVatGroupCountryRelations(string vatGroupId)

Parameters

vatGroupId string

The vat group id.

GetVatGroup(string)

Gets the vatGroup.

public virtual VatGroup? GetVatGroup(string vatGroupId)

Parameters

vatGroupId string

The vatGroup Id.

Returns

VatGroup

A vatGroup VatGroup.

GetVatGroup(string, string, string)

Gets the products VatGroup based upon code2 from country.

public virtual VatGroup? GetVatGroup(string productId, string variantId, string vatCountryCode)

Parameters

productId string
variantId string
vatCountryCode string

Country code2

Returns

VatGroup

vatGroup

GetVatGroupCountryRelation(string, string)

Gets the VatGroupCountryRelation by group id and country id.

public virtual VatGroupCountryRelation? GetVatGroupCountryRelation(string groupId, string countryId)

Parameters

groupId string

The group id.

countryId string

The country id.

Returns

VatGroupCountryRelation

The VatGroupCountryRelation.

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

vatGroup VatGroup

The vatGroup.

Save(VatGroupCountryRelation)

Saves an instance with the specified parameters.

public virtual void Save(VatGroupCountryRelation vatGroupCountryRelation)

Parameters

vatGroupCountryRelation VatGroupCountryRelation

The vat group country relation.

SetCacheType<TObjectCache>()

Changes the storage container

public virtual void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<string, VatGroup>

Type Parameters

TObjectCache
To top