Class NumberTransfer

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

public class NumberTransfer extends JsonableBaseObject
  • Constructor Details

  • Method Details

    • getCountry

      public String getCountry()
      Country the number is registered in (ISO 3166-1 alpha-2 format).
      Returns:
      The two-letter country code for the number.
    • getNumber

      public String getNumber()
      The number being transferred between accounts.
      Returns:
      The transfer phone number in E164 format.
    • fromJson

      public static NumberTransfer 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

      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.