Article class

Ein Artikel, wie getArticle, listArticles, lookupArticleByCode und die Ereignisse article.* ihn senden.

Constructors

Article({required String id, String? name, String? description, int? unitPriceCents, num? vatRate, String? unit, String? number, String? ean, String? internalCode, String? groupId, String? revenueGroupId, bool stockTracked = false, String? stockKind, List<String> stockLocationIds = const [], int? minStock, Map<String, int> minStockByLocation = const {}, bool active = true, Map<String, String>? externalIds, Map<String, String>? metadata, String? variantGroupId, Map<String, String>? variantAttributes, String? createdAt, String? updatedAt, int? purchasePriceMicros, bool? hasPurchasePriceMicros})

Properties

active → bool
final
createdAt → String?
final
description → String?
Beschreibung (bis 2000 Zeichen); null = keine. Seit 10.4.
final
ean → String?
final
externalIds → Map<String, String>?
Eigene Kennungen je Fremdsystem ({'shop': '4711'}); null, wenn der Artikel keine traegt.
final
groupId → String?
final
hashCode → int
The hash code for this object.
no setterinherited
hasPurchasePriceMicros → bool
Stand purchasePriceMicros in der Antwort? Nur mit dem Recht costs (Konto-Schalter lagerApi.kosten); ohne fehlt das Feld ganz.
final
id → String
final
internalCode → String?
final
metadata → Map<String, String>?
final
minStock → int?
Altfeld. Mindestbestand des Artikels in Tausendstel; null = keiner. Er loest nichts aus: Warnungen, belowMinimum und stock.below_minimum richten sich nach minStockByLocation.
final
minStockByLocation → Map<String, int>
Mindestbestand je Standort in Tausendstel ({'haupt': 20000}), die Schwelle fuer below_minimum, gemessen am verfuegbaren Bestand (onHand - reserved). Leer = keiner, auch wenn ein Server vor Stufe 5b das Feld nicht sendet. Seit 10.4.
final
name → String?
final
number → String?
final
purchasePriceMicros → int?
Einkaufspreis je Basiseinheit in Mikro-Euro (Wiederbeschaffungs- vor letztem vor Standard-Einkaufspreis); null = keiner hinterlegt oder kein Recht, siehe hasPurchasePriceMicros.
final
revenueGroupId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stockKind → String?
Meist ein Wert aus stockKinds: quantity (Menge) oder serial (Einzelstueck). null, wenn der Server das Feld nicht sendet (vor Stufe 5b); ein Wert, den diese Paketversion nicht kennt, bleibt als Text stehen. Seit 10.4.
final
stockLocationIds → List<String>
Standorte, an denen der Artikel gefuehrt wird; leer = nur der Standard-Standort.
final
stockTracked → bool
final
unit → String?
final
unitPriceCents → int?
final
updatedAt → String?
final
variantAttributes → Map<String, String>?
Nur an einer Variante: je Merkmal der Gruppe genau ein Wert ({'farbe': 'rot', 'groesse': 'S'}). Die Schluessel kommen nach Codepunkt sortiert, nicht in der Merkmalsreihenfolge der Gruppe; die steht in VariantGroup.attributes.
final
variantGroupId → String?
Nur an einer Variante: die Variantengruppe. Gesetzt nur ueber createVariantGroup/addVariant, nie umgehaengt.
final
vatRate → num?
USt-Satz in Prozent, z. B. 20, 10, 4.9.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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