@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias RouteSearchRequest

    RouteSearchRequest: {
        paymentInstrumentId?: SelectPaymentInstrument["externalId"];
        productId: Product["id"];
        usage?: boolean;
    } & CallerSuppliedCriteria

    One product plus the criteria to resolve it against — the unit ProductRouteService.search batches. The entity, customer and clock are shared across a batch and travel on the call, not here.

    Type Declaration

    • OptionalpaymentInstrumentId?: SelectPaymentInstrument["externalId"]

      Lookup key, not a matcher field; must belong to the search's customer.

    • productId: Product["id"]
    • Optionalusage?: boolean

      Look up the entity's accepted usage (USAGE_CRITERIA_FIELDS) from b2b.route_criteria_usage: of productId for search(), of its category for the category limit rule read. A caller value still wins.