AlmondTill/G3N API

EditConsumerInput

input type

Edit-input for a Consumer. Every field optional, at least ONE required; supplied fields REPLACE, omitted fields are preserved (no clearing semantic); phones/addresses REPLACE WHOLESALE when supplied; an email edit is the identity-marker release/reserve swap (a live/suspended/doomed holder of the NEW value refuses CONFLICT/IDENTITY_TAKEN — the burn law; the OLD value releases). Serves BOTH the staff updateConsumer and the self-service updateMyConsumer (the same EditConsumer shape).

Fields

FieldTypeRequiredNotes
captionStringnoNo further notes.
emailStringnoNo further notes.
displayNameStringnoNo further notes.
phonesString [String!]noNo further notes.
addressesConsumerAddressInput [ConsumerAddressInput!]noNo further notes.
priceGroupIdIDnoNo further notes.
tagIdsID [ID!]noThe replacement tag set (wholesale; empty releases; at most 64, unique; each ref in-tenant + ACTIVE). ⚠ STAFF-only: updateMyConsumer refuses it (the priceGroupId law).
localeStringnoPreferred locale — canonical BCP-47 core (the ONE / locale shape, case-canonical STRICT: ll / ll-CC / ll-Ssss[-CC]); the i18n resolution consumes it.
displayCurrencyStringnoDISPLAY-ONLY currency preference (ISO-4217 alpha-3, SHAPE + SET membership since): render prices in this currency where a conversion exists. ⚠ NEVER an evaluation input — carts/orders/documents stay org-currency.
dateOfBirthStringnoDate-only YYYY-MM-DD, calendar-real, ≥ 1900-01-01; the not-in-the-future half rides the KIT write gate. Drives the age-restricted-sale gate WHEN that builds (data-only now — the named deferral) + the birthday registries.
commsFrequencyStringnoContact-cadence preference AMONG CONSENTED channels — immediate | daily | weekly | monthly (canned v1 registry; enforcement = the comms build's named deferral).
commsFormatStringnoMessage-format preference — plain | rich (canned v1 registry).
commsTopicsString [String!]noComms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit (the book law).
interestsString [String!]noGeneral interest tags (the segment raw material) — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit.
preferredLogicalFacilityIdIDnoThe preferred store/LF: gated in-tenant + ACTIVE LF at write (the priceGroupId gate class); an LF dying LATER degrades at read — never a profile-killing throw.

Used by