# Print output for @column tags ?> PurchaseHistoryRecord {% setvar book_path %}/reference/com/android/billingclient/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PurchaseHistoryRecord

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.

Summary

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.

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.

String getSignature()

Returns String containing the signature of the purchase data that was signed with the private key of the developer.

String getSku()

Returns the product Id. Included in documentation by the annotations: @Annotations.HideMultiItem

int hashCode()
String toString()

Inherited methods

Public constructors

PurchaseHistoryRecord

public PurchaseHistoryRecord (String jsonPurchaseInfo, 
                String signature)

Parameters
jsonPurchaseInfo String

signature String

Throws
JSONException

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

See also:

getDeveloperPayload

public String getDeveloperPayload ()

Returns the payload specified when the purchase was acknowledged or consumed.

Returns
String

getOriginalJson

public String getOriginalJson ()

Returns a String in JSON format that contains details about the purchase order.

Returns
String

getPurchaseTime

public long getPurchaseTime ()

Returns the time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).

Returns
long

getPurchaseToken

public String getPurchaseToken ()

Returns a token that uniquely identifies a purchase for a given item and user pair.

Returns
String

getSignature

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

getSku

public String getSku ()
Included in documentation by the annotations: @Annotations.HideMultiItem

Returns the product Id.

Returns
String

hashCode

public int hashCode ()

Returns
int

See also:

toString

public String toString ()

Returns
String