Package com.vonage.client.subaccounts
Class NumberTransfer
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.subaccounts.NumberTransfer
- All Implemented Interfaces:
Jsonable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberTransfer.Builderbuilder()Entry point for constructing an instance of this class.static NumberTransferCreates an instance of this class from a JSON payload.Country the number is registered in (ISO 3166-1 alpha-2 format).getFrom()Account to transfer from.The number being transferred between accounts.Primary account ID for this transaction.getTo()Account to transfer to.Methods 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
-
NumberTransfer
protected NumberTransfer()
-
-
Method Details
-
getCountry
Country the number is registered in (ISO 3166-1 alpha-2 format).- Returns:
- The two-letter country code for the number.
-
getNumber
The number being transferred between accounts.- Returns:
- The transfer phone number in E164 format.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-
getPrimaryAccountId
Primary account ID for this transaction.- Returns:
- The primary account API key, or
nullif unknown.
-
getFrom
Account to transfer from.- Returns:
- The transferer account ID.
-
getTo
Account to transfer to.- Returns:
- The transferee account ID.
-