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

OfferType

Updated: Aug 26, 2025

OfferType

@Serializable
enum OfferType : Enum<OfferType>
An enumeration that defines the type of the horizon.platform.iap.models.TrialOffer. This can be utilized to identify the specific type of offer, such as a free trial or an intro offer. By setting this field, you can easily differentiate between different types of offers and provide a better user experience for your customers.

Entries

NameSummary
@SerialName(value = "UNKNOWN")
Unknown
Represents that the OfferType is unknown.
@SerialName(value = "INTRO_OFFER")
IntroOffer
This value indicates that the offer is an intro offer, which is typically a special promotion or discount offered to new customers.
@SerialName(value = "FREE_TRIAL")
FreeTrial
This value indicates that the offer is a free trial, which allows customers to try out a product or service without paying for it.

Properties

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

Functions

NameSummary
valueOf
fun valueOf(value: String): OfferType
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<OfferType>
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