UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

9 lines (8 loc) 527 B
import type { SetRequired } from 'type-fest'; import type { components } from './validation.contract'; export type InvalidField = SetRequired<components['schemas']['InvalidField'], 'name'>; export type AccountValidationResponse = Omit<components['schemas']['ValidationResponse'], 'invalidFields'> & { invalidFields?: InvalidField[]; }; export type PhoneNumberValidationRequest = components['schemas']['PhoneNumberValidationRequest']; export type PhoneNumberValidationResponse = components['schemas']['ValidationResponse'];