//Granify Android SDK/com.granifyinc.granifysdk.models/WishListItem
WishListItem
@Serializable(with = WishListItemSerializer::class)
data class WishListItem(val productId: String, val inStock: Boolean, val sku: String? = null, val price: Price? = null, val regularPrice: Price? = null, val title: String? = null, val image: URL? = null, val dateAdded: Date? = null, val priceWhenAdded: Price? = null)
Represents a product within a wish list.
Parameters
androidJvm
| productId | The parent ID of the product. |
| inStock | Whether the item is currently in stock. |
| sku | The specific SKU of the product/variant (optional). |
| price | The current unit price of the product after discount or sale pricing (optional). |
| regularPrice | The regular price of the product before sales or discounts (optional). |
| title | The name or title of the product (optional). |
| image | The address of the product image (optional). |
| dateAdded | The date when the product was added to the list (optional). |
| priceWhenAdded | The price of the product when it was added to the list (optional). |
Constructors
| WishListItem | [androidJvm] @JvmOverloads constructor(product: Product, dateAdded: Date? = null, priceWhenAdded: Price? = null)constructor(productId: String, inStock: Boolean, sku: String? = null, price: Price? = null, regularPrice: Price? = null, title: String? = null, image: URL? = null, dateAdded: Date? = null, priceWhenAdded: Price? = null) Initializes a WishListItem instance. |
Properties
| Name | Summary |
|---|---|
| dateAdded | [androidJvm] val dateAdded: Date? = null |
| image | [androidJvm] val image: URL? = null |
| inStock | [androidJvm] val inStock: Boolean |
| price | [androidJvm] val price: Price? = null |
| priceWhenAdded | [androidJvm] val priceWhenAdded: Price? = null |
| productId | [androidJvm] val productId: String |
| regularPrice | [androidJvm] val regularPrice: Price? = null |
| sku | [androidJvm] val sku: String? = null |
| title | [androidJvm] val title: String? = null |