STRProductItem

data class STRProductItem(productId: String, productGroupId: String, title: String, url: String, desc: String?, price: Float, salesPrice: Float?, currency: String, imageUrls: List<String>?, variants: List<STRProductVariant>, ctaText: String?)

Data class that represents the storyly product

Constructors

STRProductItem
Link copied to clipboard
fun STRProductItem(productId: String, productGroupId: String, title: String, url: String, desc: String?, price: Float, salesPrice: Float? = null, currency: String, imageUrls: List<String>?, variants: List<STRProductVariant>, ctaText: String? = null)

Properties

ctaText
Link copied to clipboard
var ctaText: String? = null

The text to show at cta components

currency
Link copied to clipboard
var currency: String

The currency in which the price is specified

desc
Link copied to clipboard
var desc: String?

The description of the product

imageUrls
Link copied to clipboard
var imageUrls: List<String>?

A list of URLs pointing to the images associated with the product

price
Link copied to clipboard
var price: Float

The original price of the product

productGroupId
Link copied to clipboard
var productGroupId: String

Unique identifier of the group which the product belongs

productId
Link copied to clipboard
var productId: String

Unique identifier of the product

salesPrice
Link copied to clipboard
var salesPrice: Float? = null

The discounted price of the product

title
Link copied to clipboard
var title: String

The title or name of the product

url
Link copied to clipboard
var url: String

The URL associated with the product

variants
Link copied to clipboard
var variants: List<STRProductVariant>

A list of product variants, represented by instances of the STRProductVariant class