ProductCardItem

data class ProductCardItem(val id: String, val name: String, val price: Double, val currency: String, val compareAtPrice: Double? = null, val imageUrl: String? = null, val url: String? = null, val sku: String? = null, val appStoreProductId: String? = null, val googlePlayProductId: String? = null, val basePlanId: String? = null, val offerId: String? = null, val billingPeriod: String? = null, val trialDays: Int? = null)

One product in a ProductCard.

Constructors

Link copied to clipboard
constructor(id: String, name: String, price: Double, currency: String, compareAtPrice: Double? = null, imageUrl: String? = null, url: String? = null, sku: String? = null, appStoreProductId: String? = null, googlePlayProductId: String? = null, basePlanId: String? = null, offerId: String? = null, billingPeriod: String? = null, trialDays: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

App Store product id, when the shop sells this through in-app purchase.

Link copied to clipboard
val basePlanId: String? = null

Google Play subscriptions: the base plan to buy.

Link copied to clipboard
val billingPeriod: String? = null

Subscriptions: ISO 8601 billing period (P1M, P1Y…).

Link copied to clipboard
val compareAtPrice: Double? = null

Strike-through price.

Link copied to clipboard

Currency code.

Link copied to clipboard

Google Play product id, when the shop sells this through in-app purchase.

Link copied to clipboard

Sold through in-app purchase on at least one store.

Link copied to clipboard
val id: String

Product id.

Link copied to clipboard
val imageUrl: String? = null

Image URL.

Link copied to clipboard

Name.

Link copied to clipboard
val offerId: String? = null

Google Play subscriptions: the offer to apply (e.g. a free trial).

Link copied to clipboard

Price.

Link copied to clipboard
val sku: String? = null

SKU.

Link copied to clipboard
val trialDays: Int? = null

Subscriptions: free trial days.

Link copied to clipboard
val url: String? = null

Product page URL.