ItemCreate class

The body createItem takes.

type and name are the minimum that works. type takes "STANDARD", "BUNDLE", "FAMILY" or "VARIATION_BASED".

The family flags are written is_parent/is_child and read back as parent/child.

group rejects an unknown value with 400 internal_error "Invalid group".

Inheritance

Constructors

ItemCreate({String? name, String? type, String? displayName, String? description, String? origin, String? invoiceNote, String? manager, String? customForm, String? group, bool? isParent, bool? isChild, String? parentItemId, List<ItemCurrency?>? currencies, List<Object?>? uoms, Object? sale, Object? purchase, Object? inventories, List<Object?>? bundleDetails})
const

Properties

bundleDetails → List<Object?>?
final
currencies → List<ItemCurrency?>?
final
customForm → String?
final
description → String?
final
displayName → String?
final
envelopeKey → String?
The key the API wraps this record in - 'account' for {"account": {...}}. readRecord unwraps it on the way in, toMap puts it back on the way out.
no setteroverride
fields → Map<String, Object?>
Every field this type declares, keyed by wire name, in the order it sends them.
no setteroverride
group → String?
final
hashCode → int
The hash code for this object.
no setterinherited
inventories → Object?
final
invoiceNote → String?
final
isChild → bool?
final
isParent → bool?
The write spelling. Reads back as parent / child.
final
manager → String?
final
name → String?
final
origin → String?
final
parentItemId → String?
final
purchase → Object?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sale → Object?
final
topLevelFields → Set<String>
Fields that sit beside the envelope rather than inside it.
no setterinherited
type → String?
final
uoms → List<Object?>?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
The body this DTO stands for, envelope included.
inherited
toString() → String
Set fields, values under a secret-named key masked.
inherited

Operators

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