BuyerIdentity
●cart · /core·type
Optional contact details attached to an active cart to identify the buyer.
Pass to createCart or via the update-buyer-identity mutation when the
consumer logs in or checks out as a guest.
Properties
PROPTYPEDESCRIPTION
countryCode?
string
email?
string
phone?
string
provider?
{ data: Record<string, unknown>; type: string }
Example
const identity: BuyerIdentity = { email: 'buyer@example.com', countryCode: 'US' };
await kernel.mutate(ctx, { kind: 'update-buyer-identity' });Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
analytics
Builtin middleware that calls the hostsupplied emit on every mutation: cart.mutation.success on resolve and cart.mutation.error on reject. The emit call is fire
CartActionFailureReason
Machinereadable failure code surfaced on the reason field of a failing . UI layers switch on this to decide whether to show a retry button, a validation message