public final class PurchaseUpdatesResponse
extends java.lang.Object
PurchasingService.getPurchaseUpdates(boolean)
.
.Modifier and Type | Class and Description |
---|---|
static class |
PurchaseUpdatesResponse.RequestStatus
Represents the status of a purchase updates request initiated via
PurchasingService.getPurchaseUpdates(boolean) . |
Constructor and Description |
---|
PurchaseUpdatesResponse(com.amazon.device.iap.internal.model.PurchaseUpdatesResponseBuilder builder)
Creates an instance of the PurchaseUpdatesResponse.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Receipt> |
getReceipts()
Returns receipts, or an empty list if
getRequestStatus() is not
PurchaseUpdatesResponse.RequestStatus.SUCCESSFUL , or there are no
receipts. |
RequestId |
getRequestId()
Returns the request ID originally returned by
PurchasingService.getPurchaseUpdates(boolean) . |
PurchaseUpdatesResponse.RequestStatus |
getRequestStatus()
Returns the status of the request.
|
UserData |
getUserData()
Returns the user ID and marketplace
information of the user associated with the purchase.
|
boolean |
hasMore()
Returns true if more results are available.
|
org.json.JSONObject |
toJSON()
Utility method to return a JSON object containing the information for a
PurchaseUpdatesResponse instance.
|
java.lang.String |
toString()
Utility method to return a String object that contains the information
for a PurchaseUpdatesResponse instance.
|
public PurchaseUpdatesResponse(com.amazon.device.iap.internal.model.PurchaseUpdatesResponseBuilder builder)
builder
- The builder for the PurchaseUpdatesResponse.public RequestId getRequestId()
PurchasingService.getPurchaseUpdates(boolean)
. This identifier
can be used to correlate the original request with this response.public UserData getUserData()
public PurchaseUpdatesResponse.RequestStatus getRequestStatus()
public java.util.List<Receipt> getReceipts()
getRequestStatus()
is not
PurchaseUpdatesResponse.RequestStatus.SUCCESSFUL
, or there are no
receipts.
Canceled entitlement receipt may have null value for all other properties in
Receipt
object except sku while interacting with previous versions of the Amazon Appstore.public boolean hasMore()
PurchasingService.getPurchaseUpdates(boolean)
to retrieve more
results.public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException