AlmondTill/G3N API

NewCharacteristicInput

input type

Create-input for a Characteristic. Strict invariants: pattern-type requires a compiling grammar.pattern; number/date take NO grammar; unit only on number, naming a canned UoM.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the merchant code when given, else 'Characteristic'; when supplied it must be non-blank.
valueTypeCharacteristicValueType CharacteristicValueType!yesThe value type — immutable after birth.
grammarCharacteristicGrammarInputnoGrammar input — >=1 field when supplied; bounds ordered (minLength <= maxLength); pattern must compile.
unitStringnoA canned-UoM unit code (number-typed characteristics only).
codeStringno

Used by