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

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' });

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:29Edit the JSDoc directly

On this page