UpdateArticleRequest class
Eine Aenderung (updateArticle): nur die genannten Felder, mindestens eines.
externalIds und metadata werden ganz ersetzt, minStockByLocation je
Standort zusammengefuehrt ({'haupt': null} nimmt nur diesen Standort weg).
Die EAN laesst sich nur bei Fremdartikeln wechseln; stockKind nach der
ersten Bewegung nicht mehr (stock_kind_locked). Ein stillgelegter Artikel
ergibt article_inactive.
Constructors
-
UpdateArticleRequest({required String idempotencyKey, required String articleId, 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, Set<String> clear = const {}}) -
const
Properties
- articleId → String
-
final
-
clear
→ Set<
String> -
Felder, die geleert werden (am Draht
null):description,unitPriceCents,vatRate,number,groupId,revenueGroupId,minStock,stockLocationIds,externalIds,metadata,minStockByLocation,purchasePriceMicros.name,unit,ean,stockTrackedundstockKindlassen sich nicht leeren. Ein Feld zugleich setzen und leeren, ein anderes Feld oder ein Tippfehler gehen nicht hinaus (KasseneckValidationError).final - description → String?
-
final
- ean → String?
-
final
-
externalIds
→ Map<
String, String> ? -
final
- groupId → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idempotencyKey → String
-
final
-
metadata
→ Map<
String, String> ? -
final
- minStock → int?
-
final
-
minStockByLocation
→ Map<
String, int?> ? -
Je Standort zusammengefuehrt; ein
null-Wert nimmt den Mindestbestand dieses Standorts weg, die uebrigen bleiben.final - name → String?
-
final
- number → String?
-
final
- purchasePriceMicros → int?
-
final
- revenueGroupId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stockKind → String?
-
final
-
stockLocationIds
→ List<
String> ? -
final
- stockTracked → bool?
-
final
- unit → String?
-
final
- unitPriceCents → int?
-
final
- vatRate → num?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Ein Feld, das zugleich gesetzt und in clear steht, behaelt hier seinen
Wert;
updateArticleweist die Anfrage dann ab, statt eine Seite still gewinnen zu lassen. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited