VoucherType enum
Gutscheinart. Zwilling von VoucherType im npm-Paket; am Draht steht
wire (multi_purpose …), in Dart heisst der Wert in Dart-Schreibweise.
value und promo sind die Altform (Wert in Cent, Code frei). Die vier
Arten der neuen Form fuehrt der Server mit Saldo, Gueltigkeit und Satz;
eine Kasse prueft sie vorher mit checkVoucher.
Values
- value → const VoucherType
-
Altform: Wertgutschein.
const VoucherType('value') - promo → const VoucherType
-
Altform: Rabatt-/Aktionsgutschein.
const VoucherType('promo') - multiPurpose → const VoucherType
-
Neue Form: Mehrzweckgutschein (Zahlungsmittel, Steuer erst bei der Einloesung).
const VoucherType('multi_purpose') - singlePurpose → const VoucherType
-
Neue Form: Einzweckgutschein (Steuer schon beim Verkauf, ein Satz).
const VoucherType('single_purpose') - service → const VoucherType
-
Neue Form: Leistungsgutschein (Artikel mal Menge).
const VoucherType('service') - promotion → const VoucherType
-
Neue Form: Aktionsgutschein (Rabatt laut Aktion, nur einloesbar).
const VoucherType('promotion')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isNewForm → bool
-
Eine der vier Arten der neuen Form?
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wire → String
-
Der Wert am Draht (
/v3).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromWire(
Object? wire) → VoucherType? -
Die Art zum Drahtwert;
nullfuer einen unbekannten Wert.
Constants
-
values
→ const List<
VoucherType> - A constant List of the values in this enum, in order of their declaration.