Artenus 2D Framework
Artenus Reference
Represents a receipt for a purchased product. It provides information about the purchase. A product has a receipt if it is purchased, or has been purchased and canceled.

See Also:

public interface ProductReceipt

Method Summary

Modifier and TypeMethod and Description
public DategetCancelDate()
If this purchase has been canceled, gets the date it has been canceled.
public StringgetDeveloperPayload()
Gets developer payload associated with this purchase.
public StringgetOrderId()
Gets store-specific order identifier associated with this receipt.
public intgetProductType()
Gets the type of the corresponding product.
public DategetPurchaseDate()
Gets the date of purchase.
public StringgetSKU()
Gets the SKU of the corresponding product.
public booleanisPurchased()
Indicates whether the product is currently in the possession of the user.

Method Detail

getCancelDate
public Date getCancelDate()
If this purchase has been canceled, gets the date it has been canceled.
Returns:
Cancel date, or null if not canceled
getDeveloperPayload
public String getDeveloperPayload()
Gets developer payload associated with this purchase.
Returns:
Developer payload string
getOrderId
public String getOrderId()
Gets store-specific order identifier associated with this receipt.
Returns:
Order identifier
getProductType
public int getProductType()
Gets the type of the corresponding product. It can be one of CONSUMABLE, SUBSCRIPTION, or ENTITLEMENT.
Returns:
Product type
getPurchaseDate
public Date getPurchaseDate()
Gets the date of purchase.
Returns:
Purchase date
getSKU
public String getSKU()
Gets the SKU of the corresponding product.
Returns:
Product SKU
isPurchased
public boolean isPurchased()
Indicates whether the product is currently in the possession of the user.
Returns:
true if purchased, false otherwise