com.amazon.InApp.transaction
Enum PurchaseResponse.PurchaseRequestStatus

java.lang.Object
  extended by java.lang.Enum<PurchaseResponse.PurchaseRequestStatus>
      extended by com.amazon.InApp.transaction.PurchaseResponse.PurchaseRequestStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PurchaseResponse.PurchaseRequestStatus>
Enclosing class:
PurchaseResponse

public static enum PurchaseResponse.PurchaseRequestStatus
extends java.lang.Enum<PurchaseResponse.PurchaseRequestStatus>

Indicates the result of a purchase operation initiated via TransactionManager.initiatePurchaseRequest(String).


Enum Constant Summary
Failed
          Indicates that the purchase failed for a reason outside your control.
InvalidSku
          Indicates that the SKU originally provided to the TransactionManager.initiatePurchaseRequest(String) method is not valid.
Successful
          Indicates that the purchase was successfully completed.
 
Method Summary
static PurchaseResponse.PurchaseRequestStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PurchaseResponse.PurchaseRequestStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Successful

public static final PurchaseResponse.PurchaseRequestStatus Successful
Indicates that the purchase was successfully completed.


Failed

public static final PurchaseResponse.PurchaseRequestStatus Failed
Indicates that the purchase failed for a reason outside your control. You may attempt another purchase only if it is explicitly initiated by the customer.


InvalidSku

public static final PurchaseResponse.PurchaseRequestStatus InvalidSku
Indicates that the SKU originally provided to the TransactionManager.initiatePurchaseRequest(String) method is not valid.

Method Detail

values

public static PurchaseResponse.PurchaseRequestStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PurchaseResponse.PurchaseRequestStatus c : PurchaseResponse.PurchaseRequestStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PurchaseResponse.PurchaseRequestStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null