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

    Type Alias ProductFeeRule

    ProductFeeRule: Omit<
        SelectProductFeeRule,
        | "id"
        | "routeId"
        | "routeExternalId"
        | "customerId"
        | "customerExternalId"
        | "externalId"
        | "matcherHash"
        | "currentVersionId"
        | "deletedAt",
    > & Omit<
        SelectProductFeeRuleVersion,
        "id"
        | "ruleId"
        | "ruleExternalId"
        | "matcherHash"
        | "createdAt",
    > & {
        id: string;
        routeId: SelectProductRoute["externalId"];
        scheduledVersion: ScheduledRuleVersion | null;
    }

    View of a fee rule visible to a customer = identity columns + the columns of the rule's version in effect now (before its first takes effect, its latest).

    customerId is intentionally omitted — see ProductActivationRule for the rationale.

    Type Declaration

    • id: string
    • routeId: SelectProductRoute["externalId"]
    • scheduledVersion: ScheduledRuleVersion | null

      The next version to take effect, if one is scheduled.