ArticleInput class

Die Felder eines Artikels beim Anlegen.

Implementers

Constructors

ArticleInput({required String name, String? description, int? unitPriceCents, num? vatRate, String? unit, String? number, String? ean, String? groupId, String? revenueGroupId, bool? stockTracked, List<String>? stockLocationIds, int? minStock, Map<String, int>? minStockByLocation, String? stockKind, int? purchasePriceMicros, Map<String, String>? externalIds, Map<String, String>? metadata})
const

Properties

description → String?
Bis 2000 Zeichen.
final
ean → String?
GTIN/EAN mit gueltiger Pruefziffer: der Artikel wird ein Fremdartikel mit diesem Code. Ohne ean vergibt der Server einen eigenen Code nach den Einstellungen des Kontos (internalCode). Ein Code, der schon einem anderen Artikel gehoert, ergibt code_taken (mit field und articleId).
final
externalIds → Map<String, String>?
Eigene Kennungen je System ({'shop': '1001'}): hoechstens 10 Systeme ^[a-z0-9_]{1,32}$, Werte 1–128 Zeichen, je System und Wert eindeutig im Konto (external_id_taken). Damit findet lookupArticleByCode den Artikel.
final
groupId → String?
Artikelgruppe; unbekannt = group_not_found.
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, String>?
Freie Merkmale, nie ausgewertet: hoechstens 20 Schluessel ^[a-zA-Z0-9_]{1,40}$, Werte bis 500 Zeichen, zusammen 4 KB.
final
minStock → int?
Altfeld ohne Wirkung auf Meldungen; Tausendstel in ganzen Einheiten (Vielfaches von 1000).
final
minStockByLocation → Map<String, int>?
Mindestbestand je Standort in Tausendstel, hoechstens 50 Standorte.
final
name → String
1–200 Zeichen, getrimmt gespeichert.
final
number → String?
Artikelnummer, 1–64 Zeichen.
final
purchasePriceMicros → int?
Standard-Einkaufspreis je Basiseinheit in Mikro-Euro. Nur mit dem Konto-Recht costs, sonst inventory_api_not_enabled mit dem Feldfehler purchasePriceMicros.
final
revenueGroupId → String?
Erloesgruppe; unbekannt = revenue_group_not_found.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stockKind → String?
Ein Wert aus stockKinds; nach der ersten Bewegung fest.
final
stockLocationIds → List<String>?
Hoechstens 50 Standorte; unbekannt = location_not_found.
final
stockTracked → bool?
final
unit → String?
1–20 Zeichen; ohne Angabe die Vorgabe des Kontos.
final
unitPriceCents → int?
final
vatRate → num?
USt-Satz in Prozent (20, 13, 10, 4.9, 0, 19).
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