-
@Immutable() public final class PaywallPlan
-
-
Field Summary
Fields Modifier and Type Field Description private final StringdisplayNameprivate final StringdisplayPriceprivate final StringtrialLabelprivate final Stringidprivate final Stringproduct_idprivate final Stringnameprivate final Stringpriceprivate final Stringperiodprivate final Stringbadgeprivate final Stringtrial_durationprivate final Booleanis_defaultprivate final Stringlabelprivate final Stringprice_displayprivate final Integersort_orderprivate final PaywallPlanTrialtrialprivate final Stringdescriptionprivate final ImmutableList<String>featuresprivate final Stringsavings_textprivate final Stringcta_textprivate final Stringiconprivate final Stringimage_urlprivate final Stringoriginal_price_displayprivate final Stringprice_total_displayprivate final PaywallDescriptionBadgedescription_badgeprivate final Stringprice_colorprivate final Stringsubtitle_colorprivate final Floatsubtitle_font_sizeprivate final Stringsubtitle_alignprivate final Stringdisplay_modeprivate final Floattext_only_font_sizeprivate final Stringtext_only_color
-
Constructor Summary
Constructors Constructor Description PaywallPlan(String id, String product_id, String name, String price, String period, String badge, String trial_duration, Boolean is_default, String label, String price_display, Integer sort_order, PaywallPlanTrial trial, String description, ImmutableList<String> features, String savings_text, String cta_text, String icon, String image_url, String original_price_display, String price_total_display, PaywallDescriptionBadge description_badge, String price_color, String subtitle_color, Float subtitle_font_size, String subtitle_align, String display_mode, Float text_only_font_size, String text_only_color)
-
Method Summary
Modifier and Type Method Description final StringgetDisplayName()final StringgetDisplayPrice()final StringgetTrialLabel()final StringgetId()final StringgetProduct_id()final StringgetName()final StringgetPrice()final StringgetPeriod()final StringgetBadge()final StringgetTrial_duration()final BooleangetIs_default()final StringgetLabel()final StringgetPrice_display()final IntegergetSort_order()final PaywallPlanTrialgetTrial()final StringgetDescription()final ImmutableList<String>getFeatures()final StringgetSavings_text()final StringgetCta_text()final StringgetIcon()final StringgetImage_url()final StringgetOriginal_price_display()Struck-through "old" price shown beside displayPrice (iOS original_price_display). final StringgetPrice_total_display()SPEC-438 (#548) — the real charged total, shown under a per-period headline price. final PaywallDescriptionBadgegetDescription_badge()SPEC-438 (#544) — render descriptionas a coloured pill instead of plain text.final StringgetPrice_color()#588 — this plan's price colour. final StringgetSubtitle_color()#587 — this plan's subtitle type. final FloatgetSubtitle_font_size()final StringgetSubtitle_align()final StringgetDisplay_mode()#589 — card(default) ortext_only: name and price on one centred line, with no border, background, badge, subtitle or selection control.final FloatgetText_only_font_size()final StringgetText_only_color()-
-
Constructor Detail
-
PaywallPlan
PaywallPlan(String id, String product_id, String name, String price, String period, String badge, String trial_duration, Boolean is_default, String label, String price_display, Integer sort_order, PaywallPlanTrial trial, String description, ImmutableList<String> features, String savings_text, String cta_text, String icon, String image_url, String original_price_display, String price_total_display, PaywallDescriptionBadge description_badge, String price_color, String subtitle_color, Float subtitle_font_size, String subtitle_align, String display_mode, Float text_only_font_size, String text_only_color)
-
-
Method Detail
-
getDisplayName
final String getDisplayName()
-
getDisplayPrice
final String getDisplayPrice()
-
getTrialLabel
final String getTrialLabel()
-
getProduct_id
final String getProduct_id()
-
getTrial_duration
final String getTrial_duration()
-
getIs_default
final Boolean getIs_default()
-
getPrice_display
final String getPrice_display()
-
getSort_order
final Integer getSort_order()
-
getTrial
final PaywallPlanTrial getTrial()
-
getDescription
final String getDescription()
-
getFeatures
final ImmutableList<String> getFeatures()
-
getSavings_text
final String getSavings_text()
-
getCta_text
final String getCta_text()
-
getImage_url
final String getImage_url()
-
getOriginal_price_display
final String getOriginal_price_display()
Struck-through "old" price shown beside displayPrice (iOS original_price_display).
-
getPrice_total_display
final String getPrice_total_display()
SPEC-438 (#548) — the real charged total, shown under a per-period headline price.
-
getDescription_badge
final PaywallDescriptionBadge getDescription_badge()
SPEC-438 (#544) — render
descriptionas a coloured pill instead of plain text.
-
getPrice_color
final String getPrice_color()
#588 — this plan's price colour. Beats the section's
elements.pricestyle and the selected/unselected text colour, because the whole point is to make ONE tier's price stand out from the others; anything that could override it would defeat it. iOS parity.
-
getSubtitle_color
final String getSubtitle_color()
#587 — this plan's subtitle type. Section-level
elements.descriptionstyles every plan identically, which is the opposite of what an author wants when one tier should read differently.
-
getSubtitle_font_size
final Float getSubtitle_font_size()
-
getSubtitle_align
final String getSubtitle_align()
-
getDisplay_mode
final String getDisplay_mode()
#589 —
card(default) ortext_only: name and price on one centred line, with no border, background, badge, subtitle or selection control. Still selectable — it is a plan.
-
getText_only_font_size
final Float getText_only_font_size()
-
getText_only_color
final String getText_only_color()
-
-
-
-