ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface Variant

    Represents a specific variation of a product with its unique characteristics and pricing. Used to model different versions or package sizes of the same product.

    const variant: Variant = {
    title: "Sodium Chloride 500g",
    uom: "g",
    price: 19.99,
    quantity: 500,
    grade: "ACS",
    sku: "NaCl-500"
    };
    interface Variant {
        title?: string;
        description?: string;
        uom?: string;
        price?: number;
        currencyCode?: any;
        currencySymbol?: any;
        quantity?: number;
        baseQuantity?: number;
        baseUom?: any;
        usdPrice?: number;
        localPrice?: number;
        sku?: string | number;
        url?: string;
        id?: string | number;
        uuid?: string | number;
        grade?: string;
        conc?: string;
        status?: string;
        statusTxt?: string;
        shippingInformation?: string;
        availability?: any;
        attributes?: { name: string; value: string }[];
        moles?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    title?: string

    Display name of the variant

    "Sodium Chloride 500g"
    
    description?: string

    Description of the variant

    "Sodium Chloride 500g"
    
    uom?: string

    Unit of measurement for the variant quantity

    "g"
    
    price?: number

    Numeric price value of the variant

    19.99
    
    currencyCode?: any

    ISO currency code for the price

    "USD"
    
    currencySymbol?: any

    Display symbol for the currency

    "$"
    
    quantity?: number

    Available quantity in stock

    100
    
    baseQuantity?: number

    Reference quantity for unit conversion calculations

    500
    
    baseUom?: any

    Reference unit of measurement for conversions

    "g"
    
    usdPrice?: number

    Price converted to USD for comparison

    19.99
    
    localPrice?: number

    The price convert to the users local currency

    sku?: string | number

    Stock keeping unit identifier for inventory tracking

    "NaCl-500"
    
    url?: string

    URL to the variant's detail page

    "/products/sodium-chloride-500g"
    
    id?: string | number

    Unique identifier within the system

    12345
    
    uuid?: string | number

    Globally unique identifier

    "550e8400-e29b-41d4-a716-446655440000"
    
    grade?: string

    Chemical grade specification (e.g., 'ACS', 'Technical')

    "ACS"
    
    conc?: string

    Chemical concentration specification

    "98%"
    
    status?: string

    Current status code of the variant

    "IN_STOCK"
    
    statusTxt?: string

    Human-readable status description

    "In Stock"
    
    shippingInformation?: string

    Special shipping requirements or information

    "Hazardous material - special shipping required"
    
    availability?: any

    Availability of the variant

    "IN_STOCK"
    
    attributes?: { name: string; value: string }[]

    Attributes of the variant

    `[{ name: "Size", value: "500g" }]`
    
    moles?: number

    Number of moles of the variant

    23.5