KycStatus
Members
The KycApi
instance that this object was created with.
status :
KycStatusResponse
status :
KycStatusResponse
An object that implements the KycStatusResponse
interface.
Methods
constructor(api, status)
constructor(api, status)
Create a new instance of the KycStatus
object.
api
must be an instance ofKycApi
;status
must be an object that implements theKycStatusResponse
interface;
This constructor should not be called directly, use KycInstance.status()
instead.
id()
id()
Get the id of the request.
This function returns a string
.
const id = kycStatus.id()
isComplete()
isComplete()
Is the KYC verification complete?
This function returns a boolean
.
if (kycStatus.isComplete()) {
// do something
}
isSuccessful()
isSuccessful()
Was the KYC verification successful?
This function returns a boolean
.
if (kycStatus.isSuccessful()) {
// do something
}
distance()
distance()
Get the machine learning algorithm distance.
This function returns a number
between 0
and 1
.
if (kycStatus.distance() > 0.9) {
// the user sent something worse than random noise
}
createdAt()
createdAt()
When was the KYC verification requested?
This function returns a Date
object.
const createdDate = kycStatus.createdAt()
completedAt()
completedAt()
When was the KYC verification completed?
This function returns a Date
object.
const completedDate = kycStatus.completedAt()
webhook()
webhook()
Get the webhook URL that got / will get called when the request is complete.
This function returns an URL
object.
const webhookUrl = kycStatus.webhook()
Last updated