target.apidocs.com.google.api.services.androidpublisher.model.SubscriptionPurchaseLineItem.html Maven / Gradle / Ivy
SubscriptionPurchaseLineItem (Google Play Android Developer API v3-rev20240129-2.0.0)
com.google.api.services.androidpublisher.model
Class SubscriptionPurchaseLineItem
- 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.SubscriptionPurchaseLineItem
-
public final class SubscriptionPurchaseLineItem
extends com.google.api.client.json.GenericJson
Item-level info for a subscription purchase.
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
SubscriptionPurchaseLineItem()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SubscriptionPurchaseLineItem
clone()
AutoRenewingPlan
getAutoRenewingPlan()
The item is auto renewing.
DeferredItemReplacement
getDeferredItemReplacement()
Information for deferred item replacement.
String
getExpiryTime()
Time at which the subscription expired or will expire unless the access is extended (ex.
OfferDetails
getOfferDetails()
The offer details for this item.
PrepaidPlan
getPrepaidPlan()
The item is prepaid.
String
getProductId()
The purchased product ID (for example, 'monthly001').
SubscriptionPurchaseLineItem
set(String fieldName,
Object value)
SubscriptionPurchaseLineItem
setAutoRenewingPlan(AutoRenewingPlan autoRenewingPlan)
The item is auto renewing.
SubscriptionPurchaseLineItem
setDeferredItemReplacement(DeferredItemReplacement deferredItemReplacement)
Information for deferred item replacement.
SubscriptionPurchaseLineItem
setExpiryTime(String expiryTime)
Time at which the subscription expired or will expire unless the access is extended (ex.
SubscriptionPurchaseLineItem
setOfferDetails(OfferDetails offerDetails)
The offer details for this item.
SubscriptionPurchaseLineItem
setPrepaidPlan(PrepaidPlan prepaidPlan)
The item is prepaid.
SubscriptionPurchaseLineItem
setProductId(String productId)
The purchased product ID (for example, 'monthly001').
-
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
-
getAutoRenewingPlan
public AutoRenewingPlan getAutoRenewingPlan()
The item is auto renewing.
- Returns:
- value or
null
for none
-
setAutoRenewingPlan
public SubscriptionPurchaseLineItem setAutoRenewingPlan(AutoRenewingPlan autoRenewingPlan)
The item is auto renewing.
- Parameters:
autoRenewingPlan
- autoRenewingPlan or null
for none
-
getDeferredItemReplacement
public DeferredItemReplacement getDeferredItemReplacement()
Information for deferred item replacement.
- Returns:
- value or
null
for none
-
setDeferredItemReplacement
public SubscriptionPurchaseLineItem setDeferredItemReplacement(DeferredItemReplacement deferredItemReplacement)
Information for deferred item replacement.
- Parameters:
deferredItemReplacement
- deferredItemReplacement or null
for none
-
getExpiryTime
public String getExpiryTime()
Time at which the subscription expired or will expire unless the access is extended (ex.
renews).
- Returns:
- value or
null
for none
-
setExpiryTime
public SubscriptionPurchaseLineItem setExpiryTime(String expiryTime)
Time at which the subscription expired or will expire unless the access is extended (ex.
renews).
- Parameters:
expiryTime
- expiryTime or null
for none
-
getOfferDetails
public OfferDetails getOfferDetails()
The offer details for this item.
- Returns:
- value or
null
for none
-
setOfferDetails
public SubscriptionPurchaseLineItem setOfferDetails(OfferDetails offerDetails)
The offer details for this item.
- Parameters:
offerDetails
- offerDetails or null
for none
-
getPrepaidPlan
public PrepaidPlan getPrepaidPlan()
The item is prepaid.
- Returns:
- value or
null
for none
-
setPrepaidPlan
public SubscriptionPurchaseLineItem setPrepaidPlan(PrepaidPlan prepaidPlan)
The item is prepaid.
- Parameters:
prepaidPlan
- prepaidPlan or null
for none
-
getProductId
public String getProductId()
The purchased product ID (for example, 'monthly001').
- Returns:
- value or
null
for none
-
setProductId
public SubscriptionPurchaseLineItem setProductId(String productId)
The purchased product ID (for example, 'monthly001').
- Parameters:
productId
- productId or null
for none
-
set
public SubscriptionPurchaseLineItem set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public SubscriptionPurchaseLineItem 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