|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Purchase
Represents a successful in-app purchase.
| Field Summary | |
|---|---|
static int |
CANCELED
The Constant CANCELED. |
static int |
NO_VALUE_SET
|
static int |
OWNED
The Constant OWNED. |
static int |
REFUNDED
The Constant REFUNDED. |
static int |
RENEW
The Constant RENEW.– subscribed |
static int |
SUBSCRIBED
The Constant SUBSCRIBED. |
| Method Summary | |
|---|---|
java.util.Date |
getDate()
Retrieves the date this purchase was made. |
java.lang.String |
getDigitalGoodId()
Retrieves the ID of the purchased digital good. |
java.lang.String |
getDigitalGoodSku()
Retrieves the SKU of the purchased digital good. |
java.util.Date |
getEndDate()
Retrieves the date the subscription expires. |
java.lang.String |
getInitialSubscriptionPeriod()
Retrieves the duration of the initial subscription period. |
int |
getItemState()
Retrieves the state of this item. |
java.lang.String |
getLicenseKey()
Retrieves the license key for this purchase, or null if the purchased digital
good does not have a license key. |
java.lang.String |
getMetadata()
Retrieves the metadata for this purchase, or null if no metadata
was included with the purchase. |
java.util.Date |
getStartDate()
Retrieves the date this subscription starts. |
java.lang.String |
getTransactionId()
Retrieves the transaction ID for this purchase. |
| Field Detail |
|---|
static final int NO_VALUE_SET
static final int SUBSCRIBED
static final int REFUNDED
static final int CANCELED
static final int RENEW
static final int OWNED
| Method Detail |
|---|
java.util.Date getDate()
java.util.Date getStartDate()
java.util.Date getEndDate()
java.lang.String getInitialSubscriptionPeriod()
int getItemState()
java.lang.String getLicenseKey()
null if the purchased digital
good does not have a license key.
null.java.lang.String getDigitalGoodId()
java.lang.String getDigitalGoodSku()
java.lang.String getTransactionId()
java.lang.String getMetadata()
null if no metadata
was included with the purchase.
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||