java.lang.Objectjava.lang.Enum<BillingManager.FailureType>
com.txtnation.android.BillingManager.FailureType
public static enum BillingManager.FailureType
The different client and server failures we may come across.
Enum Constant Summary | |
---|---|
BILLED_BUT_ACCOUNT_NOT_CREDITED
User has been billed Account not credited. |
|
BILLING_REJECTED_BY_YOUR_NETWORK
For unknown reason if billing has been rejected by the user's network operator |
|
GENERAL_FAILURE
Generic failure. |
|
INVALID_PRODUCT
this happen's if the developer's applications returns a product to the TAL that was not in the list of products originally passed by the TAL |
|
INVALID_STATE_SEQUENCE
This happens when billing requests are done in the wrong order. |
|
NETWORK_OPERATOR_NOT_SUPPORTED
Unsupported network operator, meaning txtNation has no billing arrangements with this network operator. |
|
NO_CREDIT
User has no credit on their mobile account. |
|
NO_NETWORK_CONNECTION_DETECTED
No network connection, could be not 3G connection, WiFi or phone is on Airplane Mode, could also mean no SIM car on the handset. |
|
NONE
No failure recorded. |
|
NUMBER_BARRED
User phone number has been blacklisted by the operator or txtNation Billing System |
|
TIMEOUT
connection to server has timed out |
|
UNKNOWN_ACCOUNT
AccountId may be disabled, unknown or suspended |
|
WRONG_MODE_FOR_TEST_NUMBER
Test number can only be set when application is running on EnviroNment.LOCAL mode. |
Method Summary | |
---|---|
static BillingManager.FailureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BillingManager.FailureType[] |
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 |
---|
public static final BillingManager.FailureType NONE
public static final BillingManager.FailureType GENERAL_FAILURE
public static final BillingManager.FailureType TIMEOUT
public static final BillingManager.FailureType NO_NETWORK_CONNECTION_DETECTED
public static final BillingManager.FailureType NO_CREDIT
public static final BillingManager.FailureType NUMBER_BARRED
public static final BillingManager.FailureType UNKNOWN_ACCOUNT
public static final BillingManager.FailureType NETWORK_OPERATOR_NOT_SUPPORTED
public static final BillingManager.FailureType BILLED_BUT_ACCOUNT_NOT_CREDITED
public static final BillingManager.FailureType BILLING_REJECTED_BY_YOUR_NETWORK
public static final BillingManager.FailureType WRONG_MODE_FOR_TEST_NUMBER
public static final BillingManager.FailureType INVALID_PRODUCT
public static final BillingManager.FailureType INVALID_STATE_SEQUENCE
Method Detail |
---|
public static BillingManager.FailureType[] values()
for (BillingManager.FailureType c : BillingManager.FailureType.values()) System.out.println(c);
public static BillingManager.FailureType 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 name
java.lang.NullPointerException
- if the argument is null