ChemPal Documentation - v1.18.0
    Preparing search index...

    Interface ProductRef

    Everything needed to refetch one specific product. It carries several identifiers because no single field works for every supplier.

    export interface ProductRef extends VariantRef {
    /** The supplier's stable product key (see `SupplierBase.getUniqueProductKey`). */
    cacheKey: string;
    /** Product title, carried so a refetched product can be named without a search. */
    title: string;
    /** Processing URL. */
    url: string;
    /** Human-facing product page. */
    permalink?: string;
    /** Pack size of the headline price. */
    quantity?: number;
    /** Unit of the headline pack size. */
    uom?: string;
    /** The product's sizes. */
    variants: VariantRef[];
    }
    interface ProductRef {
        id?: string | number;
        uuid?: string | number;
        sku?: string | number;
        cacheKey: string;
        title: string;
        url: string;
        permalink?: string;
        quantity?: number;
        uom?: string;
        variants: VariantRef[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    id?: string | number

    The supplier's own id for the size.

    uuid?: string | number

    The supplier's secondary identifier for the size.

    sku?: string | number

    The size's SKU.

    cacheKey: string

    The supplier's stable product key (see SupplierBase.getUniqueProductKey).

    title: string

    Product title, carried so a refetched product can be named without a search.

    url: string

    Processing URL.

    permalink?: string

    Human-facing product page.

    quantity?: number

    Pack size of the headline price.

    uom?: string

    Unit of the headline pack size.

    variants: VariantRef[]

    The product's sizes.