VariantGroupDefaultsInput class

Vorgaben einer Gruppe in einer Anfrage. Bei der Anlage fehlt ein Feld ohne Wert; bei einer Aenderung (updateVariantGroup) ist es ein Teil-Update: nur die genannten Felder, clear leert einzelne (am Draht null).

Constructors

VariantGroupDefaultsInput({int? unitPriceCents, num? vatRate, String? unit, String? groupId, bool? stockTracked, Set<String> clear = const {}})
const

Properties

clear → Set<String>
Felder, die eine Aenderung leert (am Draht null): jedes der fuenf (unitPriceCents, vatRate, unit, groupId, stockTracked). Ein Feld zugleich setzen und leeren oder ein fremder Name gehen nicht hinaus (KasseneckValidationError). Bei der Anlage heisst null am Draht „nicht angegeben“.
final
groupId → String?
Artikelgruppe; unbekannt = group_not_found (bei einer Variante mit field: 'defaults.groupId').
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stockTracked → bool?
final
unit → String?
final
unitPriceCents → int?
final
vatRate → num?
USt-Satz in Prozent.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Wie bei UpdateArticleRequest behaelt ein Feld, das zugleich gesetzt und in clear steht, hier seinen Wert; der Aufruf weist die Anfrage ab.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited