target.apidocs.com.google.api.services.androidpublisher.model.Subscription.html Maven / Gradle / Ivy
Subscription (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class Subscription
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidpublisher.model.Subscription
-
public final class Subscription
extends com.google.api.client.json.GenericJson
A single subscription for an app.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Subscription
clone()
Boolean
getArchived()
Output only.
List<BasePlan>
getBasePlans()
The set of base plans for this subscription.
List<SubscriptionListing>
getListings()
Required.
String
getPackageName()
Immutable.
String
getProductId()
Immutable.
SubscriptionTaxAndComplianceSettings
getTaxAndComplianceSettings()
Details about taxes and legal compliance.
Subscription
set(String fieldName,
Object value)
Subscription
setArchived(Boolean archived)
Output only.
Subscription
setBasePlans(List<BasePlan> basePlans)
The set of base plans for this subscription.
Subscription
setListings(List<SubscriptionListing> listings)
Required.
Subscription
setPackageName(String packageName)
Immutable.
Subscription
setProductId(String productId)
Immutable.
Subscription
setTaxAndComplianceSettings(SubscriptionTaxAndComplianceSettings taxAndComplianceSettings)
Details about taxes and legal compliance.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getArchived
public Boolean getArchived()
Output only. Whether this subscription is archived. Archived subscriptions are not available to
any subscriber any longer, cannot be updated, and are not returned in list requests unless the
show archived flag is passed in.
- Returns:
- value or
null
for none
-
setArchived
public Subscription setArchived(Boolean archived)
Output only. Whether this subscription is archived. Archived subscriptions are not available to
any subscriber any longer, cannot be updated, and are not returned in list requests unless the
show archived flag is passed in.
- Parameters:
archived
- archived or null
for none
-
getBasePlans
public List<BasePlan> getBasePlans()
The set of base plans for this subscription. Represents the prices and duration of the
subscription if no other offers apply.
- Returns:
- value or
null
for none
-
setBasePlans
public Subscription setBasePlans(List<BasePlan> basePlans)
The set of base plans for this subscription. Represents the prices and duration of the
subscription if no other offers apply.
- Parameters:
basePlans
- basePlans or null
for none
-
getListings
public List<SubscriptionListing> getListings()
Required. List of localized listings for this subscription. Must contain at least an entry for
the default language of the parent app.
- Returns:
- value or
null
for none
-
setListings
public Subscription setListings(List<SubscriptionListing> listings)
Required. List of localized listings for this subscription. Must contain at least an entry for
the default language of the parent app.
- Parameters:
listings
- listings or null
for none
-
getPackageName
public String getPackageName()
Immutable. Package name of the parent app.
- Returns:
- value or
null
for none
-
setPackageName
public Subscription setPackageName(String packageName)
Immutable. Package name of the parent app.
- Parameters:
packageName
- packageName or null
for none
-
getProductId
public String getProductId()
Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be
composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must
start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in
length.
- Returns:
- value or
null
for none
-
setProductId
public Subscription setProductId(String productId)
Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be
composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must
start with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in
length.
- Parameters:
productId
- productId or null
for none
-
getTaxAndComplianceSettings
public SubscriptionTaxAndComplianceSettings getTaxAndComplianceSettings()
Details about taxes and legal compliance.
- Returns:
- value or
null
for none
-
setTaxAndComplianceSettings
public Subscription setTaxAndComplianceSettings(SubscriptionTaxAndComplianceSettings taxAndComplianceSettings)
Details about taxes and legal compliance.
- Parameters:
taxAndComplianceSettings
- taxAndComplianceSettings or null
for none
-
set
public Subscription set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Subscription clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy