-
public final class OfferDetailsDetailed offer information for a subscription product. Includes base pricing, trial, and introductory offer phases.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringofferTokenprivate final StringofferIdprivate final StringbasePlanIdprivate final StringformattedPriceprivate final LongpriceMicrosprivate final StringcurrencyCodeprivate final StringbillingPeriodprivate final BooleanhasTrialprivate final StringtrialPeriodprivate final BooleanhasIntroOfferprivate final StringintroFormattedPriceprivate final LongintroPriceMicrosprivate final StringintroPeriodprivate final IntegerintroCycles
-
Constructor Summary
Constructors Constructor Description OfferDetails(String offerToken, String offerId, String basePlanId, String formattedPrice, Long priceMicros, String currencyCode, String billingPeriod, Boolean hasTrial, String trialPeriod, Boolean hasIntroOffer, String introFormattedPrice, Long introPriceMicros, String introPeriod, Integer introCycles)
-
Method Summary
Modifier and Type Method Description final StringgetOfferToken()Token required to initiate purchase for this offer. final StringgetOfferId()Google Play offer ID (null for base plans). final StringgetBasePlanId()The base plan ID this offer belongs to. final StringgetFormattedPrice()Formatted base price string (e.g., "$9.99"). final LonggetPriceMicros()Base price in micros (e.g., 9990000 for $9.99). final StringgetCurrencyCode()ISO 4217 currency code (e.g., "USD"). final StringgetBillingPeriod()ISO 8601 billing period (e.g., "P1M" for monthly, "P1Y" for yearly). final BooleangetHasTrial()Whether this offer includes a free trial phase. final StringgetTrialPeriod()Trial period duration (ISO 8601), if applicable. final BooleangetHasIntroOffer()Whether this offer includes an introductory price phase. final StringgetIntroFormattedPrice()Formatted introductory price string, if applicable. final LonggetIntroPriceMicros()Introductory price in micros, if applicable. final StringgetIntroPeriod()Introductory period duration (ISO 8601), if applicable. final IntegergetIntroCycles()Number of introductory billing cycles. -
-
Constructor Detail
-
OfferDetails
OfferDetails(String offerToken, String offerId, String basePlanId, String formattedPrice, Long priceMicros, String currencyCode, String billingPeriod, Boolean hasTrial, String trialPeriod, Boolean hasIntroOffer, String introFormattedPrice, Long introPriceMicros, String introPeriod, Integer introCycles)
-
-
Method Detail
-
getOfferToken
final String getOfferToken()
Token required to initiate purchase for this offer.
-
getOfferId
final String getOfferId()
Google Play offer ID (null for base plans).
-
getBasePlanId
final String getBasePlanId()
The base plan ID this offer belongs to.
-
getFormattedPrice
final String getFormattedPrice()
Formatted base price string (e.g., "$9.99").
-
getPriceMicros
final Long getPriceMicros()
Base price in micros (e.g., 9990000 for $9.99).
-
getCurrencyCode
final String getCurrencyCode()
ISO 4217 currency code (e.g., "USD").
-
getBillingPeriod
final String getBillingPeriod()
ISO 8601 billing period (e.g., "P1M" for monthly, "P1Y" for yearly).
-
getHasTrial
final Boolean getHasTrial()
Whether this offer includes a free trial phase.
-
getTrialPeriod
final String getTrialPeriod()
Trial period duration (ISO 8601), if applicable.
-
getHasIntroOffer
final Boolean getHasIntroOffer()
Whether this offer includes an introductory price phase.
-
getIntroFormattedPrice
final String getIntroFormattedPrice()
Formatted introductory price string, if applicable.
-
getIntroPriceMicros
final Long getIntroPriceMicros()
Introductory price in micros, if applicable.
-
getIntroPeriod
final String getIntroPeriod()
Introductory period duration (ISO 8601), if applicable.
-
getIntroCycles
final Integer getIntroCycles()
Number of introductory billing cycles.
-
-
-
-