public final class SubscriptionOffer
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Play Android Developer API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SubscriptionOffer() |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionOffer |
clone() |
String |
getBasePlanId()
Required.
|
String |
getOfferId()
Required.
|
List<OfferTag> |
getOfferTags()
List of up to 20 custom tags specified for this offer, and returned to the app through the
billing library.
|
OtherRegionsSubscriptionOfferConfig |
getOtherRegionsConfig()
The configuration for any new locations Play may launch in the future.
|
String |
getPackageName()
Required.
|
List<SubscriptionOfferPhase> |
getPhases()
Required.
|
String |
getProductId()
Required.
|
List<RegionalSubscriptionOfferConfig> |
getRegionalConfigs()
Required.
|
String |
getState()
Output only.
|
SubscriptionOfferTargeting |
getTargeting()
The requirements that users need to fulfil to be eligible for this offer.
|
SubscriptionOffer |
set(String fieldName,
Object value) |
SubscriptionOffer |
setBasePlanId(String basePlanId)
Required.
|
SubscriptionOffer |
setOfferId(String offerId)
Required.
|
SubscriptionOffer |
setOfferTags(List<OfferTag> offerTags)
List of up to 20 custom tags specified for this offer, and returned to the app through the
billing library.
|
SubscriptionOffer |
setOtherRegionsConfig(OtherRegionsSubscriptionOfferConfig otherRegionsConfig)
The configuration for any new locations Play may launch in the future.
|
SubscriptionOffer |
setPackageName(String packageName)
Required.
|
SubscriptionOffer |
setPhases(List<SubscriptionOfferPhase> phases)
Required.
|
SubscriptionOffer |
setProductId(String productId)
Required.
|
SubscriptionOffer |
setRegionalConfigs(List<RegionalSubscriptionOfferConfig> regionalConfigs)
Required.
|
SubscriptionOffer |
setState(String state)
Output only.
|
SubscriptionOffer |
setTargeting(SubscriptionOfferTargeting targeting)
The requirements that users need to fulfil to be eligible for this offer.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getBasePlanId()
null for nonepublic SubscriptionOffer setBasePlanId(String basePlanId)
basePlanId - basePlanId or null for nonepublic String getOfferId()
null for nonepublic SubscriptionOffer setOfferId(String offerId)
offerId - offerId or null for nonepublic List<OfferTag> getOfferTags()
null for nonepublic SubscriptionOffer setOfferTags(List<OfferTag> offerTags)
offerTags - offerTags or null for nonepublic OtherRegionsSubscriptionOfferConfig getOtherRegionsConfig()
null for nonepublic SubscriptionOffer setOtherRegionsConfig(OtherRegionsSubscriptionOfferConfig otherRegionsConfig)
otherRegionsConfig - otherRegionsConfig or null for nonepublic String getPackageName()
null for nonepublic SubscriptionOffer setPackageName(String packageName)
packageName - packageName or null for nonepublic List<SubscriptionOfferPhase> getPhases()
null for nonepublic SubscriptionOffer setPhases(List<SubscriptionOfferPhase> phases)
phases - phases or null for nonepublic String getProductId()
null for nonepublic SubscriptionOffer setProductId(String productId)
productId - productId or null for nonepublic List<RegionalSubscriptionOfferConfig> getRegionalConfigs()
null for nonepublic SubscriptionOffer setRegionalConfigs(List<RegionalSubscriptionOfferConfig> regionalConfigs)
regionalConfigs - regionalConfigs or null for nonepublic String getState()
null for nonepublic SubscriptionOffer setState(String state)
state - state or null for nonepublic SubscriptionOfferTargeting getTargeting()
null for nonepublic SubscriptionOffer setTargeting(SubscriptionOfferTargeting targeting)
targeting - targeting or null for nonepublic SubscriptionOffer set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SubscriptionOffer clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.