Variation of createCustomerOtp that does not contain the otp and the list of message parameters in the list of parameters.
Syntax
CustomerOtp
createCustomerOtp
(
long
customerId
,
int
otpType
,
long
referenceId
,
long
callerId
) throws OtpValidationException, EntityNotFoundException
Parameters
-
customerId –
for whom to create the OTP
-
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
Exceptions
-
OtpValidationException –
-
EntityNotFoundException –
Usage
the newly created CustomerOtp