public final class InAppProduct extends 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 Developer API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
InAppProduct() |
Modifier and Type | Method and Description |
---|---|
InAppProduct |
clone() |
String |
getDefaultLanguage()
The default language of the localized data, as defined by BCP 47.
|
Price |
getDefaultPrice()
Default price cannot be zero.
|
String |
getGracePeriod()
Grace period of the subscription, specified in ISO 8601 format.
|
Map<String,InAppProductListing> |
getListings()
List of localized title and description data.
|
String |
getPackageName()
The package name of the parent app.
|
Map<String,Price> |
getPrices()
Prices per buyer region.
|
String |
getPurchaseType()
Purchase type enum value.
|
String |
getSku()
The stock-keeping-unit (SKU) of the product, unique within an app.
|
String |
getStatus() |
String |
getSubscriptionPeriod()
Subscription period, specified in ISO 8601 format.
|
String |
getTrialPeriod()
Trial period, specified in ISO 8601 format.
|
InAppProduct |
set(String fieldName,
Object value) |
InAppProduct |
setDefaultLanguage(String defaultLanguage)
The default language of the localized data, as defined by BCP 47.
|
InAppProduct |
setDefaultPrice(Price defaultPrice)
Default price cannot be zero.
|
InAppProduct |
setGracePeriod(String gracePeriod)
Grace period of the subscription, specified in ISO 8601 format.
|
InAppProduct |
setListings(Map<String,InAppProductListing> listings)
List of localized title and description data.
|
InAppProduct |
setPackageName(String packageName)
The package name of the parent app.
|
InAppProduct |
setPrices(Map<String,Price> prices)
Prices per buyer region.
|
InAppProduct |
setPurchaseType(String purchaseType)
Purchase type enum value.
|
InAppProduct |
setSku(String sku)
The stock-keeping-unit (SKU) of the product, unique within an app.
|
InAppProduct |
setStatus(String status) |
InAppProduct |
setSubscriptionPeriod(String subscriptionPeriod)
Subscription period, specified in ISO 8601 format.
|
InAppProduct |
setTrialPeriod(String trialPeriod)
Trial period, specified in ISO 8601 format.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getDefaultLanguage()
null
for nonepublic InAppProduct setDefaultLanguage(String defaultLanguage)
defaultLanguage
- defaultLanguage or null
for nonepublic Price getDefaultPrice()
null
for nonepublic InAppProduct setDefaultPrice(Price defaultPrice)
defaultPrice
- defaultPrice or null
for nonepublic String getGracePeriod()
null
for nonepublic InAppProduct setGracePeriod(String gracePeriod)
gracePeriod
- gracePeriod or null
for nonepublic Map<String,InAppProductListing> getListings()
null
for nonepublic InAppProduct setListings(Map<String,InAppProductListing> listings)
listings
- listings or null
for nonepublic String getPackageName()
null
for nonepublic InAppProduct setPackageName(String packageName)
packageName
- packageName or null
for nonepublic Map<String,Price> getPrices()
null
for nonepublic InAppProduct setPrices(Map<String,Price> prices)
prices
- prices or null
for nonepublic String getPurchaseType()
null
for nonepublic InAppProduct setPurchaseType(String purchaseType)
purchaseType
- purchaseType or null
for nonepublic String getSku()
null
for nonepublic InAppProduct setSku(String sku)
sku
- sku or null
for nonepublic String getStatus()
null
for nonepublic InAppProduct setStatus(String status)
status
- status or null
for nonepublic String getSubscriptionPeriod()
null
for nonepublic InAppProduct setSubscriptionPeriod(String subscriptionPeriod)
subscriptionPeriod
- subscriptionPeriod or null
for nonepublic String getTrialPeriod()
null
for nonepublic InAppProduct setTrialPeriod(String trialPeriod)
trialPeriod
- trialPeriod or null
for nonepublic InAppProduct set(String fieldName, Object value)
set
in class GenericJson
public InAppProduct clone()
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.