Class Psd2Request.Builder

java.lang.Object
com.vonage.client.verify.Psd2Request.Builder
Enclosing class:
Psd2Request

public static class Psd2Request.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(String number, Double amount, String payee)
      Parameters:
      number - The recipient's phone number in E.164 format.
      amount - The decimal amount of the payment to be confirmed, in Euros.
      payee - An alphanumeric string to indicate to the user the name of the recipient that they are confirming a payment to.
  • Method Details

    • payee

      (REQUIRED)
      Parameters:
      payee - Username of the payment recipient.
      Returns:
      This builder.
      Since:
      7.9.0
    • number

      (REQUIRED)
      Parameters:
      number - The recipient's phone number in E.164 format.
      Returns:
      This builder.
      Since:
      7.9.0
    • amount

      public Psd2Request.Builder amount(double amount)
      (REQUIRED)
      Parameters:
      amount - The decimal amount of the payment to be confirmed, in Euros.
      Returns:
      This builder.
      Since:
      7.9.0
    • workflow

      Parameters:
      workflow - Selects the predefined sequence of SMS and TTS (Text To Speech) actions to use in order to convey the PIN to your user. For example, an id of 1 identifies the workflow SMS - TTS - TTS. For a list of all workflows and their associated ids, please visit the developer portal.
      Returns:
      This builder.
    • locale

      Parameters:
      locale - (optional) Override the default locale used for verification. By default the locale is determined from the country code included in number
      Returns:
      This builder.
    • length

      Parameters:
      length - (optional) The length of the verification code to be sent to the user. Must be either 4 or 6. Use -1 to use the default value.
      Returns:
      This builder.
    • pinExpiry

      Parameters:
      pinExpiry - (optional) the PIN validity time from generation, in seconds. Default is 300 seconds
      Returns:
      This builder.
    • nextEventWait

      public Psd2Request.Builder nextEventWait(Integer nextEventWait)
      Parameters:
      nextEventWait - (optional) the wait time between attempts to deliver the PIN. A number between 600-900.
      Returns:
      This builder.
    • country

      The country for the destination phone number.

      If you wish to used localised number formats or you are not sure if number is correctly formatted, set this to a two-character country code. For example, GB, US. Verify will work out the international phone number for you.

      Parameters:
      country - a String containing a 2-character country code
      Returns:
      This builder.
    • build

      public Psd2Request build()