feat: us ssn
This commit is contained in:
parent
d065baeda9
commit
5887a301fb
6 changed files with 29 additions and 10 deletions
|
|
@ -409,7 +409,7 @@ function migrateComplianceTriggers (config) {
|
|||
|
||||
return {
|
||||
triggers,
|
||||
['compliance_rejectAddressReuse']: rejectAddressReuseActive
|
||||
['compliance_rejectAddressReuse']: global.rejectAddressReuseActive
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ function update (id, data, userToken, txId) {
|
|||
*/
|
||||
async function updateCustomer (id, data) {
|
||||
const formattedData = _.pick(
|
||||
['authorized_override', 'id_card_photo_override', 'id_card_data_override', 'sms_override'],
|
||||
['authorized_override', 'id_card_photo_override', 'id_card_data_override', 'sms_override', 'us_ssn_override'],
|
||||
_.mapKeys(_.snakeCase, data))
|
||||
|
||||
const sql = Pgp.helpers.update(formattedData, _.keys(formattedData), 'customers') +
|
||||
|
|
@ -234,7 +234,8 @@ function getComplianceTypes () {
|
|||
'id_card_photo',
|
||||
'front_camera',
|
||||
'sanctions',
|
||||
'authorized' ]
|
||||
'authorized',
|
||||
'us_ssn' ]
|
||||
}
|
||||
|
||||
function enhanceAtFields (fields) {
|
||||
|
|
@ -243,7 +244,8 @@ function enhanceAtFields (fields) {
|
|||
'id_card_photo',
|
||||
'front_camera',
|
||||
'sanctions',
|
||||
'authorized'
|
||||
'authorized',
|
||||
'us_ssn'
|
||||
]
|
||||
|
||||
const updatedFields = _.intersection(updateableFields, _.keys(fields))
|
||||
|
|
|
|||
|
|
@ -108,10 +108,10 @@ function poll (req, res, next) {
|
|||
const compatTriggers = complianceTriggers.getBackwardsCompatibleTriggers(triggers)
|
||||
response.smsVerificationActive = !!compatTriggers.sms
|
||||
response.smsVerificationThreshold = compatTriggers.sms
|
||||
response.idCardDataVerificationActive = !!compatTriggers.idData
|
||||
response.idCardDataVerificationThreshold = compatTriggers.idData
|
||||
response.idCardPhotoVerificationActive = !!compatTriggers.idPhoto
|
||||
response.idCardPhotoVerificationThreshold = compatTriggers.idPhoto
|
||||
response.idCardDataVerificationActive = !!compatTriggers.idCardData
|
||||
response.idCardDataVerificationThreshold = compatTriggers.idCardData
|
||||
response.idCardPhotoVerificationActive = !!compatTriggers.idCardPhoto
|
||||
response.idCardPhotoVerificationThreshold = compatTriggers.idCardPhoto
|
||||
response.sanctionsVerificationActive = !!compatTriggers.sancations
|
||||
response.sanctionsVerificationThreshold = compatTriggers.sancations
|
||||
response.frontCameraVerificationActive = !!compatTriggers.facephoto
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue