Represents a distinct Product with basic identifiers, price, and display information, and further optional detailed information.

interface Product {
    category?: string;
    color?: string;
    customProperties?: [string: string | number];
    image?: string;
    price: number;
    productId: string;
    regularPrice: number;
    reviews?: ProductReviews;
    size?: string;
    sku: string;
    stock?: number;
    subCategory?: string;
    title: string;
    url: string;
}

Hierarchy (view full)

Properties

category?: string

The broad category containing this item.

color?: string

The color of the SKU item. (optional)

customProperties?: [string: string | number]

Named (keys) custom properties (values with a valid string representation) to be stored and reported to Granify with the product. This is useful for adding additional properties that may be domain-specific to your site and do not fit into any of the existing properties available on this class.

image?: string

The address of the product image.

price: number

The current unit price of the product (after discount or sale pricing).

productId: string

The parent ID of the product.

regularPrice: number

The regular price of the product before sales or discounts.

reviews?: ProductReviews

The review and rating information for the product.

size?: string

The size of the SKU item. (optional)

sku: string

The specific SKU of the product/variant.

stock?: number

The stock information for the product.

subCategory?: string

Further categorical identification of item. (optional)

title: string

The name or title of the product.

url: string

Deep link to app location.