Package com.incode.welcome_sdk.modules
Class EKYC.Builder
-
- All Implemented Interfaces:
public final class EKYC.Builder
-
-
Constructor Summary
Constructors Constructor Description EKYC.Builder()
-
Method Summary
Modifier and Type Method Description final EKYC.Builder
setVerifyName(Boolean verifyName)
Sets the visibility of the name field on the eKYC module final EKYC.Builder
setVerifyEmail(Boolean verifyEmail)
Sets the visibility of the email field on the eKYC module final EKYC.Builder
setVerifyAddress(Boolean verifyAddress)
Sets the visibility of the address fields on the eKYC module final EKYC.Builder
setVerifyPhone(Boolean verifyPhone)
Sets the visibility of the phone field on the eKYC module final EKYC.Builder
setVerifyTaxId(Boolean verifyTaxId)
Sets the visibility of the tax ID field on the eKYC module final EKYC.Builder
setVerifyDateOfBirth(Boolean verifyDateOfBirth)
Sets the visibility of the date of birth field on the eKYC module final EKYC.Builder
setVerifyNationality(Boolean verifyNationality)
Sets the visibility of the nationality field on the eKYC module final EKYC.Builder
setNameSource(EKYC.DataInputSource nameSource)
Sets the data input source of the name field on the eKYC module final EKYC.Builder
setAddressSource(EKYC.DataInputSource addressSource)
Sets the data input source of the address field on the eKYC module final EKYC.Builder
setDateOfBirthSource(EKYC.DataInputSource dateOfBirthSource)
Sets the data input source of the address field on the eKYC module final EKYC
build()
Builds the EKYC instance with the specified verification requirements. -
-
Method Detail
-
setVerifyName
final EKYC.Builder setVerifyName(Boolean verifyName)
Sets the visibility of the name field on the eKYC module
- Parameters:
verifyName
-true
to show the name field,false
to hide it.- Returns:
Builder
-
setVerifyEmail
final EKYC.Builder setVerifyEmail(Boolean verifyEmail)
Sets the visibility of the email field on the eKYC module
- Parameters:
verifyEmail
-true
to show the email field,false
to hide it.- Returns:
Builder
-
setVerifyAddress
final EKYC.Builder setVerifyAddress(Boolean verifyAddress)
Sets the visibility of the address fields on the eKYC module
- Parameters:
verifyAddress
-true
to show the address fields,false
to hide them.- Returns:
Builder
-
setVerifyPhone
final EKYC.Builder setVerifyPhone(Boolean verifyPhone)
Sets the visibility of the phone field on the eKYC module
- Parameters:
verifyPhone
-true
to show the phone field,false
to hide it.- Returns:
Builder
-
setVerifyTaxId
final EKYC.Builder setVerifyTaxId(Boolean verifyTaxId)
Sets the visibility of the tax ID field on the eKYC module
- Parameters:
verifyTaxId
-true
to show the tax ID field,false
to hide it.- Returns:
Builder
-
setVerifyDateOfBirth
final EKYC.Builder setVerifyDateOfBirth(Boolean verifyDateOfBirth)
Sets the visibility of the date of birth field on the eKYC module
- Parameters:
verifyDateOfBirth
-true
to show the date of birth field,false
to hide it.- Returns:
Builder
-
setVerifyNationality
final EKYC.Builder setVerifyNationality(Boolean verifyNationality)
Sets the visibility of the nationality field on the eKYC module
- Parameters:
verifyNationality
-true
to show the nationality field,false
to hide it.- Returns:
Builder
-
setNameSource
final EKYC.Builder setNameSource(EKYC.DataInputSource nameSource)
Sets the data input source of the name field on the eKYC module
- Parameters:
nameSource
-DataInputSource.USER_INPUT
to populate EKYC name field based on user input;DataInputSource.DOCUMENT
to populate EKYC name field based on a scanned document;DataInputSource.PROOF_OF_ADDRESS
to populate EKYC name field based on a proof of address document; Default isDataInputSource.USER_INPUT
.- Returns:
Builder
-
setAddressSource
final EKYC.Builder setAddressSource(EKYC.DataInputSource addressSource)
Sets the data input source of the address field on the eKYC module
- Parameters:
addressSource
-DataInputSource.USER_INPUT
to populate EKYC address field based on user input;DataInputSource.DOCUMENT
to populate EKYC address field based on a scanned document;DataInputSource.PROOF_OF_ADDRESS
to populate EKYC address field based on a proof of address document; Default isDataInputSource.USER_INPUT
.- Returns:
Builder
-
setDateOfBirthSource
final EKYC.Builder setDateOfBirthSource(EKYC.DataInputSource dateOfBirthSource)
Sets the data input source of the address field on the eKYC module
- Parameters:
dateOfBirthSource
-DataInputSource.USER_INPUT
to populate EKYC date of birth field based on user input;DataInputSource.DOCUMENT
to populate EKYC date of birth field based on a scanned document; Default isDataInputSource.USER_INPUT
.- Returns:
Builder
-
-
-
-