Class MoneyTransfer

java.lang.Object
com.vonage.client.subaccounts.MoneyTransfer
All Implemented Interfaces:
Jsonable

public class MoneyTransfer extends Object
Represents a credit or balance transfer between accounts.
  • Constructor Details

  • Method Details

    • getId

      public UUID 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

      public String getReference()
      Reference for the transfer.
      Returns:
      The transfer reference message, or null if not set (the default).
    • fromJson

      public static MoneyTransfer fromJson(String json)
      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

      public static MoneyTransfer.Builder builder()
      Entry point for constructing an instance of this class.
      Returns:
      A new Builder.
    • getPrimaryAccountId

      public String getPrimaryAccountId()
      Primary account ID for this transaction.
      Returns:
      The primary account API key, or null if unknown.
    • getFrom

      public String getFrom()
      Account to transfer from.
      Returns:
      The transferer account ID.
    • getTo

      public String getTo()
      Account to transfer to.
      Returns:
      The transferee account ID.
    • toString

      public String toString()
      Overrides:
      toString in class Object