com.annahid.libs.artenus.unified
ProductReceipt
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 Type | Method and Description |
|---|---|
public Date | getCancelDate() If this purchase has been canceled, gets the date it has been canceled. |
public String | getDeveloperPayload() Gets developer payload associated with this purchase. |
public String | getOrderId() Gets store-specific order identifier associated with this receipt. |
public int | getProductType() Gets the type of the corresponding product. |
public Date | getPurchaseDate() Gets the date of purchase. |
public String | getSKU() Gets the SKU of the corresponding product. |
public boolean | isPurchased() 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 |