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
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | No further notes. |
email | String | no | No further notes. |
displayName | String | no | No further notes. |
phones | String [String!] | no | No further notes. |
addresses | ConsumerAddressInput [ConsumerAddressInput!] | no | No further notes. |
priceGroupId | ID | no | No further notes. |
tagIds | ID [ID!] | no | The replacement tag set (wholesale; empty releases; at most 64, unique; each ref in-tenant + ACTIVE). ⚠ STAFF-only: updateMyConsumer refuses it (the priceGroupId law). |
locale | String | no | Preferred locale — canonical BCP-47 core (the ONE / locale shape, case-canonical STRICT: ll / ll-CC / ll-Ssss[-CC]); the i18n resolution consumes it. |
displayCurrency | String | no | DISPLAY-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. |
dateOfBirth | String | no | Date-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. |
commsFrequency | String | no | Contact-cadence preference AMONG CONSENTED channels — immediate | daily | weekly | monthly (canned v1 registry; enforcement = the comms build's named deferral). |
commsFormat | String | no | Message-format preference — plain | rich (canned v1 registry). |
commsTopics | String [String!] | no | Comms topic interests ('about what') — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit (the book law). |
interests | String [String!] | no | General interest tags (the segment raw material) — ≤ 16, each trimmed 1..64; a supplied list REPLACES WHOLESALE on edit. |
preferredLogicalFacilityId | ID | no | The 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. |