CurrencyCode
●cart · /core·type
ISO 4217 alphabetic currency code (e.g. "USD", "EUR", "JPY"). Used
wherever a currency denomination is required in the cart API to ensure
currency is always explicit and never inferred.
Definition
type CurrencyCode = string;string
Example
const code: CurrencyCode = ctx.locale.currency;
const zero = money.zero(code);Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
createMockCartAdapter
Builds an inmemory cart adapter for host tests and contract selftests. State lives in a Map scoped to the returned instance, so each call is isolated. Capabilit
CustomMutationHandler
Handler registered on a for a named custom mutation — an operation with no firstclass kernel method. Every name declared in CartCapabilities.customMutations mus