Package com.vonage.client.subaccounts
Class MoneyTransfer
java.lang.Object
com.vonage.client.subaccounts.MoneyTransfer
- All Implemented Interfaces:
Jsonable
Represents a credit or balance transfer between accounts.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MoneyTransfer.Builder
builder()
Entry point for constructing an instance of this class.static MoneyTransfer
Creates an instance of this class from a JSON payload.Transfer amount.The date and time when the transfer was executed.getFrom()
Account to transfer from.getId()
Unique ID of the transfer.Primary account ID for this transaction.Reference for the transfer.getTo()
Account to transfer to.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
MoneyTransfer
protected MoneyTransfer() -
MoneyTransfer
-
-
Method Details
-
getId
Unique ID of the transfer.- Returns:
- The transfer ID.
-
getCreatedAt
The date and time when the transfer was executed.- Returns:
- The transfer timestamp in ISO 8601 format.
-
getAmount
Transfer amount.- Returns:
- The monetary amount to transfer between accounts.
-
getReference
Reference for the transfer.- Returns:
- The transfer reference message, or
null
if not set (the default).
-
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
null
if unknown.
-
getFrom
Account to transfer from.- Returns:
- The transferer account ID.
-
getTo
Account to transfer to.- Returns:
- The transferee account ID.
-
toString
-