export interface Shipping {
/**
* list of available methods
*
* @default null
*/
methods?: Array | void
/**
* cart
*
* @default null
*/
cart?: Array | void
}
export interface Product {
/**
* product id
*
* @default null
*/
id: string | number
/**
* product title
*
* @default null
*/
title: string
/**
* product subtitle
*
* @default null
*/
subtitle?: string | void
/**
* product excerpt
*
* @default null
*/
excerpt?: string | null
/**
* product description
*
* @default null
*/
description?: string | null
/**
* product default final price
*
* @default 0
*/
price?: Price | number | void
/**
* product final price by attributes and limitations
*
* @default null
*/
prices?: Array | void
/**
* product discount amount
*
* @default 0
*/
discount?: number | void
/**
* product is available for sale
*
* @default true
*/
available?: boolean | void
/**
* product category
*
* @default true
*/
category?: Array | Category | object | void
/**
* product category
*
* @default true
*/
thumbnail?: Image | string | void
/**
* product category
*
* @default true
*/
images?: Array | Array | void
/**
* product rate
*
* @default 0
*/
rate?: number | void
/**
* product rate count
*
* @default 0
*/
rateCount?: number | void
/**
* product tags
*
* @default null
*/
tags?: Array | void
/**
* product selectable attributes
*
* @default null
*/
attributes?: Array | void
/**
* product features
*
* @default null
*/
features?: Array | void
/**
* product jsonLD object
*
* @default null
*/
jsonLD?: Object | void
/**
* maximum allowed number of product per order
*
* @default null
*/
maxAllowed?: number | void
/**
* meta description for seo
*
* @default null
*/
metaDescription?: string | void
/**
* list of meta tags
*
* @default null
*/
metaTags?: Array | void
}
export interface Products extends Array {
items?: Product[] | string[] | void
}
export interface Category {
/**
* product id
*
* @default null
*/
id: number | string
/**
* product title
*
* @default null
*/
title: string
/**
* product title
*
* @default null
*/
category: string
}
export interface Categories extends Array {
items?: Category[] | string[] | void
}
export interface Feature {
/**
* product title
*
* @default null
*/
title: string
}
interface Meta {
/**
* title
*
* @default null
*/
key: string
/**
* value
*
* @default null
*/
value: string
}
export interface Price {
/**
* product title
*
* @default null
*/
price: number
}
export interface Attribute {
/**
* product title
*
* @default null
*/
title: string
}
export interface Image {
/**
* product title
*
* @default null
*/
title: string
}