public class BaseRequest extends java.lang.Object
VerifyRequest and Psd2Request| Modifier | Constructor and Description |
|---|---|
|
BaseRequest(java.lang.String number,
java.lang.Integer length,
java.util.Locale locale) |
protected |
BaseRequest(java.lang.String number,
java.lang.Integer length,
java.util.Locale locale,
java.lang.String country,
java.lang.Integer pinExpiry,
java.lang.Integer nextEventWait) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCountry()
The country for the destination phone number.
|
java.lang.String |
getDashedLocale() |
java.lang.Integer |
getLength() |
java.util.Locale |
getLocale() |
java.lang.Integer |
getNextEventWait() |
java.lang.String |
getNumber() |
java.lang.Integer |
getPinExpiry() |
void |
setCountry(java.lang.String country)
Deprecated.
since 5.5.0 use
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification request |
void |
setLength(java.lang.Integer length)
Deprecated.
since 5.5.0 use
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification request |
void |
setLocale(java.util.Locale locale)
Deprecated.
since 5.5.0 use
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification request |
void |
setNextEventWait(java.lang.Integer nextEventWait)
Deprecated.
since 5.5.0 use
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification request |
void |
setPinExpiry(java.lang.Integer pinExpiry)
Deprecated.
since 5.5.0 use
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification request |
java.lang.String |
toString() |
public BaseRequest(java.lang.String number, java.lang.Integer length, java.util.Locale locale)
protected BaseRequest(java.lang.String number, java.lang.Integer length, java.util.Locale locale, java.lang.String country, java.lang.Integer pinExpiry, java.lang.Integer nextEventWait)
public java.lang.String getNumber()
public java.lang.Integer getLength()
VerifyRequest
constructors. -1 indicates the default length will be used.@Deprecated public void setLength(java.lang.Integer length)
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification requestlength - the length of the verification code to be sent to the user. Options are either 4 or 6.public java.util.Locale getLocale()
null, the locale will be determined
from the country code included in numberpublic void setLocale(java.util.Locale locale)
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification requestlocale - Override the default locale used for verification. By default the locale is determined
from the country code included in numberpublic java.lang.String getDashedLocale()
en-gb
If this value is null, the locale will be determined
from the country code included in numberpublic java.lang.String getCountry()
public void setCountry(java.lang.String country)
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification requestIf 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.
country - a String containing a 2-character country codepublic java.lang.Integer getPinExpiry()
public void setPinExpiry(java.lang.Integer pinExpiry)
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification requestpinExpiry - PIN expiry time in seconds.public java.lang.Integer getNextEventWait()
public void setNextEventWait(java.lang.Integer nextEventWait)
VerifyRequest.Builder to create a 2FA verification request or
Psd2Request.Builder to create a PSD2 verification requestnextEventWait - An Integer value between 60 and 900 seconds, or null to use the default duration.public java.lang.String toString()
toString in class java.lang.Object