# Print output for @column tags ?>
public
class
PurchaseHistoryRecord
extends Object
| java.lang.Object | |
| ↳ | com.android.billingclient.api.PurchaseHistoryRecord |
Represents an in-app billing purchase history record.
This class includes a subset of fields in Purchase.
Public constructors | |
|---|---|
PurchaseHistoryRecord(String jsonPurchaseInfo, String signature)
|
|
Public methods | |
|---|---|
boolean
|
equals(Object o)
|
String
|
getDeveloperPayload()
Returns the payload specified when the purchase was acknowledged or consumed. |
String
|
getOriginalJson()
Returns a String in JSON format that contains details about the purchase order. |
List<String>
|
getProducts()
Returns the product Ids. |
long
|
getPurchaseTime()
Returns the time the product was purchased, in milliseconds since the epoch (Jan 1, 1970). |
String
|
getPurchaseToken()
Returns a token that uniquely identifies a purchase for a given item and user pair. |
int
|
getQuantity()
Returns the quantity of the purchased product. |
String
|
getSignature()
Returns String containing the signature of the purchase data that was signed with the private key of the developer. |
ArrayList<String>
|
getSkus()
This method is deprecated.
Use |
int
|
hashCode()
|
String
|
toString()
|
Inherited methods | |
|---|---|
public PurchaseHistoryRecord (String jsonPurchaseInfo, String signature)
| Parameters | |
|---|---|
jsonPurchaseInfo |
String |
signature |
String |
| Throws | |
|---|---|
JSONException |
|
public String getDeveloperPayload ()
Returns the payload specified when the purchase was acknowledged or consumed.
| Returns | |
|---|---|
String |
|
public String getOriginalJson ()
Returns a String in JSON format that contains details about the purchase order.
| Returns | |
|---|---|
String |
|
public long getPurchaseTime ()
Returns the time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
| Returns | |
|---|---|
long |
|
public String getPurchaseToken ()
Returns a token that uniquely identifies a purchase for a given item and user pair.
| Returns | |
|---|---|
String |
|
public int getQuantity ()
Returns the quantity of the purchased product.
Always returns 1 for BillingClient.SkuType.SUBS items;
could be greater than 1 for BillingClient.SkuType.INAPP
items.
| Returns | |
|---|---|
int |
|
public String getSignature ()
Returns String containing the signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme.
| Returns | |
|---|---|
String |
|
public ArrayList<String> getSkus ()
This method is deprecated.
Use getProducts() instead.
Returns the product Ids.
| Returns | |
|---|---|
ArrayList<String> |
|