|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazon.inapp.purchasing.PurchaseResponse
public final class PurchaseResponse
Represents the result of a call to PurchasingManager.initiatePurchaseRequest(String)
and is sent to the
registered PurchasingObserver
asynchronously via
PurchasingObserver.onPurchaseResponse(PurchaseResponse)
.
Nested Class Summary | |
---|---|
static class |
PurchaseResponse.PurchaseRequestStatus
Indicates the result of a purchase operation initiated via PurchasingManager.initiatePurchaseRequest(String) . |
Method Summary | |
---|---|
PurchaseResponse.PurchaseRequestStatus |
getPurchaseRequestStatus()
Indicates the status of the purchase request. |
Receipt |
getReceipt()
In the case where getPurchaseRequestStatus() returns
PurchaseResponse.PurchaseRequestStatus.SUCCESSFUL a Receipt will also be returned with details of the item that
was purchased. |
java.lang.String |
getRequestId()
Provides access to the request ID originally returned by PurchasingManager.initiatePurchaseRequest(String) . |
java.lang.String |
getUserId()
Returns the ID of the user who made the request. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getRequestId()
PurchasingManager.initiatePurchaseRequest(String)
.
This identifier can be used to correlate the original request with this response.
public java.lang.String getUserId()
public Receipt getReceipt()
getPurchaseRequestStatus()
returns
PurchaseResponse.PurchaseRequestStatus.SUCCESSFUL
a Receipt
will also be returned with details of the item that
was purchased. If the PurchaseResponse.PurchaseRequestStatus
is not PurchaseResponse.PurchaseRequestStatus.SUCCESSFUL
, this method
will return null.
Receipt
in the case where getPurchaseRequestStatus()
returns
PurchaseResponse.PurchaseRequestStatus.SUCCESSFUL
, null otherwisepublic PurchaseResponse.PurchaseRequestStatus getPurchaseRequestStatus()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |