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.

26 lines (25 loc) 1.64 kB
import type { Language } from '../../language/Language'; import type { CountryCode } from '../../types/datasets/country-code'; import type { components, operations } from './transferInstruments.contract'; export type GetBankVerificationProviderResponse = components['schemas']['BankAggregatorProviderResponse'][]; export type BankVerificationVendor = GetBankVerificationProviderResponse[number]; export type GetBankVerificationQueryParams = operations['getBankVerificationProviders']['parameters']['query'] & { country: CountryCode; locale: Language['locale']; }; export type QueryKeyBankVerificationProviders = [ 'bankVerificationProviders', GetBankVerificationQueryParams ]; export type CreateTrustedTransferInstrumentResponse = components['schemas']['BankVerificationResponse']; export type CreateTrustedTransferInstrumentRequest = components['schemas']['CreateTrustedTransferInstrumentRequest']; export type BankVerificationErrorRequest = components['schemas']['BankVerificationErrorRequest']; export type BankVerificationErrorResponse = components['schemas']['BankVerificationResponse']; export type GetTransferInstrumentResponse = components['schemas']['TransferInstrumentOverview'][]; export type TransferInstrumentReference = components['schemas']['TransferInstrumentOverview']; export type TransferInstrumentReferenceWithStatusId = Omit<TransferInstrumentReference, 'transferInstrument' | 'status'> & { status: NonNullable<components['schemas']['TransferInstrumentOverview']['status']>; transferInstrument: Omit<components['schemas']['TransferInstrumentReferenceDto'], 'id'> & { id: string; }; };