Package com.vonage.client.insight
Class StandardInsightResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.insight.BasicInsightResponse
com.vonage.client.insight.StandardInsightResponse
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
AdvancedInsightResponse
Response object constructed from the JSON payload returned for Standard number insight requests.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.insight.BasicInsightResponse
getCountryCode, getCountryCodeIso3, getCountryName, getCountryPrefix, getInternationalFormatNumber, getNationalFormatNumber, getRequestId, getStatus, getStatusMessageMethods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
StandardInsightResponse
public StandardInsightResponse()
-
-
Method Details
-
fromJson
-
getRequestPrice
- Returns:
- The amount in EUR charged to your account.
-
getRemainingBalance
- Returns:
- Your account balance in EUR after this request.
-
getOriginalCarrier
- Returns:
- Information about the network the number was initially connected to.
-
getCurrentCarrier
- Returns:
- Information about the network the number is currently connected to.
-
getPorted
- Returns:
- Whether the number has been ported, as an enum.
-
getCallerIdentity
- Returns:
- Information about the caller.
-
getRefundPrice
- Returns:
- If there is an internal lookup error, the refund_price will reflect the lookup price. If cnam is requested for a non-US number the refund_price will reflect the cnam price. If both of these conditions occur, refund_price is the sum of the lookup price and cnam price.
-
getCallerName
- Returns:
- Full name of the person or business who owns the phone number, or "unknown" if this
information is not available. This parameter is only present if cnam had a value of
truein the request.
-
getFirstName
- Returns:
- First name of the person who owns the phone number if the owner is an individual.
This parameter is only present if cnam had a value of
truein the request.
-
getLastName
- Returns:
- Last name of the person who owns the phone number if the owner is an individual.
This parameter is only present if cnam had a value of
truein the request.
-
getCallerType
- Returns:
- The caller type, as an enum.
-