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; 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
captionStringno
emailStringno
displayNameStringno
phonesString [String!]no
addressesConsumerAddressInput [ConsumerAddressInput!]noAddress-book entry input for a Consumer — a supplied book replaces the stored one wholesale (the Role-descriptors list-is-the-payload semantic).
priceGroupIdIDno
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 i18n resolution consumes it.
displayCurrencyStringnoDisplay-only currency preference — a platform-registry code inside the union of the group's organizations' allowed sets: 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.
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 — ≤ 16, each trimmed 1..64; a supplied list replaces wholesale on edit.
preferredLogicalFacilityIdIDnoThe preferred store/LF: gated in-tenant + active LF at write; an LF dying later degrades at read — never a profile-killing throw.

Used by