PurchaseHistoryRecord

public class 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
String

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

String

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

List<String>

Returns the product Ids.

long

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

String

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

int

Returns the quantity of the purchased product.

String

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

ArrayList<String>

This method is deprecated.

Use getProducts instead.

int
String

Public constructors

PurchaseHistoryRecord

public PurchaseHistoryRecord(String jsonPurchaseInfo, String signature)

Public methods

equals

public boolean equals(Object o)
See also
equals

getDeveloperPayload

public String getDeveloperPayload()

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

getOriginalJson

public String getOriginalJson()

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

getProducts

public List<StringgetProducts()

Returns the product Ids.

getPurchaseTime

public long getPurchaseTime()

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

getPurchaseToken

public String getPurchaseToken()

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

getQuantity

public int getQuantity()

Returns the quantity of the purchased product.

Always returns 1 for SUBS items; could be greater than 1 for INAPP items.

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.

getSkus

public ArrayList<StringgetSkus()

Returns the product Ids.

hashCode

public int hashCode()
See also
hashCode

toString

public String toString()