@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.
23 lines (22 loc) • 1.48 kB
TypeScript
import type { CapabilityName } from '../../core/models/api/capability';
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
import type { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
import type { VerificationError } from '../../core/models/api/verification-error';
import type { CountryCode } from '../../types/datasets/country-code';
import type { CapabilityProblems } from '../../types/errors/capability-problems';
import type { EntityProblems } from '../../types/errors/entity-problems';
import type { Remediation } from '../../types/errors/remediation';
/**
* Iterates of the verification subErrors's remediationAction to discover associated forms and fields (using mappings).
* @param parentVerificationError - Parent verification
* @param entityType - type of entity
* @param country
* @param isFeatureEnabled
*/
export declare const getInvalidInputError: (parentVerificationError: VerificationError, entityType: EntityProblems["entityType"]) => {
verificationErrors: EntityProblems["verificationErrors"];
remediationActions: EntityProblems["remediationActions"];
};
export declare function getCapabilityProblems(entity: ExistingLegalEntity | ExistingTransferInstrument, country: CountryCode): CapabilityProblems;
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
export declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];