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

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 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.

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

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

VatGroup

A vatGroup VatGroup.

GetVatGroup(string, string, string)

Gets the products VatGroup based upon code2 from country.

public 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 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 IEnumerable<VatGroup> GetVatGroups()

Returns

IEnumerable<VatGroup>

A 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.

To top