Package com.adapty.models
Class AdaptyProductDiscountPhase
-
- All Implemented Interfaces:
public final class AdaptyProductDiscountPhase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAdaptyProductDiscountPhase.PaymentMode
-
Field Summary
Fields Modifier and Type Field Description private final AdaptyPaywallProduct.Pricepriceprivate final IntegernumberOfPeriodsprivate final AdaptyProductDiscountPhase.PaymentModepaymentModeprivate final StringlocalizedNumberOfPeriodsprivate final AdaptyProductSubscriptionPeriodsubscriptionPeriodprivate final StringlocalizedSubscriptionPeriod
-
Constructor Summary
Constructors Constructor Description AdaptyProductDiscountPhase(AdaptyPaywallProduct.Price price, Integer numberOfPeriods, AdaptyProductDiscountPhase.PaymentMode paymentMode, String localizedNumberOfPeriods, AdaptyProductSubscriptionPeriod subscriptionPeriod, String localizedSubscriptionPeriod)
-
Method Summary
Modifier and Type Method Description final AdaptyPaywallProduct.PricegetPrice()Price of the discount phase in a local currency. final IntegergetNumberOfPeriods()A number of periods the discount phase is available. final AdaptyProductDiscountPhase.PaymentModegetPaymentMode()A payment mode for the discount phase. final StringgetLocalizedNumberOfPeriods()The total duration of the discount phase period. final AdaptyProductSubscriptionPeriodgetSubscriptionPeriod()An information about the period for the discount phase. final StringgetLocalizedSubscriptionPeriod()A formatted subscription period of the discount phase for a user’s locale. Booleanequals(Object other)IntegerhashCode()StringtoString()-
-
Constructor Detail
-
AdaptyProductDiscountPhase
AdaptyProductDiscountPhase(AdaptyPaywallProduct.Price price, Integer numberOfPeriods, AdaptyProductDiscountPhase.PaymentMode paymentMode, String localizedNumberOfPeriods, AdaptyProductSubscriptionPeriod subscriptionPeriod, String localizedSubscriptionPeriod)
-
-
Method Detail
-
getPrice
final AdaptyPaywallProduct.Price getPrice()
Price of the discount phase in a local currency.
-
getNumberOfPeriods
final Integer getNumberOfPeriods()
A number of periods the discount phase is available.
-
getPaymentMode
final AdaptyProductDiscountPhase.PaymentMode getPaymentMode()
A payment mode for the discount phase.
-
getLocalizedNumberOfPeriods
final String getLocalizedNumberOfPeriods()
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).
-
getSubscriptionPeriod
final AdaptyProductSubscriptionPeriod getSubscriptionPeriod()
An information about the period for the discount phase.
-
getLocalizedSubscriptionPeriod
final String getLocalizedSubscriptionPeriod()
A formatted subscription period of the discount phase for a user’s locale.
-
-
-
-