API reference
API reference
Select your platform
No SDKs available
No versions available

ProductType

Updated: Aug 26, 2025

ProductType

@Serializable
enum ProductType : Enum<ProductType>
This enum value represents the possible types of a horizon.platform.iap.models.Product, which is an item purchased in the application. An In-app purchase (IAP) add-on can be durable, consuable, or a subscription.

Entries

NameSummary
@SerialName(value = "UNKNOWN")
Unknown
Represents that the ProductType is unknown.
@SerialName(value = "DURABLE")
Durable
This product is a durable IAP item that can be consumed multiple times. It can be purchased only once.
@SerialName(value = "CONSUMABLE")
Consumable
This product is an IAP item that can be consumed only once. It can only be purchased again after it is consumed.
@SerialName(value = "SUBSCRIPTION")
Subscription
This product represents a subscription. Subscriptions provide a way for users to purchase your app or its premium content by way of a recurring payment model.

Properties

NameSummary
name
val name: String
ordinal
val ordinal: Int
value
val value: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): ProductType
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<ProductType>
Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon