Package com.vonage.client.verify
Class CheckResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.verify.CheckResponse
- All Implemented Interfaces:
Jsonable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckResponseConstructs a CheckResponse with the fields populated from the JSON payload.getPrice()voidupdateFromJson(String json) Updates this class's fields from the JSON payload.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toString
-
Constructor Details
-
CheckResponse
-
-
Method Details
-
getRequestId
- Returns:
- The
request_idthat you received in the response to the Verify request and used in the Verify check request.
-
getEventId
- Returns:
- The ID of the verification event, such as an SMS or TTS call.
-
getStatus
- Returns:
- A value of
VerifyStatus.OKindicates that your user entered the correct code. Otherwise, checkgetErrorText().
-
getPrice
- Returns:
- The cost incurred for this request.
-
getCurrency
- Returns:
- The currency code.
-
getErrorText
- Returns:
- If the status is non-zero, this explains the error encountered.
-
getEstimatedPriceMessagesSent
- Returns:
- This field may not be present, depending on your pricing model.
The value indicates the cost (in EUR) of the calls made and messages sent for the verification process.
This value may be updated during and shortly after the request completes because user input events can
overlap with message/call events. When this field is present, the total cost of the verification is the
sum of this field and the
pricefield. - Since:
- 7.1.0
-
updateFromJson
Description copied from interface:JsonableUpdates this class's fields from the JSON payload.- Parameters:
json- The JSON string.
-
fromJson
Constructs a CheckResponse with the fields populated from the JSON payload.- Parameters:
json- The JSON string.- Returns:
- A new instance of this class.
-