public static enum PurchaseResponse.RequestStatus extends java.lang.Enum<PurchaseResponse.RequestStatus>
PurchasingService.purchase(String)
.Enum Constant and Description |
---|
ALREADY_PURCHASED
Indicates that the customer already owns the provided SKU.
|
FAILED
Indicates that the purchase failed.
|
INVALID_SKU
Indicates that the SKU originally provided to the
PurchasingService.purchase(String) method is not valid. |
NOT_SUPPORTED
Indicates this call is not supported.
|
PENDING
Indicates that the purchase is waiting for remote approval.
|
SUCCESSFUL
Indicates that the purchase was successfully completed.
|
Modifier and Type | Method and Description |
---|---|
static PurchaseResponse.RequestStatus |
safeValueOf(java.lang.String val) |
static PurchaseResponse.RequestStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PurchaseResponse.RequestStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PurchaseResponse.RequestStatus SUCCESSFUL
public static final PurchaseResponse.RequestStatus FAILED
public static final PurchaseResponse.RequestStatus INVALID_SKU
PurchasingService.purchase(String)
method is not valid.public static final PurchaseResponse.RequestStatus ALREADY_PURCHASED
PurchasingService.getPurchaseUpdates(boolean)
. You will not
receive this status for consumable items because they can be
purchased multiple times.public static final PurchaseResponse.RequestStatus PENDING
public static final PurchaseResponse.RequestStatus NOT_SUPPORTED
public static PurchaseResponse.RequestStatus[] values()
for (PurchaseResponse.RequestStatus c : PurchaseResponse.RequestStatus.values()) System.out.println(c);
public static PurchaseResponse.RequestStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static PurchaseResponse.RequestStatus safeValueOf(java.lang.String val)