@adcp/sdk API Reference - v14.0.0-beta.6
    Preparing search index...

    Interface ProposalRefinementHandlerOptions<TProposal, TProduct, TContext>

    interface ProposalRefinementHandlerOptions<
        TProposal extends CanonicalProposal = CanonicalProposal,
        TProduct = Record<string, unknown>,
        TContext = unknown,
    > {
        capabilities: ProposalRefinementCapabilities;
        store: ProposalRefinementStore<TProposal>;
        scope: (context: TContext) => MaybePromise<ProposalRefinementScope>;
        evaluate: ProposalCommercialEvaluator<TProposal, TContext>;
        products?: (
            results: readonly ProposalRefinementResult<TProposal>[],
            context: TContext,
        ) => MaybePromise<TProduct[]>;
        now?: () => Date;
    }

    Type Parameters

    Index

    Properties

    Derive the persistence namespace from trusted handler context only. The request is deliberately not provided, so buyer arguments cannot choose a tenant or principal namespace.

    Application-owned commercial policy. The SDK never chooses business terms.

    products?: (
        results: readonly ProposalRefinementResult<TProposal>[],
        context: TContext,
    ) => MaybePromise<TProduct[]>
    now?: () => Date