Skip to content

v4.16.0

Choose a tag to compare

@laurent-yoti laurent-yoti released this 26 Oct 16:01
· 3 commits to master since this release

NEW

IDV

Add a company profile to the session specification
// CompanyProfileBuilder // new - import from 'yoti'

const companyProfile = new CompanyProfileBuilder().withCompanyName('My Company').build();

const sessionSpec = new SessionSpecificationBuilder()
    .... // as usual
    .withCompanyProfile(companyProfile)
    .build()
Retrieve a company profile from a session
const sessionResult = await idvClient.getSession(sessionId);
const companyProfile = sessionResult.getCompanyProfile()
const getCompanyName = companyProfile.getCompanyName()
Get the PDF overview of a session
  const sessionId = 'your-session-id';
  const idvClient = new IDVClient('your-sdk-id', 'your-pem-file')

  const payload = new CreateSessionOverviewPdfPayloadBuilder()  // import the builder from 'yoti'
    .withIncludeImages(true)
    .withIncludeExtractedText(true)
    .withIncludeDeviceTracking(true)
    .build();

  const media = await idvClient.createSessionOverviewPdf(sessionId, payload);
  
  // write the PDF file on the disk.. probably not quite what you want to do, just for demo purpose
  fs.writeFileSync(`session-${sessionId}.pdf`, media.getContent());

FIXES

IDV

The class AdvancedIdentityProfileSchemeConfigBuilder was incorrectly exported, now fixed.