-
public final class DiscountDisplayInfoAndroidDiscount display information for one-time purchase offers (Android) Available in Google Play Billing Library 7.0+
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDiscountDisplayInfoAndroid.Companion
-
Field Summary
Fields Modifier and Type Field Description private final DiscountAmountAndroiddiscountAmountprivate final IntegerpercentageDiscount
-
Constructor Summary
Constructors Constructor Description DiscountDisplayInfoAndroid(DiscountAmountAndroid discountAmount, Integer percentageDiscount)
-
Method Summary
Modifier and Type Method Description final DiscountAmountAndroidgetDiscountAmount()Absolute discount amount details Only returned for fixed amount discounts final IntegergetPercentageDiscount()Percentage discount (e.g. final Map<String, Object>toJson()-
-
Constructor Detail
-
DiscountDisplayInfoAndroid
DiscountDisplayInfoAndroid(DiscountAmountAndroid discountAmount, Integer percentageDiscount)
-
-
Method Detail
-
getDiscountAmount
final DiscountAmountAndroid getDiscountAmount()
Absolute discount amount details Only returned for fixed amount discounts
-
getPercentageDiscount
final Integer getPercentageDiscount()
Percentage discount (e.g., 33 for 33% off) Only returned for percentage-based discounts
-
-
-
-