@adyen/kyc-components 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/adyen-kyc-components.es.js +7274 -7104
- package/dist/style.css +4933 -4933
- package/dist/types/components/BankVerification/types.d.ts +1 -2
- package/dist/types/components/Company/component/CompanyComponent.d.ts +35 -2
- package/dist/types/components/Dropins/CompanyDropin/components/CompanyDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/index.d.ts +1 -1
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +1 -1
- package/dist/types/components/TrustMembers/types.d.ts +6 -5
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +9 -0
- package/dist/types/components/internal/Address/utils.d.ts +1 -1
- package/dist/types/components/internal/EntityAssociation/types.d.ts +8 -1
- package/dist/types/core/hooks/useAsyncValidator.d.ts +4 -4
- package/dist/types/core/hooks/useForm/reducer.d.ts +8 -8
- package/dist/types/core/hooks/useForm/useForm.d.ts +1 -1
- package/dist/types/core/hooks/useStaticValidator/index.d.ts +1 -0
- package/dist/types/core/hooks/useStaticValidator/useStaticValidator.d.ts +7 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -0
- package/dist/types/core/models/form-rules.d.ts +2 -5
- package/dist/types/language/config.d.ts +8 -2
- package/dist/types/utils/addLinkedFields.d.ts +2 -0
- package/dist/types/utils/decision-maker-roles.d.ts +1 -1
- package/dist/types/utils/entity-status-util.d.ts +2 -2
- package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -2
- package/dist/types/utils/mapping/mapEntityAssociationsToUniqueTrustMembers.d.ts +12 -0
- package/dist/types/utils/trust-util.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/components/Company/labels.d.ts +0 -5
- package/dist/types/utils/validation/Validator.d.ts +0 -15
- /package/dist/types/components/Dropins/RoleAndTypeDropin/components/{RoleAndTypeComponent.d.ts → RoleAndTypeDropinComponent.d.ts} +0 -0
|
@@ -39,8 +39,7 @@ export interface InstantBankVerificationProps {
|
|
|
39
39
|
country: string;
|
|
40
40
|
onBack?(): void;
|
|
41
41
|
}
|
|
42
|
-
export type
|
|
43
|
-
export type CountryBankVerificationVendors = Partial<Record<CountryCode, BankVerificationProviders>>;
|
|
42
|
+
export type CountryBankVerificationVendors = Partial<Record<CountryCode, string>>;
|
|
44
43
|
export interface BankVerificationVendor {
|
|
45
44
|
name?: VendorIdentifier;
|
|
46
45
|
redirectUrl?: string;
|
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
import '../Company.scss';
|
|
2
|
-
import {
|
|
2
|
+
import { CompanyDetailsSchema } from '../../CompanyDetails/types';
|
|
3
|
+
import { CompanyNameAndCountrySchema } from '../../CompanyNameAndCountry/types';
|
|
4
|
+
import { CompanyTypeSchema } from '../../CompanyType/types';
|
|
3
5
|
import { CompanyProps } from '../types';
|
|
4
|
-
export declare const companyForms:
|
|
6
|
+
export declare const companyForms: {
|
|
7
|
+
companyNameAndCountry: {
|
|
8
|
+
formId: string;
|
|
9
|
+
formName: "nameAndCountry";
|
|
10
|
+
fields: (keyof CompanyNameAndCountrySchema)[];
|
|
11
|
+
};
|
|
12
|
+
companyType: {
|
|
13
|
+
formId: string;
|
|
14
|
+
formName: "companyStructure";
|
|
15
|
+
fields: (keyof CompanyTypeSchema)[];
|
|
16
|
+
};
|
|
17
|
+
companyDetails: {
|
|
18
|
+
formId: string;
|
|
19
|
+
formName: "registrationDetails";
|
|
20
|
+
fields: (keyof CompanyDetailsSchema)[];
|
|
21
|
+
};
|
|
22
|
+
companyRegistrationDetails: {
|
|
23
|
+
formId: string;
|
|
24
|
+
formName: "address";
|
|
25
|
+
fields: string[];
|
|
26
|
+
};
|
|
27
|
+
companyRegistrationDocument: {
|
|
28
|
+
formId: string;
|
|
29
|
+
formName: "registrationDocument";
|
|
30
|
+
fields: string[];
|
|
31
|
+
};
|
|
32
|
+
companyTaxDocument: {
|
|
33
|
+
formId: string;
|
|
34
|
+
formName: "taxDocument";
|
|
35
|
+
fields: string[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
5
38
|
export declare const companyDocumentForms: string[];
|
|
6
39
|
declare function CompanyComponent(props: CompanyProps): import("preact").JSX.Element;
|
|
7
40
|
export default CompanyComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CompanyDropinProps } from '../../../Company/types';
|
|
2
|
-
export declare function CompanyDropinComponent(
|
|
2
|
+
export declare function CompanyDropinComponent({ handleCreateDocument, handleGetDocument, handleUpdateDocument, handleAddressSearch, handleFindAddress, taskType, trackingConfig, associationDetail, parentLegalEntity, legalEntityResponse, isTargetLegalEntityType, onSubmit: onExternalSubmit, eventEmitter, handleCreateLegalEntity, handleUpdateLegalEntity, handleHomeClick, onTypeSwitch, hideDropinLayout, taskName, capabilities, homeButtonLabel, country: parentCountry, problems: propProblems, onChange, }: CompanyDropinProps): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RoleAndTypeDropinComponent } from './components/
|
|
1
|
+
export { RoleAndTypeDropinComponent } from './components/RoleAndTypeDropinComponent';
|
package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export interface PayoutVerificationMethodMetadata {
|
|
|
11
11
|
icon: string;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export declare const makePayoutVerificationMethodsMetadata: (svgPath: string, instantVerificationProvider:
|
|
14
|
+
export declare const makePayoutVerificationMethodsMetadata: (svgPath: string, instantVerificationProvider: string | undefined) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../TrustMembers.scss';
|
|
2
2
|
import { TrustMembersProps } from '../types';
|
|
3
|
-
declare const TrustMembersComponent: ({ parentLegalEntity, trustResponse, capabilityProblems, navigateBackToTaskList,
|
|
3
|
+
declare const TrustMembersComponent: ({ parentLegalEntity, trustResponse, capabilityProblems, navigateBackToTaskList, navigateToEditTrustMember, navigateToEditTrustMemberOwner, handleUpdateLegalEntity, onTrustMemberDelete, }: TrustMembersProps) => import("preact").JSX.Element;
|
|
4
4
|
export default TrustMembersComponent;
|
|
@@ -3,19 +3,20 @@ import { TrustMemberType } from '../../core/models/api/trust-member-type';
|
|
|
3
3
|
import { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
4
4
|
import { DropinAPIHandlers } from '../Dropins/types';
|
|
5
5
|
import { UniqueEntityAssociation } from '../internal/EntityAssociation/types';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
export interface TrustMembersProps extends DropinAPIHandlers {
|
|
6
|
+
import { SettlorExemptionReason, TrustMemberLegalEntityType } from '../TrustRoleAndEntityType/types';
|
|
7
|
+
export interface TrustMembersProps {
|
|
9
8
|
trustResponse: ExistingLegalEntity;
|
|
10
9
|
parentLegalEntity: ExistingLegalEntity;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
navigateToEditTrustMember(trustMember?: Partial<UniqueEntityAssociation>): void;
|
|
11
|
+
navigateToEditTrustMemberOwner(trustMemberOwnerId: string, trustMemberId: string | undefined): void;
|
|
13
12
|
navigateBackToTaskList(): void;
|
|
14
13
|
onTrustMemberDelete(): void;
|
|
15
14
|
capabilityProblems: CapabilityProblems;
|
|
15
|
+
handleUpdateLegalEntity: NonNullable<DropinAPIHandlers['handleUpdateLegalEntity']>;
|
|
16
16
|
}
|
|
17
17
|
export interface UniqueTrustMember extends UniqueEntityAssociation {
|
|
18
18
|
types: TrustMemberType[];
|
|
19
19
|
descriptionUndefinedBeneficiary?: string;
|
|
20
20
|
legalEntityType?: TrustMemberLegalEntityType;
|
|
21
|
+
settlorExemptionReason?: SettlorExemptionReason[];
|
|
21
22
|
}
|
|
@@ -4,11 +4,20 @@ import { TrustMemberType } from '../../core/models/api/trust-member-type';
|
|
|
4
4
|
import type { UniqueTrustMember } from '../TrustMembers/types';
|
|
5
5
|
export declare const trustMemberLegalEntityTypes: readonly [LegalEntityType.INDIVIDUAL, LegalEntityType.ORGANIZATION];
|
|
6
6
|
export type TrustMemberLegalEntityType = (typeof trustMemberLegalEntityTypes)[number];
|
|
7
|
+
export declare const settlorExemptionReasons: readonly ["contributionBelowThreshold", "professionalServiceProvider", "deceased"];
|
|
8
|
+
export type SettlorExemptionReason = (typeof settlorExemptionReasons)[number];
|
|
9
|
+
export declare const settlorExemptionReasonWithNoneOfTheAbove: readonly ["contributionBelowThreshold", "professionalServiceProvider", "deceased", "noneOfTheAbove"];
|
|
10
|
+
export type SettlorExemptionReasonWithNoneOfTheAbove = (typeof settlorExemptionReasonWithNoneOfTheAbove)[number];
|
|
7
11
|
export interface TrustRoleAndEntityTypeSchema {
|
|
8
12
|
role?: TrustMemberType[];
|
|
9
13
|
entityType: TrustMemberLegalEntityType | undefined;
|
|
10
14
|
descriptionUndefinedBeneficiary?: string;
|
|
15
|
+
settlorExemptionReason?: SettlorExemptionReasonWithNoneOfTheAbove[];
|
|
11
16
|
}
|
|
12
17
|
export interface TrustRoleAndEntityTypeProps extends BaseInnerFormProps<TrustRoleAndEntityTypeSchema> {
|
|
13
18
|
trustMember?: UniqueTrustMember;
|
|
14
19
|
}
|
|
20
|
+
export declare const couldBeExemptSettlor: (data: Partial<TrustRoleAndEntityTypeSchema>) => boolean;
|
|
21
|
+
export declare const isExemptSettlor: (data: Partial<TrustRoleAndEntityTypeSchema>) => data is TrustRoleAndEntityTypeSchema & {
|
|
22
|
+
settlorExemptionReason: SettlorExemptionReason[];
|
|
23
|
+
};
|
|
@@ -6,7 +6,7 @@ import { DatasetUtil } from '../../../utils/datasetUtil';
|
|
|
6
6
|
* @param fieldName - The data to pre-fill the address fields
|
|
7
7
|
* @param country - The selected country
|
|
8
8
|
*/
|
|
9
|
-
export declare const getKeyForField: (fieldName: string, country: CountryCode) => "SST" | "RFC" | "CNPJ" | "CVR-nummer" | "close" | "individual" | "payoutAccount" | "payinAccount" | "firstName" | "lastName" | "country" | "street" | "houseNumber" | "houseNumberOptional" | "houseNumberOrName" | "postalCode" | "city" | "cityTown" | "state" | "provinceOrTerritory" | "selectProvinceOrTerritory" | "zipCode" | "apartmentSuite" | "apartmentSuiteOptional" | "phoneNumber" | "email" | "birthdate" | "code" | "invalidEmail" | "pleaseEnterAPhoneNumberPrefixedWithCountryCode" | "invalidPhoneNumber" | "birthDate" | "idNumber" | "selectState" | "selectCountry" | "search" | "noOptionsFound" | "SSNFormatUS" | "SSNFormatUS9Digits" | "SINFormatCA" | "invalidFormat" | "fieldIsRequired" | "tooManyFiles" | "duplicatedFiles" | "unsupportedFiletype" | "maximumFileSizeExceeded" | "personalDetails" | "invalidBirthDate" | "address" | "contactDetails" | "uploadDocument" | "individualDetails" | "socialSecurityNumber" | "socialSecurityNumber9Digits" | "codiceFiscale" | "personnummer" | "dni" | "peselNumber" | "detCentralePersonregister" | "codNumericPersonal" | "cadastroDePessoasFisicas" | "invalidFormatExpects" | "invalidFormatForAuPassportNumber" | "invalidFormatForAuDriversLicenseNumber" | "invalidFormatForAuDriversLicenseCardNumber" | "invalidFormatForAuProofOfIdentityCardNumber" | "invalidFormatIdentityNumberBR" | "invalidFormatIdentityNumberDK" | "invalidFormatIdentityNumberCA" | "invalidFormatIdentityNumberIT" | "invalidFormatIdentityNumberPL" | "invalidFormatIdentityNumberRO" | "invalidFormatIdentityNumberES" | "invalidFormatIdentityNumberSE" | "invalidFormatIdentityNumberUS" | "invalidFormatIdentityNumberUS9" | "invalidFormatIdentityNumberSG" | "residencyCountry" | "stateOrProvince" | "selectStateOrProvince" | "dragYourFilesHereOr" | "browse" | "supports" | "complete" | "summary" | "selectDocument" | "passport" | "passportNumber" | "id" | "driversLicense" | "issuerState" | "licenseNumber" | "licenseCardNumber" | "documents" | "idDocument" | "documentType" | "frontPage" | "backPage" | "fileName" | "proofOfNationality" | "uploadDocumentForSsn" | "operationalAddressHeader" | "operationalAddressHeaderDescription" | "operationalAddressIsSame" | "operationalAddressIsSameItemName" | "operationalAddressIsNotSameItemName" | "verifyPrefilledInfoIsCorrect" | "legalStructureHeader" | "whatTypeOfCompanyDoYouHave" | "privateCompanyTitle" | "privateCompanyDescription" | "publicCompanyTitle" | "publicCompanyDescription" | "incorporatedPartnershipTitle" | "incorporatedPartnershipDescription" | "nonProfitOrCharitableOrgTitle" | "nonProfitOrCharitableOrgDescription" | "governmentalOrganizationTitle" | "governmentalOrganizationDescription" | "associationIncorporatedTitle" | "associationIncorporatedDescription" | "jobTitle" | "legalStructure" | "entityType" | "registrationDetails" | "registeredAddress" | "registrationAddress" | "registeredAddressHeaderDescription" | "registeredAddressHeaderDescription__US" | "registeredAddressTrustHeaderDescription" | "operationalAddress" | "provideRegistrationDetails" | "companyStructure" | "providePersonalAddress" | "provideContactDetails" | "correctErrorsResubmit" | "registrationDocument" | "taxDocument" | "companyDetails" | "invalidRegistrationNumber" | "tradingName" | "chamberOfCommerceRegistrationNumber" | "taxId" | "exemptedFromTax" | "doNotHaveTaxIdNumber" | "doNotHaveFirmenbuchnummer" | "doNotHaveOrganisationsnummer" | "doNotHaveYTunnus" | "doNotHaveLtRegistrationNumber" | "doNotHaveLuRegistrationNumber" | "doNotHaveChRegistrationNumber" | "doNotHaveHandelsregisternummer" | "doNotHaveRegonKrsNumber" | "taxIdAbsenceReason" | "vatNumberExempted" | "vatNumberAbsenceReason" | "belowTaxThreshold" | "industryExemption" | "validationPleaseEnterAValidRegistrationNumber" | "validationPleaseEnterAValidRegistrationNumberWithFormat" | "validationPleaseEnterAValidVatNumber" | "validationPleaseEnterAValidVatNumberWithFormat" | "validationPleaseEnterAValidTaxIdNumberWithFormat" | "aValidAbnShouldBe11Digits" | "aValidUenOrGstShouldBe9To10Characters" | "validationPleaseEnterAValidUen" | "validationPleaseEnterAValidIban" | "yourIbanShouldBeginWith_" | "validation8Or11Characters" | "validationCharacters" | "validationDigitsBetween" | "validationDigits" | "enterValidRegistrationNumber" | "stockExchangeMIC" | "stockExchangeMICHelper" | "stockISINHelper" | "stockISIN" | "validationPleaseEnterAValidMarketIdentifier" | "validationPleaseEnterAValidStockISIN" | "shareholderDocument" | "role" | "selectTheApplicableRoles" | "back" | "next" | "submit" | "submitSuccessful" | "submitFailed" | "submitReviewOfYourData" | "completeReview" | "submitReview" | "pleaseNote" | "byClickingSubmitReview" | "nameAndCountry" | "companyCountry" | "legalCompanyName" | "legalCompanyNameHelper" | "legalCompanyNameHelper__AU" | "legalCompanyNameHelper__US" | "accountDetailsDescription" | "provideDetails" | "payoutAccountsDescription" | "payoutAccountsDescriptionReview" | "payinAccountsDescription" | "addExtraPayoutAccount" | "addExtraPayinAccount" | "payoutDetails" | "payinDetails" | "addPayoutAccount" | "addPayinAccount" | "failedToFetchPayoutAccount" | "failedToDeletePayoutAccount" | "transferInstrumentDeleted" | "toCompleteProcessReviewAndSignOfficialDocumentation" | "sign" | "signer" | "selectSigner" | "pciSignedSuccessfully" | "pciSignFailed" | "byClickingSignIAcknowledgeAndAgree" | "acknowledgePciRequirements" | "basedOnTheAboveSignatory" | "failedToGetPciStatus" | "failedToGetPciTemplate" | "failedToGetPciTemplateInSelectedLanguageFallbackToEn" | "failedToDownloadPci" | "signServiceAgreement" | "signedDocuments" | "paymentProcessingTerms" | "accountHolderTerms" | "capitalUserTerms" | "businessAccountTerms" | "cardUserTerms" | "franchiseesTAndCs" | "pciDssQuestionnaire" | "serviceAgreementSignedSuccessfully" | "serviceAgreementSignFailed" | "failedToGetServiceAgreementStatus" | "failedToGetServiceAgreement" | "failedToGetServiceAgreementInSelectedLanguageFallbackToEn" | "iHaveReadAndIAcceptTheseTerms" | "verified" | "signed" | "invalidRole" | "unableToVerifyTheIdNumber" | "download" | "accountHolder" | "accountHolderDescriptionCompany" | "accountHolderDescriptionIndividual" | "accountHolderDescriptionSoleProp" | "bankAccountToHaveSameNameAsTrust" | "bankCountry" | "bankAccountCountry" | "currency" | "currencyCode" | "currencyPlaceholder" | "bankAccountNumber" | "iban" | "swiftCode" | "bic" | "bsbNumber" | "branchCode" | "transitNumber" | "listitemVoidedChequeBankLetterBankStatementOnline" | "instructionNumber" | "institutionNumber" | "sortCode" | "bankCityTown" | "clearingCode" | "bankCode" | "bankName" | "achRoutingNumber" | "decisionMaker" | "decisionMakerDescription" | "owner" | "ownerDescription" | "controllingPerson" | "controllingPersonDescription" | "signatory" | "signatoryDescription" | "director" | "directorDescription" | "provideAllDirectors" | "addDecisionMaker" | "decisionMakers" | "goToOverview" | "saveAndGoToOverview" | "pleaseEnsureTheFollowing" | "edit" | "remove" | "toggleAssociationMenu" | "editDecisionMakerDetails" | "removeDecisionMaker" | "verifyDecisionMakerDetails" | "goToMenu" | "confirm" | "goToDecisionMakers" | "theSubmitWasSuccessful" | "thereWasAnErrorTryAgain" | "proofOfIdentityCard" | "proofOfIdentityCardNumber" | "proofOfResidence" | "proofOfNationalId" | "backToTaskList" | "proofOfResidenceDocumentTypeLabel" | "utilityBill" | "governmentIssuedCorrespondence" | "taxationDocument" | "extractFromMunicipalPersonalRecordsDatabase" | "salarySlip" | "mortgageStatement" | "certificateOfVoterRegistration" | "businessAccountDetailsDescription" | "businessAccountDetailsDescriptionReview" | "documentAddressedToName" | "showAddressStateCountry" | "dateOnDocumentNoOlderThanXMonths" | "fullDocumentVisibleWithReadableText" | "documentCannotBeDamaged" | "verify" | "add" | "idUploadDocumentSubtitle" | "documentNotExpiredOrDamaged" | "weAccept" | "includeFrontAndBack" | "fullDocumentVisible" | "imagesInColor" | "birthDatePlaceholder" | "onlyEnterNormalCharacters" | "verifyCompanyInfoIsUpToDate" | "failedToFetchRelevantDocuments" | "failedToFetchRelevantAccounts" | "processing" | "inReview" | "unsuccessful" | "invalidDateOfBirth" | "successfullyUpdatedDetails" | "failedToUpdateDetails" | "successfullyVerifiedIdNumber" | "failedFetchingDecisionMaker" | "fileUpload" | "bankStatement" | "bankStatementOptional" | "bankAccountVerification" | "bankStatementDocument" | "bankStatementDocumentTypeLabel" | "requirements" | "accountHolderNameMatchesWithBusinessOrTradingName" | "accountNumberOrIbanVisible" | "accountNumberVisible" | "routingNumberVisible" | "showsCountryOfBankAccount" | "hasToBeOfficialDocumentFromBank" | "ifDocumentMoreThan12months" | "whyDoINeedToFillInThisInformation" | "reasonForFillingCompanyRegistrationDetails" | "reasonForFillingCompanyAddressDetails" | "reasonForFillingIndividualPersonalDetails" | "reasonForFillingIndividualAddressDetails" | "reasonForFillingPayoutAccountDetails" | "reasonForFillingPayoutDetails" | "whatIsTheDifferenceBetweenTheseRoles" | "ownerGuideDescription" | "controllingPersonGuideDescription" | "signatoryGuideDescription" | "directorGuideDescription" | "someoneAppointedToManageACompanysBusinessAndAffairs" | "whatIfDocumentIsMoreThan12MonthsOld" | "descriptionHelper" | "depositTicket" | "screenshotOfOnlineBankingEnviroment" | "officialEmailOrALetterFromYourBank" | "cheques" | "releveDidentiteBancaire" | "successFullyRemovedDecisionMaker" | "failedToRemoveDecisionMaker" | "chamberOfCommerceExtract" | "taxNumberCorporateNumber" | "companyLegalName" | "companyName" | "companyType" | "taxReferenceNumber" | "companyProfile" | "companyNumber" | "RfcDocument" | "companyRegistrationDocument" | "businessName" | "typeOfCompany" | "typeOfIdentity" | "typeOfIdentitySubtitle" | "businessNumber" | "doingBusinessAs" | "taxIdentificationNumber" | "irdDocument" | "irdNumber" | "australianBusinessNumberAbn" | "australianBusinessNumberAcn" | "enterpriseNumber" | "NIP" | "NIPC" | "numerodeIVA" | "NIF" | "uen" | "nric" | "NIFdeIVA" | "partitaIVA" | "organisationsnummer" | "momsregistreringsnummer" | "codiceFiscaleOrCCIAA" | "UST-ID" | "DIC" | "ICO" | "USt-IdNr" | "handelsregisternummer" | "NumeroDeTVA" | "organisasjonsnummer" | "skattenummer" | "verificationErrorMessage" | "remediationFormErrorMessage" | "youHaveUnsavedChanges" | "areYouSureToLeave" | "cancel" | "save&Leave" | "leave" | "taxIdNumber" | "companyRegistrationNumber" | "euVatNumber" | "vatNumber" | "regonKrsNumber" | "registrationNumber" | "registrationNumber__nonProfit__FR" | "registrationNumber__FR" | "registrationNumber__PR" | "charityNumber" | "firmenbuchnummer" | "firmenbuchnummerOrZVR" | "stepsX/YofForm" | "no" | "yes" | "informationCouldNotBeSubmitted" | "fieldHasUnsupportedFormats" | "updateTheInformation" | "andResubmit" | "someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit" | "trustType" | "cashManagementTrust" | "corporateUnitTrust" | "deceasedEstate" | "discretionaryInvestmentTrust" | "discretionaryServicesManagementTrust" | "discretionaryTradingTrust" | "firstHomeSaverAccountsTrust" | "fixedTrust" | "fixedUnitTrust" | "hybridTrust" | "listedPublicUnitTrust" | "otherTrust" | "pooledSuperannuationTrust" | "publicTradingTrust" | "unlistedPublicUnitTrust" | "countryOfEstablishment" | "nameOfTrustAgreement" | "typeOfTrustAgreement" | "weFoundTheFollowingIssues" | "reviewTheInformationBelowAndCorrectMistakesOr" | "uploadTheRequestedDocuments" | "uploadTheFollowingDocuments" | "uploadDocumentAndDocument" | "thenResubmit" | "isTrustOperationAddressSame" | "trustDetails" | "trustDetailsDescription" | "trustDocumentDescription" | "nameOfTrust" | "fullLegalNamesOfAnyAppointers" | "dateDeedWasSigned" | "settlerDetailsIncl" | "trusteeDetailsIncl" | "beneficiariesDetailsIncl" | "trustMembers" | "trustMembersDescription" | "trustee" | "obligatory" | "requiredIfApplicable" | "provideAtLeastOneSettlor" | "provideAtLeastOneProtector" | "provideAllBeneficiaries" | "provideAllTrustees" | "provideAllControllingPersons" | "settlorGuideDescription" | "trusteeGuideDescription" | "protectorGuideDescription" | "beneficiaryGuideDescription" | "uboThroughControlGuideDescription" | "uboThroughOwnershipGuideDescription" | "beneficiary" | "protector" | "settlor" | "ultimateBeneficialOwner" | "addTrustMember" | "personAppointmentUnderTrustInstrument" | "legalOwnerOfProperty" | "entityEstablishingTrust" | "entityOwning25OrMoreOfTrust" | "controllingPersonOfTrust" | "failedToFetchTrustDetails" | "failedToFetchTrustMemberDetails" | "failedToFetchLegalEntityDetails" | "editTrustMember" | "removeTrustMember" | "successFullyRemovedTrustMember" | "failedToRemoveTrustMember" | "editEntityDetails" | "editOwnerOfTrustMember" | "editEntityOwner" | "addEntityOwner" | "addOwnerToTrustMember" | "whatTypeOfYourMembersEntity" | "naturalPersonTitle" | "naturalPersonDescription" | "businessEntityTitle" | "businessEntityDescription" | "roleAndEntityType" | "helpUsVerifyCompany" | "providePersonalDetailsOfOwner" | "memberDetails" | "good" | "notCutOff" | "notBlurry" | "notExpired" | "noGlare" | "selectDocumentType" | "registrationDocumentSubTitle" | "documentIssuedByGovernmentAuthority" | "uploadTaxationDocument" | "containsNameOfCompany" | "documentShowsTaxIdOfCompany" | "issuedByTheTaxAuthority" | "providePageWithPhotoAndCode" | "constitutionalDocument" | "solePropDetails" | "soleProprietorDetails" | "selectAccountHolder" | "nameOfBankAccountHolder" | "myName" | "myNameDescription" | "mySoleTraderName" | "mySoleTraderNameDescription" | "theCompanyIWorkFor" | "theCompanyIWorkForDescription" | "aTrust" | "aTrustDescription" | "aPartnership" | "aPartnershipDescription" | "anAssociation" | "anAssociationDescription" | "legalNameOfSoleProprietor" | "failedToFetchSoleProp" | "uniqueIdentificationCode" | "identifikacionenNomerDDS" | "MBS" | "PDVIdBrojOIB" | "cyRegistrationNumber" | "arithmosEngraphes" | "momsregistreringsnummerOrStamregister" | "registrikood" | "kaibemaksukohustuslaseNumber" | "YTunnus" | "arvonlisaveronumeroMervardesskattenummer" | "GEMI-number" | "grTaxId" | "huRegistrationNumber" | "huTaxId" | "valueAddedTaxIdentificationNumber" | "lvRegistrationNumber" | "lvTaxId" | "ltRegistrationNumber" | "mcRegistrationNumberSoleProp" | "PVMmoketojoKodas" | "luRegistrationNumber" | "numeroDIdentificationALATaxe" | "numarOrdineRegistrulComertului" | "codulDeIdentificareFiscala" | "skRegistrationNumber" | "skTaxId" | "siRegistrationNumber" | "siTaxId" | "chRegistrationNumber" | "mcRegistrationNumber" | "liRegistrationNumber" | "Mehrwertsteuernummer" | "Xdigits" | "upToXdigits" | "XtoYdigits" | "XorYdigits" | "Xcharacters" | "XtoYcharacters" | "XdigitsAndYcharacters" | "1character5to7digits" | "1char8digits" | "1charXalphanumeric" | "2characters6or7digits" | "7or8or12characters" | "2digits1to3letters5digits" | "Cchar5digits" | "characterPlusXToYDigitsWithOptionalSpace" | "cop1to8digits" | "8digitsOptional-" | "provideAllOwners" | "ifNoOwnersSpecifyControllingPersons" | "provideAtLeastOneSignatory" | "provideOneControllingPerson" | "textToVerifyAccount" | "theBankAccountHolderMustHaveTheSameNameAsYourCompany_" | "theBankAccountHolderMustBeInYourName_" | "weDoNotYetSupportInstantVerificationForBankAccountsIn_" | "youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered" | "youCanOnlyUseABankAccountInTheCountryWhereYouLive" | "mobileApplication" | "onOnlineBankingEnvironment" | "dontHaveAccessOnlineBanking" | "confirmPayoutManually" | "noteManualTakesLonger" | "accountVerification" | "verifyWith" | "documentVerification" | "youHaveSuccessfullyProvidedTheIdDocument" | "submitIdDocumentsAgain" | "madeAMistake" | "canNotCompleteInstantVerification" | "goBackAndProvideDocumentScans" | "identityCard" | "uploadOneOfTheFollowing" | "documentIssuedWithinLastYear" | "learnMore" | "doingBusinessAsNameFiling" | "taxFiling" | "continueAsCompany" | "continueAsIndividual" | "indicatedPayoutToCompany" | "continueSigningUpAsCompany" | "indicatedPayoutToPersonalAccount" | "continueSigningUpAsIndividual" | "continue" | "noGoBack" | "continueCompany" | "continueIndividual" | "addManually" | "searchAddress" | "startTypingTheAddress" | "addresses" | "loading" | "businessIncorporationNumber" | "doNotHaveBusinessIncorporationNumber" | "socialInsuranceNumber" | "verificationMethod" | "verifyViaMobileBankAppOrBankWebsite" | "provideAccountDetailsAndUploadBankStatement" | "instantVerificationDescription" | "couldNotEstablishBankConnection" | "sorryAnErrorOccurred" | "ranIntoTechnicalError" | "failedInitializeInstantVerification" | "couldNotCompleteAccountCheck" | "tryAgainOrManualAccountDetails" | "manualVerificationDescription" | "poweredBy" | "youSuccessfullyVerifiedAccount" | "verifyBankAccountAgain" | "accountName" | "mayTakeAFewHoursOrDays" | "instant" | "tink" | "trustly" | "isOurTrustedPartnerHelpingSpeedUpSetup" | "howDoesVerificationWithOurPartnerWorks" | "selectTheBankToReceivePayouts" | "bankAccountFormat" | "ibanFormat" | "localFormat" | "payoutInOnly_" | "payoutIn_Or_" | "loginIntoYourBankingEnvironment" | "yourBankWillConfirmYourAccountDetails" | "adyenWillOnlyGetTemporaryAccess" | "instantVerification" | "xCharactersLeft" | "goBack" | "businessRegistrationNumber" | "doNotHaveBusinessNumber" | "UEN/GST" | "IRD/GST" | "enterNameExactlyAsAppearInID" | "enterLastNameExactlyAsAppearInID" | "takePhotoOriginalDocumentWithPhone" | "instantIDVerificationDescription" | "manualIDVerificationDescription" | "uploadScanOriginalIDDocument" | "takesLonger" | "howVerificationWithOnfidoWork" | "onfidoIsOurTrustedPartner" | "usePhoneToScanId" | "onfidoWillGiveFeedbackInRealTime" | "theIdCheckWillBeAutomaticallyValidated" | "adyenKeepsDataAsLongAsLegallyRequired" | "requiresSignatory" | "requiresDecisionMakers" | "definedBeneficiary" | "definedBeneficiaryDescription" | "undefinedBeneficiary" | "undefinedBeneficiaryDescription" | "description" | "descriptionOptional" | "describeWhoIsABeneficiaryInYourTrust" | "descriptionUndefinedBeneficiary" | "undefinedBeneficiaryGuideDescription" | "identityCardBack" | "identityCardFront" | "drivinglicenseBack" | "drivinglicenseFront" | "passportPhotoPage" | "residencePermitBack" | "residencePermitFront" | "manualUpload" | "errorMessage_1_10" | "errorMessage_1_11" | "errorMessage_1_12" | "errorMessage_1_30" | "errorMessage_1_31" | "errorMessage_1_32" | "errorMessage_1_33" | "errorMessage_1_34" | "errorMessage_1_35" | "errorMessage_1_36" | "errorMessage_1_37" | "errorMessage_1_38" | "errorMessage_1_39" | "errorMessage_1_40" | "errorMessage_1_41" | "errorMessage_1_50" | "errorMessage_1_51" | "errorMessage_1_52" | "errorMessage_1_53" | "errorMessage_1_54" | "errorMessage_1_55" | "errorMessage_1_56" | "errorMessage_1_57" | "errorMessage_1_60" | "errorMessage_1_61" | "errorMessage_1_62" | "errorMessage_1_70" | "errorMessage_1_71" | "errorMessage_1_72" | "errorMessage_1_73" | "errorMessage_1_74" | "errorMessage_1_75" | "errorMessage_1_76" | "errorMessage_1_1000" | "errorMessage_1_1001" | "errorMessage_1_1002" | "errorMessage_1_1003" | "errorMessage_1_3000" | "errorMessage_1_3001" | "errorMessage_1_3002" | "errorMessage_1_3003" | "errorMessage_1_3004" | "errorMessage_1_3005" | "errorMessage_1_3006" | "errorMessage_1_3007" | "errorMessage_1_3008" | "errorMessage_1_3009" | "errorMessage_1_3010" | "errorMessage_1_3011" | "errorMessage_1_3012" | "errorMessage_1_3013" | "errorMessage_1_3014" | "errorMessage_1_3015" | "errorMessage_1_3016" | "errorMessage_1_3017" | "errorMessage_1_3018" | "errorMessage_1_3019" | "errorMessage_1_3020" | "errorMessage_1_3021" | "errorMessage_1_3022" | "errorMessage_1_3023" | "errorMessage_1_3024" | "errorMessage_1_3025" | "errorMessage_1_3026" | "errorMessage_1_3027" | "errorMessage_1_3028" | "errorMessage_1_3029" | "errorMessage_1_3030" | "errorMessage_1_3031" | "errorMessage_1_3032" | "errorMessage_1_3033" | "errorMessage_1_3034" | "errorMessage_1_3035" | "errorMessage_1_3036" | "errorMessage_1_3037" | "errorMessage_1_3038" | "errorMessage_1_3039" | "errorMessage_1_3040" | "errorMessage_1_3041" | "errorMessage_1_3042" | "errorMessage_1_3043" | "errorMessage_1_3044" | "errorMessage_1_3045" | "errorMessage_1_3046" | "errorMessage_1_3047" | "errorMessage_1_3048" | "errorMessage_1_3049" | "errorMessage_1_3050" | "errorMessage_1_3051" | "errorMessage_1_3062" | "errorMessage_1_5000" | "errorMessage_1_5001" | "errorMessage_1_5002" | "errorMessage_1_5003" | "errorMessage_1_5004" | "errorMessage_1_5005" | "errorMessage_1_5006" | "errorMessage_1_5007" | "errorMessage_1_5008" | "errorMessage_1_5009" | "errorMessage_1_5010" | "errorMessage_1_5011" | "errorMessage_1_5012" | "errorMessage_1_5013" | "errorMessage_1_5014" | "errorMessage_1_5015" | "errorMessage_1_5016" | "errorMessage_1_5017" | "errorMessage_1_5018" | "errorMessage_1_5019" | "errorMessage_1_5020" | "errorMessage_1_5021" | "errorMessage_1_5022" | "errorMessage_1_5023" | "errorMessage_1_5024" | "errorMessage_1_5025" | "errorMessage_1_5026" | "errorMessage_1_5027" | "errorMessage_1_5028" | "errorMessage_1_5029" | "errorMessage_1_5030" | "errorMessage_1_5031" | "errorMessage_1_5032" | "errorMessage_1_5033" | "errorMessage_1_5034" | "errorMessage_1_5035" | "errorMessage_1_5036" | "errorMessage_1_5037" | "errorMessage_1_5038" | "errorMessage_1_5039" | "errorMessage_1_5040" | "errorMessage_1_5041" | "errorMessage_1_5042" | "errorMessage_1_5043" | "errorMessage_1_5044" | "errorMessage_1_5045" | "errorMessage_1_5046" | "errorMessage_1_5047" | "errorMessage_1_5048" | "errorMessage_1_5049" | "errorMessage_1_5050" | "errorMessage_1_5051" | "errorMessage_1_5052" | "errorMessage_1_5053" | "errorMessage_1_6000" | "errorMessage_1_6001" | "errorMessage_1_6002" | "errorMessage_1_6003" | "errorMessage_1_6004" | "errorMessage_1_6005" | "errorMessage_1_6006" | "errorMessage_1_6007" | "errorMessage_1_6008" | "errorMessage_1_6009" | "errorMessage_1_6010" | "errorMessage_1_6011" | "errorMessage_1_6022" | "errorMessage_1_6027" | "errorMessage_1_7000" | "errorMessage_1_7001" | "errorMessage_1_7002" | "errorMessage_1_7003" | "errorMessage_1_7004" | "errorMessage_1_7005" | "errorMessage_1_7006" | "errorMessage_1_7007" | "errorMessage_1_7008" | "errorMessage_1_7009" | "errorMessage_1_7010" | "errorMessage_1_7011" | "errorMessage_1_7012" | "errorMessage_1_7013" | "errorMessage_1_7014" | "errorMessage_1_7015" | "errorMessage_1_7016" | "errorMessage_1_7017" | "errorMessage_1_7018" | "errorMessage_1_7019" | "errorMessage_1_7020" | "errorMessage_1_7021" | "errorMessage_1_7022" | "errorMessage_3_10" | "remediationMessage_1_100" | "remediationMessage_1_101" | "remediationMessage_1_102" | "remediationMessage_2_158" | "remediationMessage_1_300" | "remediationMessage_1_301" | "remediationMessage_1_302" | "remediationMessage_1_303" | "remediationMessage_1_304" | "remediationMessage_1_305" | "remediationMessage_1_306" | "remediationMessage_1_307" | "remediationMessage_1_308" | "remediationMessage_1_309" | "remediationMessage_1_316" | "remediationMessage_1_500" | "remediationMessage_1_501" | "remediationMessage_1_502" | "remediationMessage_1_503" | "remediationMessage_1_504" | "remediationMessage_1_505" | "remediationMessage_1_506" | "remediationMessage_1_507" | "remediationMessage_1_508" | "remediationMessage_1_509" | "remediationMessage_1_510" | "remediationMessage_1_511" | "remediationMessage_1_600" | "remediationMessage_1_601" | "remediationMessage_1_602" | "remediationMessage_1_700" | "remediationMessage_1_701" | "remediationMessage_1_702" | "remediationMessage_1_703" | "remediationMessage_1_704" | "remediationMessage_1_705" | "remediationMessage_3_100" | "sameNameAsLegalName" | "whereCanIFindTheseNumbersOnMyDriversLicense" | "whereToFindNumbersOnDriversLicense" | "iStillCantFindIt" | "patriotActDisclosureTitle" | "patriotActDisclosureTextParagraph1" | "patriotActDisclosureTextParagraph2" | "trusteeAsTrusteeForTrust" | "trustDeed" | "trustInstrument" | "makeSureToHaveYourTrustDeed" | "maintenanceModeMessage" | "individualTrusteeDetails" | "companyTrusteeDetails" | "trusteePersonalDetails" | "byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms";
|
|
9
|
+
export declare const getKeyForField: (fieldName: string, country: CountryCode) => "SST" | "RFC" | "CNPJ" | "CVR-nummer" | "close" | "individual" | "payoutAccount" | "payinAccount" | "firstName" | "lastName" | "country" | "street" | "houseNumber" | "houseNumberOptional" | "houseNumberOrName" | "postalCode" | "city" | "cityTown" | "state" | "provinceOrTerritory" | "selectProvinceOrTerritory" | "zipCode" | "apartmentSuite" | "apartmentSuiteOptional" | "phoneNumber" | "email" | "birthdate" | "code" | "invalidEmail" | "pleaseEnterAPhoneNumberPrefixedWithCountryCode" | "invalidPhoneNumber" | "birthDate" | "idNumber" | "selectState" | "selectCountry" | "search" | "noOptionsFound" | "SSNFormatUS" | "SSNFormatUS9Digits" | "SINFormatCA" | "invalidFormat" | "fieldIsRequired" | "tooManyFiles" | "duplicatedFiles" | "unsupportedFiletype" | "maximumFileSizeExceeded" | "personalDetails" | "invalidBirthDate" | "address" | "contactDetails" | "uploadDocument" | "individualDetails" | "socialSecurityNumber" | "socialSecurityNumber9Digits" | "codiceFiscale" | "personnummer" | "dni" | "peselNumber" | "detCentralePersonregister" | "codNumericPersonal" | "cadastroDePessoasFisicas" | "invalidFormatExpects" | "invalidFormatForAuPassportNumber" | "invalidFormatForAuDriversLicenseNumber" | "invalidFormatForAuDriversLicenseCardNumber" | "invalidFormatForAuProofOfIdentityCardNumber" | "invalidFormatIdentityNumberBR" | "invalidFormatIdentityNumberDK" | "invalidFormatIdentityNumberCA" | "invalidFormatIdentityNumberIT" | "invalidFormatIdentityNumberPL" | "invalidFormatIdentityNumberRO" | "invalidFormatIdentityNumberES" | "invalidFormatIdentityNumberSE" | "invalidFormatIdentityNumberUS" | "invalidFormatIdentityNumberUS9" | "invalidFormatIdentityNumberSG" | "residencyCountry" | "stateOrProvince" | "selectStateOrProvince" | "dragYourFilesHereOr" | "browse" | "supports" | "complete" | "summary" | "selectDocument" | "passport" | "passportNumber" | "id" | "driversLicense" | "issuerState" | "licenseNumber" | "licenseCardNumber" | "documents" | "idDocument" | "documentType" | "frontPage" | "backPage" | "fileName" | "proofOfNationality" | "uploadDocumentForSsn" | "operationalAddressHeader" | "operationalAddressHeaderDescription" | "operationalAddressIsSame" | "operationalAddressIsSameItemName" | "operationalAddressIsNotSameItemName" | "verifyPrefilledInfoIsCorrect" | "legalStructureHeader" | "whatTypeOfCompanyDoYouHave" | "privateCompanyTitle" | "privateCompanyDescription" | "publicCompanyTitle" | "publicCompanyDescription" | "incorporatedPartnershipTitle" | "incorporatedPartnershipDescription" | "nonProfitOrCharitableOrgTitle" | "nonProfitOrCharitableOrgDescription" | "governmentalOrganizationTitle" | "governmentalOrganizationDescription" | "associationIncorporatedTitle" | "associationIncorporatedDescription" | "jobTitle" | "legalStructure" | "entityType" | "registrationDetails" | "registeredAddress" | "registrationAddress" | "registeredAddressHeaderDescription" | "registeredAddressHeaderDescription__US" | "registeredAddressTrustHeaderDescription" | "operationalAddress" | "provideRegistrationDetails" | "companyStructure" | "providePersonalAddress" | "provideContactDetails" | "correctErrorsResubmit" | "registrationDocument" | "taxDocument" | "companyDetails" | "invalidRegistrationNumber" | "tradingName" | "chamberOfCommerceRegistrationNumber" | "taxId" | "exemptedFromTax" | "doNotHaveTaxIdNumber" | "doNotHaveFirmenbuchnummer" | "doNotHaveOrganisationsnummer" | "doNotHaveYTunnus" | "doNotHaveLtRegistrationNumber" | "doNotHaveLuRegistrationNumber" | "doNotHaveChRegistrationNumber" | "doNotHaveHandelsregisternummer" | "doNotHaveRegonKrsNumber" | "taxIdAbsenceReason" | "vatNumberExempted" | "vatNumberAbsenceReason" | "belowTaxThreshold" | "industryExemption" | "validationPleaseEnterAValidRegistrationNumber" | "validationPleaseEnterAValidRegistrationNumberWithFormat" | "validationPleaseEnterAValidVatNumber" | "validationPleaseEnterAValidVatNumberWithFormat" | "validationPleaseEnterAValidTaxIdNumberWithFormat" | "aValidAbnShouldBe11Digits" | "aValidUenOrGstShouldBe9To10Characters" | "validationPleaseEnterAValidUen" | "validationPleaseEnterAValidIban" | "yourIbanShouldBeginWith_" | "validation8Or11Characters" | "validationCharacters" | "validationDigitsBetween" | "validationDigits" | "enterValidRegistrationNumber" | "stockExchangeMIC" | "stockExchangeMICHelper" | "stockISINHelper" | "stockISIN" | "validationPleaseEnterAValidMarketIdentifier" | "validationPleaseEnterAValidStockISIN" | "shareholderDocument" | "role" | "selectAllTheRolesThatThisDecisionMakerHolds" | "selectTheApplicableRoles" | "back" | "next" | "submit" | "submitSuccessful" | "submitFailed" | "submitReviewOfYourData" | "completeReview" | "submitReview" | "pleaseNote" | "byClickingSubmitReview" | "nameAndCountry" | "companyCountry" | "legalCompanyName" | "legalCompanyNameHelper" | "legalCompanyNameHelper__AU" | "legalCompanyNameHelper__US" | "accountDetailsDescription" | "provideDetails" | "payoutAccountsDescription" | "payoutAccountsDescriptionReview" | "payinAccountsDescription" | "addExtraPayoutAccount" | "addExtraPayinAccount" | "payoutDetails" | "payinDetails" | "addPayoutAccount" | "addPayinAccount" | "failedToFetchPayoutAccount" | "failedToDeletePayoutAccount" | "transferInstrumentDeleted" | "toCompleteProcessReviewAndSignOfficialDocumentation" | "sign" | "signer" | "selectSigner" | "pciSignedSuccessfully" | "pciSignFailed" | "byClickingSignIAcknowledgeAndAgree" | "acknowledgePciRequirements" | "basedOnTheAboveSignatory" | "failedToGetPciStatus" | "failedToGetPciTemplate" | "failedToGetPciTemplateInSelectedLanguageFallbackToEn" | "failedToDownloadPci" | "signServiceAgreement" | "signedDocuments" | "paymentProcessingTerms" | "accountHolderTerms" | "capitalUserTerms" | "businessAccountTerms" | "cardUserTerms" | "franchiseesTAndCs" | "pciDssQuestionnaire" | "serviceAgreementSignedSuccessfully" | "serviceAgreementSignFailed" | "failedToGetServiceAgreementStatus" | "failedToGetServiceAgreement" | "failedToGetServiceAgreementInSelectedLanguageFallbackToEn" | "iHaveReadAndIAcceptTheseTerms" | "verified" | "signed" | "invalidRole" | "unableToVerifyTheIdNumber" | "download" | "accountHolder" | "accountHolderDescriptionCompany" | "accountHolderDescriptionIndividual" | "accountHolderDescriptionSoleProp" | "bankAccountToHaveSameNameAsTrust" | "bankCountry" | "bankAccountCountry" | "currency" | "currencyCode" | "currencyPlaceholder" | "bankAccountNumber" | "iban" | "swiftCode" | "bic" | "bsbNumber" | "branchCode" | "transitNumber" | "listitemVoidedChequeBankLetterBankStatementOnline" | "instructionNumber" | "institutionNumber" | "sortCode" | "bankCityTown" | "clearingCode" | "bankCode" | "bankName" | "achRoutingNumber" | "decisionMaker" | "decisionMakerDescription" | "owner" | "ownerDescription" | "controllingPerson" | "controllingPersonDescription" | "signatory" | "signatoryDescription" | "director" | "directorDescription" | "provideAllDirectors" | "addDecisionMaker" | "decisionMakers" | "goToOverview" | "saveAndGoToOverview" | "pleaseEnsureTheFollowing" | "edit" | "remove" | "toggleAssociationMenu" | "editDecisionMakerDetails" | "removeDecisionMaker" | "verifyDecisionMakerDetails" | "goToMenu" | "confirm" | "goToDecisionMakers" | "theSubmitWasSuccessful" | "thereWasAnErrorTryAgain" | "proofOfIdentityCard" | "proofOfIdentityCardNumber" | "proofOfResidence" | "proofOfNationalId" | "backToTaskList" | "proofOfResidenceDocumentTypeLabel" | "utilityBill" | "governmentIssuedCorrespondence" | "taxationDocument" | "extractFromMunicipalPersonalRecordsDatabase" | "salarySlip" | "mortgageStatement" | "certificateOfVoterRegistration" | "businessAccountDetailsDescription" | "businessAccountDetailsDescriptionReview" | "documentAddressedToName" | "showAddressStateCountry" | "dateOnDocumentNoOlderThanXMonths" | "fullDocumentVisibleWithReadableText" | "documentCannotBeDamaged" | "verify" | "add" | "idUploadDocumentSubtitle" | "documentNotExpiredOrDamaged" | "weAccept" | "includeFrontAndBack" | "fullDocumentVisible" | "imagesInColor" | "birthDatePlaceholder" | "onlyEnterNormalCharacters" | "verifyCompanyInfoIsUpToDate" | "failedToFetchRelevantDocuments" | "failedToFetchRelevantAccounts" | "processing" | "inReview" | "unsuccessful" | "invalidDateOfBirth" | "successfullyUpdatedDetails" | "failedToUpdateDetails" | "successfullyVerifiedIdNumber" | "failedFetchingDecisionMaker" | "fileUpload" | "bankStatement" | "bankStatementOptional" | "bankAccountVerification" | "bankStatementDocument" | "bankStatementDocumentTypeLabel" | "requirements" | "accountHolderNameMatchesWithBusinessOrTradingName" | "accountNumberOrIbanVisible" | "accountNumberVisible" | "routingNumberVisible" | "showsCountryOfBankAccount" | "hasToBeOfficialDocumentFromBank" | "ifDocumentMoreThan12months" | "whyDoINeedToFillInThisInformation" | "reasonForFillingCompanyRegistrationDetails" | "reasonForFillingCompanyAddressDetails" | "reasonForFillingIndividualPersonalDetails" | "reasonForFillingIndividualAddressDetails" | "reasonForFillingPayoutAccountDetails" | "reasonForFillingPayoutDetails" | "whatIsTheDifferenceBetweenTheseRoles" | "ownerGuideDescription" | "controllingPersonGuideDescription" | "signatoryGuideDescription" | "directorGuideDescription" | "someoneAppointedToManageACompanysBusinessAndAffairs" | "whatIfDocumentIsMoreThan12MonthsOld" | "descriptionHelper" | "depositTicket" | "screenshotOfOnlineBankingEnviroment" | "officialEmailOrALetterFromYourBank" | "cheques" | "releveDidentiteBancaire" | "successFullyRemovedDecisionMaker" | "failedToRemoveDecisionMaker" | "chamberOfCommerceExtract" | "taxNumberCorporateNumber" | "companyLegalName" | "companyName" | "companyType" | "taxReferenceNumber" | "companyProfile" | "companyNumber" | "RfcDocument" | "companyRegistrationDocument" | "businessName" | "typeOfCompany" | "typeOfIdentity" | "typeOfIdentitySubtitle" | "businessNumber" | "doingBusinessAs" | "taxIdentificationNumber" | "irdDocument" | "irdNumber" | "australianBusinessNumberAbn" | "australianBusinessNumberAcn" | "enterpriseNumber" | "NIP" | "NIPC" | "numerodeIVA" | "NIF" | "uen" | "nric" | "NIFdeIVA" | "partitaIVA" | "organisationsnummer" | "momsregistreringsnummer" | "codiceFiscaleOrCCIAA" | "UST-ID" | "DIC" | "ICO" | "USt-IdNr" | "handelsregisternummer" | "NumeroDeTVA" | "organisasjonsnummer" | "skattenummer" | "verificationErrorMessage" | "remediationFormErrorMessage" | "youHaveUnsavedChanges" | "areYouSureToLeave" | "cancel" | "save&Leave" | "leave" | "taxIdNumber" | "companyRegistrationNumber" | "euVatNumber" | "vatNumber" | "regonKrsNumber" | "registrationNumber" | "registrationNumber__nonProfit__FR" | "registrationNumber__FR" | "registrationNumber__PR" | "charityNumber" | "firmenbuchnummer" | "firmenbuchnummerOrZVR" | "stepsX/YofForm" | "no" | "yes" | "informationCouldNotBeSubmitted" | "fieldHasUnsupportedFormats" | "updateTheInformation" | "andResubmit" | "someFieldsHaveUnsupportedFormatedUpdateInfoAndResubmit" | "trustType" | "cashManagementTrust" | "corporateUnitTrust" | "deceasedEstate" | "discretionaryInvestmentTrust" | "discretionaryServicesManagementTrust" | "discretionaryTradingTrust" | "firstHomeSaverAccountsTrust" | "fixedTrust" | "fixedUnitTrust" | "hybridTrust" | "listedPublicUnitTrust" | "otherTrust" | "pooledSuperannuationTrust" | "publicTradingTrust" | "unlistedPublicUnitTrust" | "countryOfEstablishment" | "nameOfTrustAgreement" | "typeOfTrustAgreement" | "weFoundTheFollowingIssues" | "reviewTheInformationBelowAndCorrectMistakesOr" | "uploadTheRequestedDocuments" | "uploadTheFollowingDocuments" | "uploadDocumentAndDocument" | "thenResubmit" | "isTrustOperationAddressSame" | "trustDetails" | "trustDetailsDescription" | "trustDocumentDescription" | "nameOfTrust" | "fullLegalNamesOfAnyAppointers" | "dateDeedWasSigned" | "settlerDetailsIncl" | "trusteeDetailsIncl" | "beneficiariesDetailsIncl" | "trustMembers" | "trustMembersDescription" | "trustee" | "obligatory" | "requiredIfApplicable" | "provideAtLeastOneSettlor" | "provideAtLeastOneProtector" | "provideAllBeneficiaries" | "provideAllTrustees" | "provideAllControllingPersons" | "settlorGuideDescription" | "trusteeGuideDescription" | "protectorGuideDescription" | "beneficiaryGuideDescription" | "uboThroughControlGuideDescription" | "uboThroughOwnershipGuideDescription" | "beneficiary" | "protector" | "settlor" | "ultimateBeneficialOwner" | "addTrustMember" | "personAppointmentUnderTrustInstrument" | "legalOwnerOfProperty" | "entityEstablishingTrust" | "entityOwning25OrMoreOfTrust" | "controllingPersonOfTrust" | "failedToFetchTrustDetails" | "failedToFetchTrustMemberDetails" | "failedToFetchLegalEntityDetails" | "editTrustMember" | "removeTrustMember" | "successFullyRemovedTrustMember" | "failedToRemoveTrustMember" | "editEntityDetails" | "editOwnerOfTrustMember" | "editEntityOwner" | "addEntityOwner" | "addOwnerToTrustMember" | "whatTypeOfYourMembersEntity" | "naturalPersonTitle" | "naturalPersonDescription" | "businessEntityTitle" | "businessEntityDescription" | "roleAndEntityType" | "helpUsVerifyCompany" | "providePersonalDetailsOfOwner" | "memberDetails" | "good" | "notCutOff" | "notBlurry" | "notExpired" | "noGlare" | "selectDocumentType" | "registrationDocumentSubTitle" | "documentIssuedByGovernmentAuthority" | "uploadTaxationDocument" | "containsNameOfCompany" | "documentShowsTaxIdOfCompany" | "issuedByTheTaxAuthority" | "providePageWithPhotoAndCode" | "constitutionalDocument" | "solePropDetails" | "soleProprietorDetails" | "selectAccountHolder" | "nameOfBankAccountHolder" | "myName" | "myNameDescription" | "mySoleTraderName" | "mySoleTraderNameDescription" | "theCompanyIWorkFor" | "theCompanyIWorkForDescription" | "aTrust" | "aTrustDescription" | "aPartnership" | "aPartnershipDescription" | "anAssociation" | "anAssociationDescription" | "legalNameOfSoleProprietor" | "failedToFetchSoleProp" | "uniqueIdentificationCode" | "identifikacionenNomerDDS" | "MBS" | "PDVIdBrojOIB" | "cyRegistrationNumber" | "arithmosEngraphes" | "momsregistreringsnummerOrStamregister" | "registrikood" | "kaibemaksukohustuslaseNumber" | "YTunnus" | "arvonlisaveronumeroMervardesskattenummer" | "GEMI-number" | "grTaxId" | "huRegistrationNumber" | "huTaxId" | "valueAddedTaxIdentificationNumber" | "lvRegistrationNumber" | "lvTaxId" | "ltRegistrationNumber" | "mcRegistrationNumberSoleProp" | "PVMmoketojoKodas" | "luRegistrationNumber" | "numeroDIdentificationALATaxe" | "numarOrdineRegistrulComertului" | "codulDeIdentificareFiscala" | "skRegistrationNumber" | "skTaxId" | "siRegistrationNumber" | "siTaxId" | "chRegistrationNumber" | "mcRegistrationNumber" | "liRegistrationNumber" | "Mehrwertsteuernummer" | "Xdigits" | "upToXdigits" | "XtoYdigits" | "XorYdigits" | "Xcharacters" | "XtoYcharacters" | "XdigitsAndYcharacters" | "1character5to7digits" | "1char8digits" | "1charXalphanumeric" | "2characters6or7digits" | "7or8or12characters" | "2digits1to3letters5digits" | "Cchar5digits" | "characterPlusXToYDigitsWithOptionalSpace" | "cop1to8digits" | "8digitsOptional-" | "provideAllOwners" | "ifNoOwnersSpecifyControllingPersons" | "provideAtLeastOneSignatory" | "provideOneControllingPerson" | "textToVerifyAccount" | "theBankAccountHolderMustHaveTheSameNameAsYourCompany_" | "theBankAccountHolderMustBeInYourName_" | "weDoNotYetSupportInstantVerificationForBankAccountsIn_" | "youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered" | "youCanOnlyUseABankAccountInTheCountryWhereYouLive" | "mobileApplication" | "onOnlineBankingEnvironment" | "dontHaveAccessOnlineBanking" | "confirmPayoutManually" | "noteManualTakesLonger" | "accountVerification" | "verifyWith" | "documentVerification" | "youHaveSuccessfullyProvidedTheIdDocument" | "submitIdDocumentsAgain" | "madeAMistake" | "canNotCompleteInstantVerification" | "goBackAndProvideDocumentScans" | "identityCard" | "uploadOneOfTheFollowing" | "documentIssuedWithinLastYear" | "learnMore" | "doingBusinessAsNameFiling" | "taxFiling" | "continueAsCompany" | "continueAsIndividual" | "indicatedPayoutToCompany" | "continueSigningUpAsCompany" | "indicatedPayoutToPersonalAccount" | "continueSigningUpAsIndividual" | "continue" | "noGoBack" | "continueCompany" | "continueIndividual" | "addManually" | "searchAddress" | "startTypingTheAddress" | "addresses" | "loading" | "businessIncorporationNumber" | "doNotHaveBusinessIncorporationNumber" | "socialInsuranceNumber" | "verificationMethod" | "verifyViaMobileBankAppOrBankWebsite" | "provideAccountDetailsAndUploadBankStatement" | "instantVerificationDescription" | "couldNotEstablishBankConnection" | "sorryAnErrorOccurred" | "ranIntoTechnicalError" | "failedInitializeInstantVerification" | "couldNotCompleteAccountCheck" | "tryAgainOrManualAccountDetails" | "manualVerificationDescription" | "poweredBy" | "youSuccessfullyVerifiedAccount" | "verifyBankAccountAgain" | "accountName" | "mayTakeAFewHoursOrDays" | "instant" | "isOurTrustedPartnerHelpingSpeedUpSetup" | "howDoesVerificationWithOurPartnerWorks" | "selectTheBankToReceivePayouts" | "bankAccountFormat" | "ibanFormat" | "localFormat" | "payoutInOnly_" | "payoutIn_Or_" | "loginIntoYourBankingEnvironment" | "yourBankWillConfirmYourAccountDetails" | "adyenWillOnlyGetTemporaryAccess" | "instantVerification" | "xCharactersLeft" | "goBack" | "businessRegistrationNumber" | "doNotHaveBusinessNumber" | "UEN/GST" | "IRD/GST" | "enterNameExactlyAsAppearInID" | "enterLastNameExactlyAsAppearInID" | "takePhotoOriginalDocumentWithPhone" | "instantIDVerificationDescription" | "manualIDVerificationDescription" | "uploadScanOriginalIDDocument" | "takesLonger" | "howVerificationWithOnfidoWork" | "onfidoIsOurTrustedPartner" | "usePhoneToScanId" | "onfidoWillGiveFeedbackInRealTime" | "theIdCheckWillBeAutomaticallyValidated" | "adyenKeepsDataAsLongAsLegallyRequired" | "requiresSignatory" | "requiresDecisionMakers" | "definedBeneficiary" | "definedBeneficiaryDescription" | "undefinedBeneficiary" | "undefinedBeneficiaryDescription" | "description" | "descriptionOptional" | "describeWhoIsABeneficiaryInYourTrust" | "descriptionUndefinedBeneficiary" | "undefinedBeneficiaryGuideDescription" | "identityCardBack" | "identityCardFront" | "drivinglicenseBack" | "drivinglicenseFront" | "passportPhotoPage" | "residencePermitBack" | "residencePermitFront" | "manualUpload" | "errorMessage_1_10" | "errorMessage_1_11" | "errorMessage_1_12" | "errorMessage_1_30" | "errorMessage_1_31" | "errorMessage_1_32" | "errorMessage_1_33" | "errorMessage_1_34" | "errorMessage_1_35" | "errorMessage_1_36" | "errorMessage_1_37" | "errorMessage_1_38" | "errorMessage_1_39" | "errorMessage_1_40" | "errorMessage_1_41" | "errorMessage_1_50" | "errorMessage_1_51" | "errorMessage_1_52" | "errorMessage_1_53" | "errorMessage_1_54" | "errorMessage_1_55" | "errorMessage_1_56" | "errorMessage_1_57" | "errorMessage_1_60" | "errorMessage_1_61" | "errorMessage_1_62" | "errorMessage_1_70" | "errorMessage_1_71" | "errorMessage_1_72" | "errorMessage_1_73" | "errorMessage_1_74" | "errorMessage_1_75" | "errorMessage_1_76" | "errorMessage_1_1000" | "errorMessage_1_1001" | "errorMessage_1_1002" | "errorMessage_1_1003" | "errorMessage_1_3000" | "errorMessage_1_3001" | "errorMessage_1_3002" | "errorMessage_1_3003" | "errorMessage_1_3004" | "errorMessage_1_3005" | "errorMessage_1_3006" | "errorMessage_1_3007" | "errorMessage_1_3008" | "errorMessage_1_3009" | "errorMessage_1_3010" | "errorMessage_1_3011" | "errorMessage_1_3012" | "errorMessage_1_3013" | "errorMessage_1_3014" | "errorMessage_1_3015" | "errorMessage_1_3016" | "errorMessage_1_3017" | "errorMessage_1_3018" | "errorMessage_1_3019" | "errorMessage_1_3020" | "errorMessage_1_3021" | "errorMessage_1_3022" | "errorMessage_1_3023" | "errorMessage_1_3024" | "errorMessage_1_3025" | "errorMessage_1_3026" | "errorMessage_1_3027" | "errorMessage_1_3028" | "errorMessage_1_3029" | "errorMessage_1_3030" | "errorMessage_1_3031" | "errorMessage_1_3032" | "errorMessage_1_3033" | "errorMessage_1_3034" | "errorMessage_1_3035" | "errorMessage_1_3036" | "errorMessage_1_3037" | "errorMessage_1_3038" | "errorMessage_1_3039" | "errorMessage_1_3040" | "errorMessage_1_3041" | "errorMessage_1_3042" | "errorMessage_1_3043" | "errorMessage_1_3044" | "errorMessage_1_3045" | "errorMessage_1_3046" | "errorMessage_1_3047" | "errorMessage_1_3048" | "errorMessage_1_3049" | "errorMessage_1_3050" | "errorMessage_1_3051" | "errorMessage_1_3062" | "errorMessage_1_5000" | "errorMessage_1_5001" | "errorMessage_1_5002" | "errorMessage_1_5003" | "errorMessage_1_5004" | "errorMessage_1_5005" | "errorMessage_1_5006" | "errorMessage_1_5007" | "errorMessage_1_5008" | "errorMessage_1_5009" | "errorMessage_1_5010" | "errorMessage_1_5011" | "errorMessage_1_5012" | "errorMessage_1_5013" | "errorMessage_1_5014" | "errorMessage_1_5015" | "errorMessage_1_5016" | "errorMessage_1_5017" | "errorMessage_1_5018" | "errorMessage_1_5019" | "errorMessage_1_5020" | "errorMessage_1_5021" | "errorMessage_1_5022" | "errorMessage_1_5023" | "errorMessage_1_5024" | "errorMessage_1_5025" | "errorMessage_1_5026" | "errorMessage_1_5027" | "errorMessage_1_5028" | "errorMessage_1_5029" | "errorMessage_1_5030" | "errorMessage_1_5031" | "errorMessage_1_5032" | "errorMessage_1_5033" | "errorMessage_1_5034" | "errorMessage_1_5035" | "errorMessage_1_5036" | "errorMessage_1_5037" | "errorMessage_1_5038" | "errorMessage_1_5039" | "errorMessage_1_5040" | "errorMessage_1_5041" | "errorMessage_1_5042" | "errorMessage_1_5043" | "errorMessage_1_5044" | "errorMessage_1_5045" | "errorMessage_1_5046" | "errorMessage_1_5047" | "errorMessage_1_5048" | "errorMessage_1_5049" | "errorMessage_1_5050" | "errorMessage_1_5051" | "errorMessage_1_5052" | "errorMessage_1_5053" | "errorMessage_1_6000" | "errorMessage_1_6001" | "errorMessage_1_6002" | "errorMessage_1_6003" | "errorMessage_1_6004" | "errorMessage_1_6005" | "errorMessage_1_6006" | "errorMessage_1_6007" | "errorMessage_1_6008" | "errorMessage_1_6009" | "errorMessage_1_6010" | "errorMessage_1_6011" | "errorMessage_1_6022" | "errorMessage_1_6027" | "errorMessage_1_7000" | "errorMessage_1_7001" | "errorMessage_1_7002" | "errorMessage_1_7003" | "errorMessage_1_7004" | "errorMessage_1_7005" | "errorMessage_1_7006" | "errorMessage_1_7007" | "errorMessage_1_7008" | "errorMessage_1_7009" | "errorMessage_1_7010" | "errorMessage_1_7011" | "errorMessage_1_7012" | "errorMessage_1_7013" | "errorMessage_1_7014" | "errorMessage_1_7015" | "errorMessage_1_7016" | "errorMessage_1_7017" | "errorMessage_1_7018" | "errorMessage_1_7019" | "errorMessage_1_7020" | "errorMessage_1_7021" | "errorMessage_1_7022" | "errorMessage_3_10" | "remediationMessage_1_100" | "remediationMessage_1_101" | "remediationMessage_1_102" | "remediationMessage_2_158" | "remediationMessage_1_300" | "remediationMessage_1_301" | "remediationMessage_1_302" | "remediationMessage_1_303" | "remediationMessage_1_304" | "remediationMessage_1_305" | "remediationMessage_1_306" | "remediationMessage_1_307" | "remediationMessage_1_308" | "remediationMessage_1_309" | "remediationMessage_1_316" | "remediationMessage_1_500" | "remediationMessage_1_501" | "remediationMessage_1_502" | "remediationMessage_1_503" | "remediationMessage_1_504" | "remediationMessage_1_505" | "remediationMessage_1_506" | "remediationMessage_1_507" | "remediationMessage_1_508" | "remediationMessage_1_509" | "remediationMessage_1_510" | "remediationMessage_1_511" | "remediationMessage_1_600" | "remediationMessage_1_601" | "remediationMessage_1_602" | "remediationMessage_1_700" | "remediationMessage_1_701" | "remediationMessage_1_702" | "remediationMessage_1_703" | "remediationMessage_1_704" | "remediationMessage_1_705" | "remediationMessage_3_100" | "sameNameAsLegalName" | "whereCanIFindTheseNumbersOnMyDriversLicense" | "whereToFindNumbersOnDriversLicense" | "iStillCantFindIt" | "patriotActDisclosureTitle" | "patriotActDisclosureTextParagraph1" | "patriotActDisclosureTextParagraph2" | "trusteeAsTrusteeForTrust" | "trustDeed" | "trustInstrument" | "makeSureToHaveYourTrustDeed" | "maintenanceModeMessage" | "individualTrusteeDetails" | "companyTrusteeDetails" | "trusteePersonalDetails" | "byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms" | "whichOfTheseApplyToTheSettlor" | "contributionBelowThreshold" | "professionalServiceProvider" | "deceased" | "noneOfTheAbove" | "settlorExemptionReason" | "otherInformation";
|
|
10
10
|
/**
|
|
11
11
|
* Returns the address schema of the selected country or the default address schema.
|
|
12
12
|
* @param country - The selected country
|
|
@@ -10,7 +10,14 @@ export interface EntityAssociationProps extends UniqueEntityAssociation {
|
|
|
10
10
|
infoContent?: ComponentChild;
|
|
11
11
|
}
|
|
12
12
|
export interface UniqueEntityAssociation {
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* - for associated sole props and trust LEs, this is their `legalEntityId`
|
|
15
|
+
* - decision makers are always full LEs, so this is their `legalEntityId`
|
|
16
|
+
* - for trust members that are full LEs, this is their `legalEntityId`
|
|
17
|
+
* - for undefined beneficiaries, this is the {@link UndefinedBeneficiaryInfo.reference}
|
|
18
|
+
* - for an exempt settlor, it will simply be the string `exemptSettlor` (there should only be one)
|
|
19
|
+
*/
|
|
20
|
+
reference: string;
|
|
14
21
|
jobTitle?: string;
|
|
15
22
|
types: Array<LegalEntityAssociation['type']>;
|
|
16
23
|
status: TaskStatus;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AsyncValidatorRules, ValidatorMode } from '../../utils/validation/types';
|
|
1
|
+
import type { AsyncValidatorRules, ValidatorMode } from '../../utils/validation/types';
|
|
2
2
|
import { ValidationResult } from '../../utils/validation/ValidationResult';
|
|
3
|
-
import { FormState } from './useForm/types';
|
|
3
|
+
import type { FormState } from './useForm/types';
|
|
4
4
|
export type AsyncValidationResults<FormSchema> = Partial<Record<keyof FormSchema, ValidationResult>>;
|
|
5
|
-
export type
|
|
5
|
+
export type TriggerAsyncValidation<FormSchema> = (field: keyof FormSchema, formState: FormState<FormSchema>, mode: ValidatorMode) => void;
|
|
6
6
|
export type UseAsyncValidator<FormSchema> = {
|
|
7
|
-
asyncValidate: AsyncValidate<FormSchema>;
|
|
8
7
|
asyncValidationResults: AsyncValidationResults<FormSchema>;
|
|
8
|
+
triggerAsyncValidation: TriggerAsyncValidation<FormSchema>;
|
|
9
9
|
clearAsyncValidationResults: () => void;
|
|
10
10
|
};
|
|
11
11
|
export declare const useAsyncValidator: <FormSchema>(asyncRules?: Partial<{ [field in keyof FormSchema]: import("../../utils/validation/types").AsyncValidatorRule<FormSchema[field], FormSchema>; }>) => UseAsyncValidator<FormSchema>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Reducer } from 'preact/hooks';
|
|
2
2
|
import type { FormatRules, ValidationRuleResult, ValidatorMode } from '../../../utils/validation/types';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { TriggerAsyncValidation } from '../useAsyncValidator';
|
|
4
|
+
import type { TriggerStaticValidation } from '../useStaticValidator';
|
|
5
5
|
import type { FieldValue, FormState } from './types';
|
|
6
6
|
export interface InitOptions<FormSchema> {
|
|
7
7
|
schema: (keyof FormSchema)[];
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
staticValidate: TriggerStaticValidation<FormSchema>;
|
|
9
|
+
asyncValidate: TriggerAsyncValidation<FormSchema>;
|
|
10
10
|
defaultData?: FormSchema;
|
|
11
11
|
maskedFields?: (keyof FormSchema)[];
|
|
12
12
|
fieldProblems?: Record<keyof FormSchema, boolean>;
|
|
@@ -15,7 +15,7 @@ export interface InitOptions<FormSchema> {
|
|
|
15
15
|
/**
|
|
16
16
|
* Processes default data and sets initial state
|
|
17
17
|
*/
|
|
18
|
-
export declare function init<FormSchema>({ schema, defaultData, fieldProblems, maskedFields, formatters,
|
|
18
|
+
export declare function init<FormSchema>({ schema, defaultData, fieldProblems, maskedFields, formatters, staticValidate, asyncValidate, }: InitOptions<FormSchema>): FormState<FormSchema>;
|
|
19
19
|
export type ReducerActionType = 'setData' | 'setValid' | 'setErrors' | 'setFieldProblems' | 'updateField' | 'mergeForm' | 'setSchema' | 'validateForm';
|
|
20
20
|
export interface ReducerAction<FormSchema> {
|
|
21
21
|
type: ReducerActionType;
|
|
@@ -30,9 +30,9 @@ export interface ReducerAction<FormSchema> {
|
|
|
30
30
|
fieldProblems?: Record<keyof FormSchema, boolean>;
|
|
31
31
|
}
|
|
32
32
|
export interface GetReducerOptions<FormSchema> {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
staticValidate: TriggerStaticValidation<FormSchema>;
|
|
34
|
+
asyncValidate: TriggerAsyncValidation<FormSchema>;
|
|
35
35
|
formatters?: FormatRules<FormSchema>;
|
|
36
36
|
}
|
|
37
37
|
export type GetReducerResults<FormSchema> = Reducer<FormState<FormSchema>, ReducerAction<FormSchema>>;
|
|
38
|
-
export declare function reducer<FormSchema>({
|
|
38
|
+
export declare function reducer<FormSchema>({ staticValidate, asyncValidate, formatters, }: GetReducerOptions<FormSchema>): GetReducerResults<FormSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AsyncValidatorRules, FormatRules, ValidatorRules } from '../../../utils/validation/types';
|
|
2
|
-
import { Form } from './types';
|
|
2
|
+
import type { Form } from './types';
|
|
3
3
|
export interface UseFormOptions<FormSchema> {
|
|
4
4
|
schema: (keyof FormSchema)[] | ((data: Partial<FormSchema>) => (keyof FormSchema)[]);
|
|
5
5
|
defaultData?: FormSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useStaticValidator';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FieldContext, FieldData, ValidatorRule, ValidatorRules } from '../../../utils/validation/types';
|
|
2
|
+
import { ValidationResult } from '../../../utils/validation/ValidationResult';
|
|
3
|
+
export type TriggerStaticValidation<FormSchema> = (fieldData: FieldData<FormSchema>, context?: FieldContext<FormSchema>) => ValidationResult;
|
|
4
|
+
export type UseStaticValidator<FormSchema> = {
|
|
5
|
+
triggerStaticValidation: TriggerStaticValidation<FormSchema>;
|
|
6
|
+
};
|
|
7
|
+
export declare const useStaticValidator: <FormSchema>(rules?: Partial<{ [field in keyof FormSchema]: ValidatorRule<FormSchema[field], FormSchema> | ValidatorRule<FormSchema[field], FormSchema>[]; }>) => UseStaticValidator<FormSchema>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SettlorExemptionReason } from '../../../components/TrustRoleAndEntityType/types';
|
|
1
2
|
import { DecisionMakerType } from './decision-maker-type';
|
|
2
3
|
import { LegalEntityType } from './legal-entity-type';
|
|
3
4
|
import { TrustMemberType } from './trust-member-type';
|
|
@@ -9,4 +10,5 @@ export interface LegalEntityAssociation {
|
|
|
9
10
|
name?: string;
|
|
10
11
|
entityType?: LegalEntityType;
|
|
11
12
|
associatorId?: string;
|
|
13
|
+
settlorExemptionReason?: SettlorExemptionReason[];
|
|
12
14
|
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { TaskTypes } from '../../components/TaskList/types';
|
|
2
2
|
import { SettingName } from '../Context/SettingsContext/types';
|
|
3
3
|
import { TopLevelDataSchema } from '../Context/StateContext/types';
|
|
4
|
+
import { PayoutRequiredFields } from './api/get-configuration';
|
|
4
5
|
import { CountryCode } from './country-code';
|
|
5
6
|
export interface FormRulesParams<TLDS extends TopLevelDataSchema> {
|
|
6
7
|
data: TLDS;
|
|
7
8
|
country: CountryCode;
|
|
8
9
|
taskType: TaskTypes;
|
|
9
10
|
isSettingEnabled?: (setting: SettingName) => boolean;
|
|
10
|
-
requiredFields?:
|
|
11
|
-
currency?: string;
|
|
12
|
-
bankStatementRequirement?: 'OPTIONAL' | 'REQUIRED';
|
|
13
|
-
fields?: [];
|
|
14
|
-
};
|
|
11
|
+
requiredFields?: Partial<PayoutRequiredFields>;
|
|
15
12
|
}
|
|
16
13
|
export type FormRules<TLDS extends TopLevelDataSchema> = (params: FormRulesParams<TLDS>) => {
|
|
17
14
|
[ruleName: string]: () => string | boolean | undefined;
|
|
@@ -182,6 +182,7 @@ export declare const defaultTranslation: {
|
|
|
182
182
|
validationPleaseEnterAValidStockISIN: string;
|
|
183
183
|
shareholderDocument: string;
|
|
184
184
|
role: string;
|
|
185
|
+
selectAllTheRolesThatThisDecisionMakerHolds: string;
|
|
185
186
|
selectTheApplicableRoles: string;
|
|
186
187
|
back: string;
|
|
187
188
|
next: string;
|
|
@@ -676,8 +677,6 @@ export declare const defaultTranslation: {
|
|
|
676
677
|
accountName: string;
|
|
677
678
|
mayTakeAFewHoursOrDays: string;
|
|
678
679
|
instant: string;
|
|
679
|
-
tink: string;
|
|
680
|
-
trustly: string;
|
|
681
680
|
isOurTrustedPartnerHelpingSpeedUpSetup: string;
|
|
682
681
|
howDoesVerificationWithOurPartnerWorks: string;
|
|
683
682
|
selectTheBankToReceivePayouts: string;
|
|
@@ -963,4 +962,11 @@ export declare const defaultTranslation: {
|
|
|
963
962
|
companyTrusteeDetails: string;
|
|
964
963
|
trusteePersonalDetails: string;
|
|
965
964
|
byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms: string;
|
|
965
|
+
whichOfTheseApplyToTheSettlor: string;
|
|
966
|
+
contributionBelowThreshold: string;
|
|
967
|
+
professionalServiceProvider: string;
|
|
968
|
+
deceased: string;
|
|
969
|
+
noneOfTheAbove: string;
|
|
970
|
+
settlorExemptionReason: string;
|
|
971
|
+
otherInformation: string;
|
|
966
972
|
};
|