Product Scheme¶
The product scheme defines the structure and properties of products within the Aiuta platform. This scheme is essential for displaying product information in the SDK's user interface and managing product-related functionality.
Product¶
Product {
id: String // (1)!
title: String // (2)!
brand: String // (3)!
imageUrls: List<String> // (4)!
price: Price | null // (5)!
}
- Unique identifier for the product, used to distinguish it across the platform. Must match the identifiers provided to Aiuta for training try-on models.
- The name or title of the product, displayed prominently in the user interface.
- The brand associated with the product, identifying the manufacturer or provider.
-
Collection of URLs pointing to product images. Should contain at least one URL.
Extra padding for the flat lay image
The flat lay image in case of cropping without margins should be the first in the
imageUrls
list ifProductBarTheme
applyProductFirstImageExtraPadding
set totrue
-
Optional pricing details for the product, including current and old prices.
Price¶
Price {
current: String // (1)!
old: String | null // (2)!
}
- Current price of the product, formatted as a localized string including currency symbol and amount.
- Optional old price of the product, formatted as a localized string. If provided, will be displayed as strikethrough near the current price.
Prices Theme
You only need to pass product prices if you set up PricesTheme