KV
●cart · /core·type
Generic key-value pair used for cart attributes and line item attributes. Adapters map these to provider-specific metadata fields.
Properties
PROPTYPEDESCRIPTION
key
string
value
string
Example
const attrs: KV[] = [{ key: 'gift_message', value: 'Happy birthday!' }];
await kernel.mutate(ctx, { kind: 'update-attributes', attributes: attrs });Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
idempotency
Builtin middleware that deduplicates mutations sharing the same ctx.idempotencyKey within windowMs. Replays return the cached cart without invoking the inner ch
LocaleTuple
Languagecountrycurrency triple that parameterizes every adapter call. Ensures currency is always colocated with locale so adapters never have to infer it from c