public final class OneTimePurchaseDetails
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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
OneTimePurchaseDetails() |
Modifier and Type | Method and Description |
---|---|
OneTimePurchaseDetails |
clone() |
String |
getOfferId()
The offer ID of the one-time purchase offer.
|
String |
getPurchaseOptionId()
ID of the purchase option.
|
Integer |
getQuantity()
The number of items purchased (for multi-quantity item purchases).
|
RentalDetails |
getRentalDetails()
The details of a rent purchase.
|
OneTimePurchaseDetails |
set(String fieldName,
Object value) |
OneTimePurchaseDetails |
setOfferId(String offerId)
The offer ID of the one-time purchase offer.
|
OneTimePurchaseDetails |
setPurchaseOptionId(String purchaseOptionId)
ID of the purchase option.
|
OneTimePurchaseDetails |
setQuantity(Integer quantity)
The number of items purchased (for multi-quantity item purchases).
|
OneTimePurchaseDetails |
setRentalDetails(RentalDetails rentalDetails)
The details of a rent purchase.
|
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 getOfferId()
null
for nonepublic OneTimePurchaseDetails setOfferId(String offerId)
offerId
- offerId or null
for nonepublic String getPurchaseOptionId()
null
for nonepublic OneTimePurchaseDetails setPurchaseOptionId(String purchaseOptionId)
purchaseOptionId
- purchaseOptionId or null
for nonepublic Integer getQuantity()
null
for nonepublic OneTimePurchaseDetails setQuantity(Integer quantity)
quantity
- quantity or null
for nonepublic RentalDetails getRentalDetails()
null
for nonepublic OneTimePurchaseDetails setRentalDetails(RentalDetails rentalDetails)
rentalDetails
- rentalDetails or null
for nonepublic OneTimePurchaseDetails set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public OneTimePurchaseDetails clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.