Product

data class Product(val id: String?, val name: String?, val livemode: Boolean?, val image: String?, val description: String?, val url: String?, val shippable: Boolean?, val active: Boolean?, val metadata: Map<String, String>?, val created: Int?, val updated: Int?, val defaultPrice: Int?, val productObject: String?)

Represents a product defined by the merchant in the Frame platform.

Constructors

Link copied to clipboard
constructor(id: String?, name: String?, livemode: Boolean?, image: String?, description: String?, url: String?, shippable: Boolean?, active: Boolean?, metadata: Map<String, String>?, created: Int?, updated: Int?, defaultPrice: Int?, productObject: String?)

Properties

Link copied to clipboard

Whether the product is currently available for purchase.

Link copied to clipboard
val created: Int?

Unix timestamp of when the product was created.

Link copied to clipboard
@SerializedName(value = "default_price")
val defaultPrice: Int?

The default price for the product, in the smallest currency unit (e.g. cents).

Link copied to clipboard

Human-readable description of the product.

Link copied to clipboard
val id: String?

Unique identifier for the product.

Link copied to clipboard

URL of the product image.

Link copied to clipboard

Whether the product was created in live mode (true) or test mode (false).

Link copied to clipboard

Merchant-defined key-value pairs attached to the product.

Link copied to clipboard
val name: String?

Display name of the product.

Link copied to clipboard
@SerializedName(value = "object")
val productObject: String?

The object type identifier returned by the API (typically "product").

Link copied to clipboard

Whether the product requires physical shipment to the customer.

Link copied to clipboard
val updated: Int?

Unix timestamp of when the product was last updated.

Link copied to clipboard
val url: String?

URL for the product's external page or listing.