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
ConfigurableVatProviderSettings
public string ConfigurableVatProviderSettings { get; set; }
Property Value
GroupName
Gets or sets the group name.
[Obsolete("Use GetName and SetName instead.")]
public string GroupName { get; set; }
Property Value
Id
Gets or sets the id.
public string Id { get; set; }
Property Value
LanguageId
Gets or sets the language id.
[Obsolete("Use Translations instead.")]
public string LanguageId { get; set; }
Property Value
Translations
Gets the translations
public TranslationCollection<VatGroupTranslation> Translations { get; }
Property Value
ValueName
Gets or sets the value name.
public string ValueName { get; set; }
Property Value
Methods
Clone()
Clones this instance.
public VatGroup Clone()
Returns
Copy()
Copies this instance.
[Obsolete("Use Clone() instead")]
public VatGroup Copy()
Returns
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
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
Returns
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
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
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
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
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
stringvalue
VatGroupCountryRelation
SetName(string, string)
Sets the translated name in specified language
public void SetName(string languageId, string name)