NewConsumerInput
input type
Create-input for a Consumer. NO password field — credentials never ride a construct shape: a staff-created Consumer is born without self-service; resetConsumerPassword arms it. Self-registration (consumerRegister) shares this shape + a password argument.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | Optional: when omitted the per-type default applies — the display name when given, else the normalized email (the identity line); when supplied it must be non-blank. |
email | String String! | yes | |
displayName | String | no | |
phones | String [String!] | no | |
addresses | ConsumerAddressInput [ConsumerAddressInput!] | no | Address-book entry input for a Consumer — a supplied book replaces the stored one wholesale (the Role-descriptors list-is-the-payload semantic). |
priceGroupId | ID | no | Gated in-tenant + active at set. Staff-only: the self-register lane (consumerRegister) refuses it. |
tagIds | ID [ID!] | no | The Tag attachment set (at most 64, unique) — each ref gated in-tenant + active. Staff-only: consumerRegister refuses it (the priceGroupId law). |
locale | String | no | Preferred locale — canonical BCP-47 core; the i18n resolution consumes it. |
displayCurrency | String | no | Display-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. |
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. |
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 — ≤ 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; an LF dying later degrades at read — never a profile-killing throw. |