Variation of createCustomerOtp that does not contain the list of message parameters in the list of parameters.
Syntax
CustomerOtp
createCustomerOtp
(
long
customerId
,
String
otp
,
int
otpType
,
long
referenceId
,
long
callerId
) throws OtpValidationException
Parameters
-
customerId –
for whom to create the OTP
-
otp –
if this is provided it will be used instead of an automatic generated one (optional). It needs to be numeric in case the OTP type is configured to be numeric, otherwise an OtpValidationException is thrown.
-
otpType –
the type of OTP to generate/send, defines length, message template, and send mode (email/SMS) (optional)
-
referenceId –
is stored with the CustomerOtp and can be retrieved when validating the OTP. This can be for example a transaction id in case the OTP is issued for a specific transaction
-
callerId –
represents the ID of the caller of the operation. Used for tracking/audit purposes.
Returns
the newly created CustomerOtp
Usage
the newly created CustomerOtp