TaxGroup
Synopsis
final struct TaxGroup {
string identifier; // required attribute
OrderedTax[] taxes; // zero or more elements
string? defaultTypeId; // optional attribute
string? defaultCategoryId; // optional attribute
}
A tax group allows tax access methods to select a tax type from an article’s tax information. For TAX00_ and TAX01_ access methods, the name following the first underscore identifies a tax group if one with that identifier exists; otherwise it identifies a tax type.
The taxes list contains unique tax types and their order numbers, using OrderedTax. If several group members occur in the article’s tax information, the member with the highest order number is selected. A tie at the highest order number is an error. If none occurs, defaultTypeId and defaultCategoryId are used; absence of a default is an error. The two default attributes must either both be present or both be absent. The default type must be known to the scheme but need not belong to the group; its category must be valid for that type. The taxes list may be empty if a default is specified.
See also: TaxScheme.