public final class LineItem
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 |
|---|
LineItem() |
| Modifier and Type | Method and Description |
|---|---|
LineItem |
clone() |
Money |
getListingPrice()
Item's listed price on Play Store, this may or may not include tax.
|
OneTimePurchaseDetails |
getOneTimePurchaseDetails()
Details of a one-time purchase.
|
PaidAppDetails |
getPaidAppDetails()
Details of a paid app purchase.
|
String |
getProductId()
The purchased product ID or in-app SKU (for example, 'monthly001' or 'com.some.thing.inapp1').
|
String |
getProductTitle()
Developer-specified name of the product.
|
SubscriptionDetails |
getSubscriptionDetails()
Details of a subscription purchase.
|
Money |
getTax()
The tax paid for this line item.
|
Money |
getTotal()
The total amount paid by the user for this line item, taking into account discounts and tax.
|
LineItem |
set(String fieldName,
Object value) |
LineItem |
setListingPrice(Money listingPrice)
Item's listed price on Play Store, this may or may not include tax.
|
LineItem |
setOneTimePurchaseDetails(OneTimePurchaseDetails oneTimePurchaseDetails)
Details of a one-time purchase.
|
LineItem |
setPaidAppDetails(PaidAppDetails paidAppDetails)
Details of a paid app purchase.
|
LineItem |
setProductId(String productId)
The purchased product ID or in-app SKU (for example, 'monthly001' or 'com.some.thing.inapp1').
|
LineItem |
setProductTitle(String productTitle)
Developer-specified name of the product.
|
LineItem |
setSubscriptionDetails(SubscriptionDetails subscriptionDetails)
Details of a subscription purchase.
|
LineItem |
setTax(Money tax)
The tax paid for this line item.
|
LineItem |
setTotal(Money total)
The total amount paid by the user for this line item, taking into account discounts and tax.
|
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 Money getListingPrice()
null for nonepublic LineItem setListingPrice(Money listingPrice)
listingPrice - listingPrice or null for nonepublic OneTimePurchaseDetails getOneTimePurchaseDetails()
null for nonepublic LineItem setOneTimePurchaseDetails(OneTimePurchaseDetails oneTimePurchaseDetails)
oneTimePurchaseDetails - oneTimePurchaseDetails or null for nonepublic PaidAppDetails getPaidAppDetails()
null for nonepublic LineItem setPaidAppDetails(PaidAppDetails paidAppDetails)
paidAppDetails - paidAppDetails or null for nonepublic String getProductId()
null for nonepublic LineItem setProductId(String productId)
productId - productId or null for nonepublic String getProductTitle()
null for nonepublic LineItem setProductTitle(String productTitle)
productTitle - productTitle or null for nonepublic SubscriptionDetails getSubscriptionDetails()
null for nonepublic LineItem setSubscriptionDetails(SubscriptionDetails subscriptionDetails)
subscriptionDetails - subscriptionDetails or null for nonepublic Money getTax()
null for nonepublic LineItem setTax(Money tax)
tax - tax or null for nonepublic Money getTotal()
null for nonepublic LineItem setTotal(Money total)
total - total or null for nonepublic LineItem set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic LineItem clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.