AdaptyProductDiscountPhase

class AdaptyProductDiscountPhase(val price: AdaptyPaywallProduct.Price, val numberOfPeriods: Int, val paymentMode: AdaptyProductDiscountPhase.PaymentMode, val localizedNumberOfPeriods: String, val subscriptionPeriod: AdaptyProductSubscriptionPeriod, val localizedSubscriptionPeriod: String)

Constructors

Link copied to clipboard
fun AdaptyProductDiscountPhase(price: AdaptyPaywallProduct.Price, numberOfPeriods: Int, paymentMode: AdaptyProductDiscountPhase.PaymentMode, localizedNumberOfPeriods: String, subscriptionPeriod: AdaptyProductSubscriptionPeriod, localizedSubscriptionPeriod: String)

Types

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

The total duration of the discount phase period. i.e. If you have a 3-month subscription and an intro offer with recurring billing of 2 cycles – this property value equals "6 months" in English while localizedSubscriptionPeriod equals "3 months", and the price shows the price for a single billing period (in this case – 3 months).

Link copied to clipboard

A formatted subscription period of the discount phase for a user’s locale.

Link copied to clipboard

A number of periods the discount phase is available.

Link copied to clipboard

A payment mode for the discount phase.

Link copied to clipboard

Price of the discount phase in a local currency.

Link copied to clipboard

An information about the period for the discount phase.