//Granify Android SDK/com.granifyinc.granifysdk.models/WishListItem/WishListItem
WishListItem
[androidJvm]\
constructor(product: Product, dateAdded: Date? = null, priceWhenAdded: Price? = null)
Parameters
androidJvm
product | The product in the wishlist. |
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). |
Throws
IllegalArgumentException | when product stock is null. |
[androidJvm]
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.
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). |