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

key
string
value
string

Example

const attrs: KV[] = [{ key: 'gift_message', value: 'Happy birthday!' }];
await kernel.mutate(ctx, { kind: 'update-attributes', attributes: attrs });

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:180Edit the JSDoc directly

On this page