Package com.vonage.client.verify
Enum Class VerifyStatus
- All Implemented Interfaces:
Serializable,Comparable<VerifyStatus>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConcurrent verifications to the same number are not allowed.An error occurred processing this request in the Cloud Communications Platform.The code inserted does not match the expected value.The supplied API key or secret in the request is either invalid or disabled.Invalid value for parameter.The request could not be routed.Your request is incomplete and missing the mandatory parameter(s).Your Vonage account is still in demo mode.The number you are trying to verify is blacklisted for verification.The request was successfully accepted by Vonage.The api_key you supplied is for an account that has been barred from submitting messages.Your account does not have sufficient credit to process this request.You are trying to send more than the maximum of 30 requests per second.Undefined or unknown value.The request has been rejected.Only certain accounts have the ability to set thepin_codeparameter.Forcancel: Either you have not waited at least 30 seconds after sending a Verify request before cancelling or Verify has made too many attempts to deliver the verification code for this request, and you must now wait for the process to complete.You can run Verify check on a specificrequest_idup to three times unless a new verification code is generated. -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifyStatusfromInt(int verifyStatus) Look up the VerifyStatus based on the int value.intstatic VerifyStatusReturns the enum constant of this class with the specified name.static VerifyStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
The request was successfully accepted by Vonage. -
THROTTLED
You are trying to send more than the maximum of 30 requests per second. -
MISSING_PARAMS
Your request is incomplete and missing the mandatory parameter(s). -
INVALID_PARAMS
Invalid value for parameter. If you see Facility not allowed in the error text, check that you are using the correct Base URL in your request. -
INVALID_CREDENTIALS
The supplied API key or secret in the request is either invalid or disabled. -
INTERNAL_ERROR
An error occurred processing this request in the Cloud Communications Platform. -
INVALID_REQUEST
The request could not be routed. -
NUMBER_BARRED
The number you are trying to verify is blacklisted for verification. -
PARTNER_ACCOUNT_BARRED
The api_key you supplied is for an account that has been barred from submitting messages. -
PARTNER_QUOTA_EXCEEDED
Your account does not have sufficient credit to process this request. -
ALREADY_REQUESTED
Concurrent verifications to the same number are not allowed. -
UNSUPPORTED_NETWORK
The request has been rejected. Find out more about this error in the Knowledge Base. -
INVALID_CODE
The code inserted does not match the expected value. -
WRONG_CODE_THROTTLED
You can run Verify check on a specificrequest_idup to three times unless a new verification code is generated. If you check a request more than three times, it is set to FAILED and you cannot check it again. -
WAIT_FOR_COMPLETION
Forcancel: Either you have not waited at least 30 seconds after sending a Verify request before cancelling or Verify has made too many attempts to deliver the verification code for this request, and you must now wait for the process to complete. Fortrigger_next_event: All attempts to deliver the verification code for this request have completed and there are no remaining events to advance to. -
UNSUPPORTED_PIN_CODE
Only certain accounts have the ability to set thepin_codeparameter. Please contact your account manager for more information. -
NON_PERMITTED_DESTINATION
Your Vonage account is still in demo mode. While in demo mode you must add target numbers to the approved list for your account. Add funds to your account tO remove this limitation. -
UNKNOWN
Undefined or unknown value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromInt
Look up the VerifyStatus based on the int value.- Parameters:
verifyStatus- the int value of the verify status.- Returns:
- VerifyStatus based on the int value given.
-
getVerifyStatus
-