StoryProductCardComponent

data class StoryProductCardComponent(id: String, text: String?, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?) : StoryComponent

This data class represents the ProductCard component.

Constructors

StoryProductCardComponent
Link copied to clipboard
fun StoryProductCardComponent(id: String, text: String?, actionUrl: String?, products: List<STRProductItem>?, customPayload: String?)

Properties

actionUrl
Link copied to clipboard
val actionUrl: String?

action url assigned to the interactive component

customPayload
Link copied to clipboard
open override val customPayload: String?

Custom payload for this ProductCard component if exists

id
Link copied to clipboard
open override val id: String

Id of the interactive component

products
Link copied to clipboard
val products: List<STRProductItem>?

products assigned to the interactive component

text
Link copied to clipboard
val text: String?

text of the interactive component

type
Link copied to clipboard
val type: StoryComponentType

Type of the interactive component