4
0
forked from crowetic/commerce
commerce/framework/types.d.ts
Belen Curcio c780852fbb Progress
2021-01-07 16:28:50 -03:00

25 lines
428 B
TypeScript

interface Product {
id: string | number
name: string
description: string
images: ProductImage[]
variants: ProductVariant[]
prices: ProductPrice[]
slug: string
path?: string
}
interface ProductImage {
url: string
alt?: string
}
interface ProductVariant {
id: string | number
}
interface ProductPrice {
value: number | string
currencyCode: 'USD' | 'ARS'
type?: 'price' | 'retail' | 'sale' | string
}