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

OfferTerm

Updated: Oct 30, 2025

OfferTerm

@Serializable
enum OfferTerm : Enum<OfferTerm>
An enumeration that defines the type of the horizon.platform.iap.models.TrialOffer. This can be utilized to determine the length of time for which the offer is valid. By setting this field, you can easily manage the duration of your offers and provide a better user experience for your customers.

Entries

NameSummary
@SerialName(value = "UNKNOWN")
Unknown
Represents that the OfferTerm is unknown.
@SerialName(value = "WEEKLY")
Weekly
Represents that the offer term is weekly. This means that the offer will be valid for a period of one week from the date of purchase.
@SerialName(value = "BIWEEKLY")
Biweekly
Represents that the offer term is biweekly. This means that the offer will be valid for a period of two weeks from the date of purchase.
@SerialName(value = "MONTHLY")
Monthly
Represents that the offer term is monthly. This means that the offer will be valid for a period of one month from the date of purchase.
@SerialName(value = "QUARTERLY")
Quarterly
Represents that the offer term is quarterly. This means that the offer will be valid for a period of three months from the date of purchase.
@SerialName(value = "SEMIANNUAL")
Semiannual
Represents that the offer term is every 6 months. This means that the offer will be valid for a period of six months from the date of purchase.
@SerialName(value = "ANNUAL")
Annual
Represents that the offer term is annual. This means that the offer will be valid for a period of one year from the date of purchase.
@SerialName(value = "BIANNUAL")
Biannual
Represents that the offer term is every 2 years. This means that the offer will be valid for a period of two years from the date of purchase.

Properties

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

Functions

NameSummary
valueOf
fun valueOf(value: String): OfferTerm
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<OfferTerm>
Returns an array containing the constants of this enum type, in the order they’re declared.