lamassu-server/dev/ofac-match.js
2020-10-06 23:19:22 +02:00

16 lines
425 B
JavaScript

const compliance = require('../lib/compliance')
const ofac = require('../lib/ofac/index')
const [customerId, firstName, lastName, dateOfBirth] = process.argv.slice(2)
const customer = {
id: customerId,
idCardData: {firstName, lastName, dateOfBirth}
}
const deviceId = 'test-device'
ofac.load()
.then(() => compliance.validationPatch(deviceId, true, customer))
.then(console.log)
.catch(err => console.log(err))