Table of Contents

Class VatGroup

Namespace
Dynamicweb.Ecommerce.International
Assembly
Dynamicweb.Ecommerce.dll
Represents the VAT group.
[Serializable]
public class VatGroup
Inheritance
VatGroup
Inherited Members

Constructors

VatGroup()

Creates a new instance of VatGroup.
public VatGroup()

Properties

ConfigurableVatProvider

Gets the configurable VAT provider.
public ConfigurableVatProvider ConfigurableVatProvider { get; }

Property Value

ConfigurableVatProvider

ConfigurableVatProviderSettings

public string ConfigurableVatProviderSettings { get; set; }

Property Value

string

GroupName

Gets or sets the group name.
[Obsolete("Use GetName and SetName instead.")]
public string GroupName { get; set; }

Property Value

string

Id

Gets or sets the id.
public string Id { get; set; }

Property Value

string

LanguageId

Gets or sets the language id.
[Obsolete("Use Translations instead.")]
public string LanguageId { get; set; }

Property Value

string

Translations

Gets the translations
public TranslationCollection<VatGroupTranslation> Translations { get; }

Property Value

TranslationCollection<VatGroupTranslation>

ValueName

Gets or sets the value name.
public string ValueName { get; set; }

Property Value

string

Methods

Clone()

Clones this instance.
public VatGroup Clone()

Returns

VatGroup
New instance of the VatGroup.

Copy()

Copies this instance.
[Obsolete("Use Clone() instead")]
public VatGroup Copy()

Returns

VatGroup
New instance of the VatGroup.

Create(string)

Gets the VAT group by group id.
[Obsolete("Use Services.VatGroups.GetVatGroup(vatGroupId) instead")]
public static VatGroup Create(string vatGroupId)

Parameters

vatGroupId string
The group id.

Returns

VatGroup
The VatGroup.

Create(string, string)

Gets the VAT group by group id and language id.
[Obsolete("Use Services.VatGroups.GetVatGroup(vatGroupId) instead")]
public static VatGroup Create(string vatGroupId, string languageId)

Parameters

vatGroupId string
The group id.
languageId string
The language id.

Returns

VatGroup
The VatGroup.

Delete()

Deletes this instance.
[Obsolete("Use Services.VatGroups.Delete(vatGroupId) instead")]
public void Delete()

Delete(string)

Deletes an instance with the specified parameters.
[Obsolete("Use Services.VatGroups.Delete(vatGroupId) instead")]
public void Delete(string id)

Parameters

id string
The VAT group id.

Delete(string, string)

Deletes an instance with the specified parameters.
[Obsolete("Use Services.VatGroups.Delete(vatGroupId, languageId) instead")]
public void Delete(string id, string languageId)

Parameters

id string
The VAT group id.
languageId string
The language id.

get_VatGroupCountryRelation(string)

Gets or sets a relation between the country and the VAT group.
[Obsolete("Use Services.VatGroups.GetVatGroupCountryRelation instead")]
public VatGroupCountryRelation get_VatGroupCountryRelation(string countryId)

Parameters

countryId string

Returns

VatGroupCountryRelation

GetAllVatGroups()

Gets all VAT groups.
[Obsolete("Use Services.VatGroups.GetVatGroups() instead")]
public static VatGroupCollection GetAllVatGroups()

Returns

VatGroupCollection
The collection of the VatGroup.

GetName(string)

Gets the translated name in specified language
public string GetName(string languageId)

Parameters

languageId string

Returns

string

GetVatGroups()

Gets all VAT groups for the current language.
[Obsolete("Use Services.VatGroups.GetVatGroups() instead")]
public static VatGroupCollection GetVatGroups()

Returns

VatGroupCollection
The collection of the VatGroup.

GetVatGroupsByLanguage()

Gets all VAT groups for the default language.
[Obsolete("Use Services.VatGroups.GetVatGroups() instead")]
public static VatGroupCollection GetVatGroupsByLanguage()

Returns

VatGroupCollection
The collection of the VatGroup.

Lock()

Makes this instance to read only.
[Obsolete("This method is no longer used.")]
public void Lock()

Save()

Saves this instance to the database.
[Obsolete("Use Services.VatGroups.Save(VatGroup) instead")]
public void Save()

Save(string, string)

Saves an instance with the specified parameters.
[Obsolete("Use Services.VatGroups.Save(vatGroup) instead")]
public void Save(string id, string languageId = "")

Parameters

id string
The VAT group id.
languageId string
The language id.

set_VatGroupCountryRelation(string, VatGroupCountryRelation)

[Obsolete("Variant group relation is readonly, use Services.VatGroups.GetVatGroupCountryRelation with different parameters instead")]
public void set_VatGroupCountryRelation(string countryId, VatGroupCountryRelation value)

Parameters

countryId string
value VatGroupCountryRelation

SetName(string, string)

Sets the translated name in specified language
public void SetName(string languageId, string name)

Parameters

languageId string
name string
To top