OfferType

@Serializable
sealed class OfferType(source)

Selection type for offer selection. When Auto, the SDK will automatically select the best offer. When None, no offer will be selected (use base plan/option only). When Specific, the SDK will use the exact offer ID provided.

Inheritors

Types

Link copied to clipboard
object Auto : OfferType

Auto-select the best offer (e.g., longest free trial or cheapest)

Link copied to clipboard
object Companion
Link copied to clipboard
object None : OfferType

Don't select any offer - use base plan/option only

Link copied to clipboard
data class Specific(val id: String) : OfferType

Use a specific offer by ID

Properties

Link copied to clipboard

Returns the ID if this is a Specific selection, null otherwise

Functions

Link copied to clipboard
fun toOffer(): Offer

Converts to the Offer type used in ProductItem