@adyen/kyc-components 1.6.2 → 2.1.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/README.md +56 -50
- package/dist/es/adyen-kyc-components.es.js +26848 -0
- package/dist/es/package.json +3 -0
- package/dist/mockServiceWorker.js +302 -0
- package/dist/style.css +97918 -0
- package/dist/types/components/AutoResizer.d.ts +6 -0
- package/dist/types/components/BankVerification/BankVerification.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +12 -4
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +8 -8
- package/dist/types/components/BankVerification/verification/widget/iframeWidget.d.ts +12 -5
- package/dist/types/components/BaseElement.d.ts +12 -33
- package/dist/types/components/Company/component/CompanyComponent.d.ts +1 -1
- package/dist/types/components/Company/labels.d.ts +3 -2
- package/dist/types/components/Company/rules.d.ts +7 -1
- package/dist/types/components/Company/types.d.ts +17 -16
- package/dist/types/components/CompanyDetails/component/CompanyDetailsComponent.d.ts +1 -1
- package/dist/types/components/CompanyDetails/types.d.ts +6 -5
- package/dist/types/components/CompanyDetails/validate.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +5 -3
- package/dist/types/components/CompanyNameAndCountry/validate.d.ts +1 -1
- package/dist/types/components/CompanyType/component/CompanyTypeComponent.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +6 -4
- package/dist/types/components/CompanyType/validate.d.ts +1 -1
- package/dist/types/components/ConstitutionalDocument/ConstitutionalDocumentComponent.d.ts +7 -11
- package/dist/types/components/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +3 -2
- package/dist/types/components/ContactDetails/validate.d.ts +1 -1
- package/dist/types/components/DecisionMakers/component/DecisionMakersComponent.d.ts +2 -3
- package/dist/types/components/DecisionMakers/types.d.ts +4 -4
- package/dist/types/components/DocumentUpload/types.d.ts +8 -8
- package/dist/types/components/Dropins/CompanyDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/ActionBar.d.ts +1 -1
- package/dist/types/components/Dropins/DropinLayout/ActionBar/type.d.ts +2 -1
- package/dist/types/components/Dropins/FormComposer/FormComposer.d.ts +20 -21
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigation.d.ts +1 -1
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/FormNavigationItem.d.ts +3 -0
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/types.d.ts +9 -13
- package/dist/types/components/Dropins/FormComposer/types.d.ts +3 -4
- package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +39 -0
- package/dist/types/components/Dropins/IndividualDropin/components/IndividualDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/IndividualDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +2 -2
- package/dist/types/components/Dropins/PciDropin/components/PciDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/PciDropin/validate.d.ts +3 -0
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/RoleAndTypeComponent.d.ts +0 -2
- package/dist/types/components/Dropins/RoleAndTypeDropin/types.d.ts +13 -4
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/ServiceAgreementDropinComponent.d.ts +1 -1
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +22 -0
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/types.d.ts +16 -5
- package/dist/types/components/Dropins/ServiceAgreementDropinComponent/validate.d.ts +3 -0
- package/dist/types/components/Dropins/SolePropDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/TrustDropin/index.d.ts +0 -1
- package/dist/types/components/Dropins/types.d.ts +30 -19
- package/dist/types/components/EventEmitter.d.ts +17 -4
- package/dist/types/components/IdDocumentUpload/component/IdDocumentAlreadyUpload.d.ts +3 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentInstantVerificationComponent.d.ts +5 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentManualUpload.d.ts +6 -0
- package/dist/types/components/IdDocumentUpload/component/IdDocumentUploadComponent.d.ts +2 -4
- package/dist/types/components/IdDocumentUpload/types.d.ts +22 -19
- package/dist/types/components/IdVerification/component/IdVerificationComponent.d.ts +1 -2
- package/dist/types/components/IdVerification/types.d.ts +4 -16
- package/dist/types/components/IdVerificationMethod/IdVerificationMethodComponent.d.ts +3 -2
- package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/IdVerificationMethod/types.d.ts +7 -3
- package/dist/types/components/IdentityAu/additionalIdentityInfoSchema.d.ts +2 -2
- package/dist/types/components/IdentityAu/component/DriversLicense.d.ts +3 -3
- package/dist/types/components/IdentityAu/component/IdentityAuComponent.d.ts +1 -1
- package/dist/types/components/IdentityAu/component/PassportNumber.d.ts +3 -3
- package/dist/types/components/IdentityAu/component/ProofOfIdentityCard.d.ts +2 -2
- package/dist/types/components/IdentityAu/component/TypeOfIdentity.d.ts +5 -5
- package/dist/types/components/IdentityAu/types.d.ts +10 -0
- package/dist/types/components/IdentityAu/validate.d.ts +2 -2
- package/dist/types/components/IdentityNumber/component/IdentityNumberComponent.d.ts +3 -4
- package/dist/types/components/IdentityNumber/formats.d.ts +9 -6
- package/dist/types/components/IdentityNumber/type.d.ts +7 -7
- package/dist/types/components/IdentityNumber/validate.d.ts +17 -6
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/rules.d.ts +6 -4
- package/dist/types/components/Individual/types.d.ts +21 -22
- package/dist/types/components/LegalEntityTypeSwitcher/LegalEntityTypeSwitcher.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +12 -10
- package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +7 -0
- package/dist/types/components/PayoutBankStatement/types.d.ts +15 -5
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +24 -2
- package/dist/types/components/PayoutDetails/rules.d.ts +6 -5
- package/dist/types/components/PayoutDetails/types.d.ts +22 -17
- package/dist/types/components/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +2 -0
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +3 -3
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +14 -0
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +14 -11
- package/dist/types/components/PersonalDetails/types.d.ts +16 -10
- package/dist/types/components/PersonalDetails/validate.d.ts +1 -1
- package/dist/types/components/ProofOfResidency/ProofOfResidencyComponent.d.ts +2 -2
- package/dist/types/components/ProofOfResidency/types.d.ts +4 -0
- package/dist/types/components/RegistrationAddress/component/RegistrationAddressComponent.d.ts +1 -1
- package/dist/types/components/RegistrationAddress/types.d.ts +12 -10
- package/dist/types/components/RegistrationAddress/validate.d.ts +1 -1
- package/dist/types/components/Review/component/ReviewComponent.d.ts +3 -0
- package/dist/types/components/Review/types.d.ts +6 -0
- package/dist/types/components/SoleProp/labels.d.ts +5 -0
- package/dist/types/components/SoleProp/types.d.ts +16 -13
- package/dist/types/components/TaskList/component/PayoutAccountTaskListItem.d.ts +11 -0
- package/dist/types/components/TaskList/component/TaskListComponent.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListGroup.d.ts +1 -1
- package/dist/types/components/TaskList/component/TaskListItem.d.ts +3 -2
- package/dist/types/components/TaskList/types.d.ts +54 -41
- package/dist/types/components/Trust/component/TrustComponent.d.ts +2 -1
- package/dist/types/components/Trust/types.d.ts +15 -10
- package/dist/types/components/TrustMembers/component/TrustMembersComponent.d.ts +2 -3
- package/dist/types/components/TrustMembers/component/UndefinedBeneficiaries.d.ts +8 -0
- package/dist/types/components/TrustMembers/types.d.ts +9 -6
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +6 -6
- package/dist/types/components/TrustRegistrationDetails/validate.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/getAvailableRoles.d.ts +2 -0
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +9 -13
- package/dist/types/components/TrustRoleAndEntityType/validate.d.ts +1 -1
- package/dist/types/components/UIElement.d.ts +17 -32
- package/dist/types/components/identityUS/component/IdentityUSComponent.d.ts +1 -2
- package/dist/types/components/index.d.ts +24 -23
- package/dist/types/components/internal/Accordion/Accordion.d.ts +2 -2
- package/dist/types/components/internal/Accordion/types.d.ts +4 -4
- package/dist/types/components/internal/AccordionItem/AccordionItem.d.ts +2 -2
- package/dist/types/components/internal/AccountHolder/index.d.ts +1 -1
- package/dist/types/components/internal/AccountHolder/types.d.ts +5 -11
- package/dist/types/components/internal/AccountHolder/validate.d.ts +1 -1
- package/dist/types/components/internal/Address/Address.d.ts +3 -4
- package/dist/types/components/internal/Address/components/CountryField.d.ts +1 -2
- package/dist/types/components/internal/Address/components/FieldContainer.d.ts +1 -2
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +2 -1
- package/dist/types/components/internal/Address/components/StateField.d.ts +1 -1
- package/dist/types/components/internal/Address/constants.d.ts +3 -2
- package/dist/types/components/internal/Address/types.d.ts +45 -31
- package/dist/types/components/internal/Address/utils.d.ts +6 -4
- package/dist/types/components/internal/Address/validate.d.ts +1 -1
- package/dist/types/components/internal/Address/validate.formats.d.ts +1 -1
- package/dist/types/components/internal/Alert/Alert.d.ts +1 -1
- package/dist/types/components/internal/Alert/types.d.ts +1 -1
- package/dist/types/components/internal/BankAccountFormat/BankAccountFormat.d.ts +2 -0
- package/dist/types/components/internal/BankAccountFormat/types.d.ts +5 -0
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +1 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +2 -2
- package/dist/types/components/internal/BankCity/index.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +2 -2
- package/dist/types/components/internal/BankCode/index.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +2 -2
- package/dist/types/components/internal/BankName/index.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +2 -2
- package/dist/types/components/internal/BranchCode/index.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +2 -2
- package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +4 -0
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +7 -6
- package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +16 -11
- package/dist/types/components/internal/Button/Button.d.ts +3 -14
- package/dist/types/components/internal/Button/types.d.ts +6 -6
- package/dist/types/components/internal/Card/Card.d.ts +3 -2
- package/dist/types/components/internal/Card/CardGroup.d.ts +1 -1
- package/dist/types/components/internal/Card/types.d.ts +2 -2
- package/dist/types/components/internal/CollapsibleContainer/CollapsibleContainer.d.ts +2 -2
- package/dist/types/components/internal/ContextGuidance/ContextGuidance.d.ts +1 -1
- package/dist/types/components/internal/ContextGuidance/types.d.ts +3 -3
- package/dist/types/components/internal/ContextHelper/ContextHelper.d.ts +6 -0
- package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +2 -2
- package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +1 -1
- package/dist/types/components/internal/ContractViewer/types.d.ts +27 -24
- package/dist/types/components/internal/Currency/Currency.d.ts +1 -1
- package/dist/types/components/internal/Currency/index.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +6 -7
- package/dist/types/components/internal/DecisionMakerRole/DecisionMakerRoleComponent.d.ts +3 -0
- package/dist/types/components/internal/DecisionMakerRole/index.d.ts +2 -0
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +10 -0
- package/dist/types/components/internal/DecisionMakerRole/validate.d.ts +3 -0
- package/dist/types/components/internal/Disclaimer/Disclaimer.d.ts +1 -1
- package/dist/types/components/internal/EntityAssociation/EntityAssociation.d.ts +2 -1
- package/dist/types/components/internal/EntityAssociation/types.d.ts +5 -4
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceLegend.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityGuidanceStatus.d.ts +4 -0
- package/dist/types/components/internal/EntityGuidanceStatus/component/EntityStatusIcon.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/index.d.ts +3 -0
- package/dist/types/components/internal/EntityGuidanceStatus/types.d.ts +14 -0
- package/dist/types/components/internal/ErrorPanel/ErrorPanel.d.ts +1 -1
- package/dist/types/components/internal/ErrorPanel/components/ServerValidationErrors.d.ts +1 -2
- package/dist/types/components/internal/ErrorPanel/components/VerificationErrors.d.ts +1 -2
- package/dist/types/components/internal/ErrorPanel/types.d.ts +7 -13
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +7 -11
- package/dist/types/components/internal/FormFields/Dropzone/Dropzone.d.ts +1 -15
- package/dist/types/components/internal/FormFields/Dropzone/FilePicker.d.ts +14 -0
- package/dist/types/components/internal/FormFields/Dropzone/types.d.ts +4 -6
- package/dist/types/components/internal/FormFields/Dropzone/validate.d.ts +9 -3
- package/dist/types/components/internal/FormFields/Field/Field.d.ts +9 -39
- package/dist/types/components/internal/FormFields/Field/types.d.ts +21 -17
- package/dist/types/components/internal/FormFields/InputBase.d.ts +2 -2
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +5 -3
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputRadio/InputRadio.d.ts +4 -1
- package/dist/types/components/internal/FormFields/MultiSelectList/MultiSelectList.d.ts +9 -0
- package/dist/types/components/internal/FormFields/MultiSelectList/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCard.d.ts +2 -2
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioCardSelect.d.ts +22 -0
- package/dist/types/components/internal/FormFields/RadioGroupCard/RadioGroupCard.d.ts +1 -8
- package/dist/types/components/internal/FormFields/RadioGroupCard/index.d.ts +3 -1
- package/dist/types/components/internal/FormFields/RadioGroupCard/types.d.ts +23 -15
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +3 -2
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +19 -22
- package/dist/types/components/internal/FormHeader/FormHeader.d.ts +1 -1
- package/dist/types/components/internal/Heading/Heading.d.ts +6 -4
- package/dist/types/components/internal/Iban/ibanValidator.d.ts +4 -1
- package/dist/types/components/internal/Iban/types.d.ts +4 -4
- package/dist/types/components/internal/Icon/Icon.d.ts +2 -1
- package/dist/types/components/internal/LegalCompanyName/types.d.ts +5 -2
- package/dist/types/components/internal/LegalCompanyName/validate.d.ts +1 -1
- package/dist/types/components/internal/Link/Link.d.ts +1 -2
- package/dist/types/components/internal/Link/types.d.ts +3 -1
- package/dist/types/components/internal/Loader/Loader.d.ts +1 -1
- package/dist/types/components/internal/Loader/index.d.ts +1 -1
- package/dist/types/components/internal/LoaderWrapper/LoaderWrapper.d.ts +3 -2
- package/dist/types/components/internal/LoaderWrapper/constants.d.ts +1 -6
- package/dist/types/components/internal/Menu/ActionsMenu.d.ts +14 -0
- package/dist/types/components/internal/Name/types.d.ts +2 -2
- package/dist/types/components/internal/Name/validate.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/PhoneInput.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +6 -6
- package/dist/types/components/internal/PhoneInput/validate.d.ts +6 -2
- package/dist/types/components/internal/Status/Status.d.ts +1 -1
- package/dist/types/components/internal/Summary/Summary.d.ts +5 -3
- package/dist/types/components/internal/Summary/types.d.ts +6 -8
- package/dist/types/components/internal/SwiftCode/types.d.ts +2 -2
- package/dist/types/components/internal/Tag/Tag.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +4 -4
- package/dist/types/components/internal/TaxId/validate.d.ts +1 -1
- package/dist/types/components/internal/Toast/Toast.d.ts +2 -8
- package/dist/types/components/internal/Toast/index.d.ts +2 -1
- package/dist/types/components/internal/Toast/types.d.ts +6 -4
- package/dist/types/components/internal/VatNumber/types.d.ts +9 -15
- package/dist/types/components/internal/VatNumber/validate.d.ts +1 -1
- package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +2 -1
- package/dist/types/core/Context/CoreContext.d.ts +14 -13
- package/dist/types/core/Context/CoreProvider.d.ts +18 -29
- package/dist/types/core/Context/ExperimentContext/ExperimentsContext.d.ts +2 -0
- package/dist/types/core/Context/ExperimentContext/ExperimentsContextProvider.d.ts +8 -0
- package/dist/types/core/Context/ExperimentContext/types.d.ts +12 -0
- package/dist/types/core/Context/ExperimentContext/useExperimentsContext.d.ts +1 -0
- package/dist/types/core/Context/FormRouterContext/FormRouterContext.d.ts +4 -1
- package/dist/types/core/Context/FormRouterContext/FormRouterContextProvider.d.ts +1 -2
- package/dist/types/core/Context/FormRouterContext/types.d.ts +4 -2
- package/dist/types/core/Context/FormRouterContext/useFormRouterContext.d.ts +4 -2
- package/dist/types/core/Context/SettingsContext/SettingsContext.d.ts +2 -4
- package/dist/types/core/Context/SettingsContext/SettingsContextProvider.d.ts +7 -2
- package/dist/types/core/Context/SettingsContext/types.d.ts +5 -2
- package/dist/types/core/Context/SettingsContext/useSettingsContext.d.ts +1 -4
- package/dist/types/core/Context/StateContext/StateContext.d.ts +1 -1
- package/dist/types/core/Context/StateContext/StateProvider.d.ts +1 -2
- package/dist/types/core/Context/StateContext/StateReducer.d.ts +1 -1
- package/dist/types/core/Context/StateContext/hasDataChanged.d.ts +1 -0
- package/dist/types/core/Context/StateContext/types.d.ts +14 -9
- package/dist/types/core/Context/StateContext/useGlobalData.d.ts +8 -0
- package/dist/types/core/Context/StateContext/useStateContext.d.ts +1 -2
- package/dist/types/core/Context/ToastContext/ToastContext.d.ts +6 -1
- package/dist/types/core/Context/ToastContext/ToastContextProvider.d.ts +3 -3
- package/dist/types/core/Context/ToastContext/useToastContext.d.ts +2 -2
- package/dist/types/core/Context/useCoreContext.d.ts +1 -18
- package/dist/types/core/SDKValidation/index.d.ts +3 -4
- package/dist/types/core/SDKValidation/types.d.ts +17 -12
- package/dist/types/core/Services/get-account-format.d.ts +4 -0
- package/dist/types/core/Services/get-allowed-countries.d.ts +3 -0
- package/dist/types/core/Services/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/Services/get-configuration.d.ts +3 -0
- package/dist/types/core/Services/get-dataset.d.ts +2 -1
- package/dist/types/core/Services/get-images.d.ts +2 -3
- package/dist/types/core/Services/http.d.ts +4 -16
- package/dist/types/core/Services/types.d.ts +16 -0
- package/dist/types/core/Services/utils.d.ts +5 -0
- package/dist/types/core/Services/validate-phone-number.d.ts +3 -0
- package/dist/types/core/Services/verify-id-number.d.ts +3 -2
- package/dist/types/core/constants.d.ts +8 -7
- package/dist/types/core/core.d.ts +9 -32
- package/dist/types/core/error.d.ts +1 -1
- package/dist/types/core/errorMapping.d.ts +2 -1
- package/dist/types/core/hooks/useAsyncValidator.d.ts +11 -0
- package/dist/types/core/hooks/useClickAwayListener.d.ts +9 -0
- package/dist/types/core/hooks/useForm/index.d.ts +3 -0
- package/dist/types/core/hooks/useForm/reducer.d.ts +38 -0
- package/dist/types/core/hooks/useForm/types.d.ts +87 -0
- package/dist/types/core/hooks/useForm/useForm.d.ts +13 -0
- package/dist/types/core/hooks/useForm/utils.d.ts +2 -0
- package/dist/types/core/hooks/useFormComposer.d.ts +22 -0
- package/dist/types/core/hooks/useIdVerificationToken.d.ts +11 -0
- package/dist/types/core/hooks/useKycExternalApi.d.ts +23 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +25 -0
- package/dist/types/core/models/api/address-search.d.ts +28 -0
- package/dist/types/core/models/api/address.d.ts +3 -12
- package/dist/types/core/models/api/attachment.d.ts +1 -1
- package/dist/types/core/models/api/capability.d.ts +23 -2
- package/dist/types/core/models/api/contracts.d.ts +11 -32
- package/dist/types/core/models/api/data-set.d.ts +1 -1
- package/dist/types/core/models/api/document.d.ts +8 -4
- package/dist/types/core/models/api/documentDetail.d.ts +9 -0
- package/dist/types/core/models/api/entity-type.d.ts +1 -2
- package/dist/types/core/models/api/get-account-format.d.ts +5 -0
- package/dist/types/core/models/api/get-allowed-countries.d.ts +4 -0
- package/dist/types/core/models/api/get-allowed-locales.d.ts +3 -0
- package/dist/types/core/models/api/get-configuration.d.ts +62 -0
- package/dist/types/core/models/api/individual.d.ts +3 -3
- package/dist/types/core/models/api/instant-id-verification.d.ts +7 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +3 -3
- package/dist/types/core/models/api/legal-entity.d.ts +19 -14
- package/dist/types/core/models/api/organization.d.ts +6 -6
- package/dist/types/core/models/api/phone.d.ts +1 -1
- package/dist/types/core/models/api/problem.d.ts +1 -1
- package/dist/types/core/models/api/review.d.ts +3 -0
- package/dist/types/core/models/api/soleProprietor.d.ts +3 -3
- package/dist/types/core/models/api/transfer-instrument.d.ts +30 -18
- package/dist/types/core/models/api/trust-member-type.d.ts +5 -4
- package/dist/types/core/models/api/trust.d.ts +15 -9
- package/dist/types/core/models/api/verification-error.d.ts +12 -10
- package/dist/types/core/models/api/verify-id-number.d.ts +14 -0
- package/dist/types/core/models/company.d.ts +5 -4
- package/dist/types/core/models/country-code.d.ts +249 -0
- package/dist/types/core/models/country-config.d.ts +4 -5
- package/dist/types/core/models/decision-maker.d.ts +6 -2
- package/dist/types/core/models/errors/capability-problems.d.ts +1 -1
- package/dist/types/core/models/errors/entity-problems.d.ts +8 -4
- package/dist/types/core/models/errors/error-message.d.ts +2 -2
- package/dist/types/core/models/errors/form-verification-errors.d.ts +2 -2
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +7 -0
- package/dist/types/core/models/errors/remediation-action-context.d.ts +1 -1
- package/dist/types/core/models/errors/remediation.d.ts +2 -2
- package/dist/types/core/models/errors/validation-error.d.ts +5 -0
- package/dist/types/core/models/field-configurations.d.ts +3 -3
- package/dist/types/core/models/form-labels.d.ts +1 -1
- package/dist/types/core/models/form-rules.d.ts +10 -12
- package/dist/types/core/models/form.d.ts +8 -8
- package/dist/types/core/models/id-verification-status.d.ts +3 -3
- package/dist/types/core/models/identity.d.ts +2 -2
- package/dist/types/core/models/payout-account.d.ts +7 -3
- package/dist/types/core/models/scenario-fields.d.ts +5 -4
- package/dist/types/core/models/sole-prop.d.ts +1 -1
- package/dist/types/core/models/trust.d.ts +19 -1
- package/dist/types/core/process-field-configurations.d.ts +16 -31
- package/dist/types/core/types.d.ts +4 -3
- package/dist/types/core/user-events.d.ts +5 -8
- package/dist/types/core/utils.d.ts +5 -5
- package/dist/types/index.d.ts +2 -1
- package/dist/types/language/Language.d.ts +4 -4
- package/dist/types/language/config.d.ts +143 -42
- package/dist/types/language/types.d.ts +4 -3
- package/dist/types/language/utils.d.ts +6 -4
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/utils/LoadedValue.d.ts +2 -0
- package/dist/types/utils/accountHolderUtils.d.ts +5 -37
- package/dist/types/utils/api/documentUtils.d.ts +8 -7
- package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
- package/dist/types/utils/company-util.d.ts +4 -3
- package/dist/types/utils/datasetUtil.d.ts +12 -10
- package/dist/types/utils/decision-maker-roles.d.ts +11 -16
- package/dist/types/utils/dropin-utils.d.ts +18 -0
- package/dist/types/utils/entity-association-util.d.ts +17 -15
- package/dist/types/utils/entity-status-util.d.ts +9 -0
- package/dist/types/utils/entriesOf.d.ts +2 -0
- package/dist/types/utils/escapeHtml.d.ts +3 -0
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +5 -0
- package/dist/types/utils/formUtils.d.ts +12 -17
- package/dist/types/utils/formatting/stripCountryIdFormat.d.ts +2 -0
- package/dist/types/utils/genUtils.d.ts +2 -2
- package/dist/types/utils/get-name.d.ts +8 -1
- package/dist/types/utils/get-props.d.ts +3 -4
- package/dist/types/utils/get-task-status.d.ts +3 -3
- package/dist/types/utils/getFieldsWithExistingData.d.ts +8 -0
- package/dist/types/utils/getNestedPropertyKeys.d.ts +4 -4
- package/dist/types/utils/hasDuplicates.d.ts +1 -0
- package/dist/types/utils/logger.d.ts +15 -0
- package/dist/types/utils/mapping/componentApiMapping.d.ts +43 -35
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -2
- package/dist/types/utils/mapping/mapping.d.ts +14 -12
- package/dist/types/utils/payout-account-util.d.ts +6 -0
- package/dist/types/utils/payout-account.d.ts +1 -1
- package/dist/types/utils/recordWithDefault.d.ts +3 -0
- package/dist/types/utils/regex/basePatterns.d.ts +3 -0
- package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +2 -0
- package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +13 -0
- package/dist/types/utils/regex/index.d.ts +5 -0
- package/dist/types/utils/regex/types.d.ts +25 -0
- package/dist/types/utils/regex/vatNumberPatterns.d.ts +17 -0
- package/dist/types/utils/trackNavigation.d.ts +10 -0
- package/dist/types/utils/trust-util.d.ts +30 -17
- package/dist/types/utils/useForwardRef.d.ts +2 -0
- package/dist/types/utils/useStateFromProp.d.ts +9 -0
- package/dist/types/utils/validation/ValidationResult.d.ts +13 -0
- package/dist/types/utils/validation/Validator.d.ts +15 -0
- package/dist/types/utils/validation/commonValidators.d.ts +3 -0
- package/dist/types/utils/validation/types.d.ts +61 -0
- package/dist/types/utils/validatorUtils.d.ts +5 -5
- package/dist/types/utils/verification/helpers/verify-id-number-helper.d.ts +3 -0
- package/dist/types/utils/verification/verificationUtils.d.ts +5 -5
- package/package.json +132 -109
- package/dist/adyen-kyc-components.cjs.css +0 -65
- package/dist/adyen-kyc-components.cjs.js +0 -1
- package/dist/adyen-kyc-components.esm.css +0 -65
- package/dist/adyen-kyc-components.esm.js +0 -1
- package/dist/types/components/Address/Address.d.ts +0 -7
- package/dist/types/components/Address/index.d.ts +0 -1
- package/dist/types/components/Company/Company.d.ts +0 -5
- package/dist/types/components/Company/index.d.ts +0 -1
- package/dist/types/components/CompanyDetails/CompanyDetails.d.ts +0 -5
- package/dist/types/components/CompanyDetails/index.d.ts +0 -1
- package/dist/types/components/CompanyNameAndCountry/CompanyNameAndCountry.d.ts +0 -5
- package/dist/types/components/CompanyNameAndCountry/index.d.ts +0 -1
- package/dist/types/components/CompanyType/CompanyType.d.ts +0 -5
- package/dist/types/components/CompanyType/index.d.ts +0 -1
- package/dist/types/components/ContactDetails/ContactDetails.d.ts +0 -5
- package/dist/types/components/ContactDetails/index.d.ts +0 -1
- package/dist/types/components/DecisionMakers/DecisionMakers.d.ts +0 -5
- package/dist/types/components/DecisionMakers/component/DecisionMakerTypeGuidance.d.ts +0 -7
- package/dist/types/components/DecisionMakers/index.d.ts +0 -1
- package/dist/types/components/Dropins/CompanyDropin/CompanyDropin.d.ts +0 -6
- package/dist/types/components/Dropins/Dropin.d.ts +0 -25
- package/dist/types/components/Dropins/DropinComposer/DropinComposer.d.ts +0 -6
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/FormNavigationItem.d.ts +0 -4
- package/dist/types/components/Dropins/FormComposer/components/FormNavigation/components/FormNavigationItem/index.d.ts +0 -1
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/StepProgressIndicator.d.ts +0 -6
- package/dist/types/components/Dropins/FormComposer/components/StepProgressIndicator/index.d.ts +0 -1
- package/dist/types/components/Dropins/IndividualDropin/IndividualDropin.d.ts +0 -6
- package/dist/types/components/Dropins/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -6
- package/dist/types/components/Dropins/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +0 -6
- package/dist/types/components/Dropins/SolePropDropin/SolePropDropin.d.ts +0 -6
- package/dist/types/components/Dropins/TrustDropin/TrustDropin.d.ts +0 -6
- package/dist/types/components/Dropins/index.d.ts +0 -1
- package/dist/types/components/IdDocumentUpload/IdDocumentUpload.d.ts +0 -5
- package/dist/types/components/IdDocumentUpload/component/index.d.ts +0 -1
- package/dist/types/components/IdDocumentUpload/index.d.ts +0 -1
- package/dist/types/components/IdVerification/IdVerification.d.ts +0 -6
- package/dist/types/components/IdVerification/component/index.d.ts +0 -1
- package/dist/types/components/IdVerification/index.d.ts +0 -1
- package/dist/types/components/IdVerificationMethod/constants.d.ts +0 -17
- package/dist/types/components/IdentityAu/IdentityAu.d.ts +0 -16
- package/dist/types/components/IdentityAu/index.d.ts +0 -1
- package/dist/types/components/IdentityNumber/IdentityNumber.d.ts +0 -5
- package/dist/types/components/IdentityNumber/index.d.ts +0 -1
- package/dist/types/components/Individual/Individual.d.ts +0 -5
- package/dist/types/components/Individual/index.d.ts +0 -1
- package/dist/types/components/PayoutAccount/PayoutAccount.d.ts +0 -5
- package/dist/types/components/PayoutAccount/index.d.ts +0 -1
- package/dist/types/components/PayoutBankStatement/PayoutBankStatement.d.ts +0 -5
- package/dist/types/components/PayoutBankStatement/index.d.ts +0 -1
- package/dist/types/components/PayoutDetails/PayoutDetails.d.ts +0 -5
- package/dist/types/components/PayoutDetails/index.d.ts +0 -1
- package/dist/types/components/PersonalDetails/PersonalDetails.d.ts +0 -5
- package/dist/types/components/PersonalDetails/index.d.ts +0 -1
- package/dist/types/components/RegistrationAddress/RegistrationAddress.d.ts +0 -5
- package/dist/types/components/RegistrationAddress/index.d.ts +0 -1
- package/dist/types/components/SoleProp/SoleProp.d.ts +0 -5
- package/dist/types/components/SoleProp/index.d.ts +0 -1
- package/dist/types/components/TaskList/TaskList.d.ts +0 -5
- package/dist/types/components/TaskList/index.d.ts +0 -1
- package/dist/types/components/Trust/Trust.d.ts +0 -5
- package/dist/types/components/Trust/index.d.ts +0 -1
- package/dist/types/components/TrustDocumentUpload/TrustDocumentUpload.d.ts +0 -5
- package/dist/types/components/TrustDocumentUpload/component/TrustDocumentUploadComponent.d.ts +0 -6
- package/dist/types/components/TrustDocumentUpload/index.d.ts +0 -1
- package/dist/types/components/TrustDocumentUpload/types.d.ts +0 -5
- package/dist/types/components/TrustMembers/TrustMembers.d.ts +0 -5
- package/dist/types/components/TrustMembers/index.d.ts +0 -1
- package/dist/types/components/TrustRegistrationDetails/TrustRegistrationDetails.d.ts +0 -5
- package/dist/types/components/TrustRegistrationDetails/index.d.ts +0 -1
- package/dist/types/components/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +0 -5
- package/dist/types/components/TrustRoleAndEntityType/index.d.ts +0 -1
- package/dist/types/components/internal/Address/components/ReadOnlyAddress.d.ts +0 -3
- package/dist/types/components/internal/Address/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/registrationNoValidator.d.ts +0 -369
- package/dist/types/components/internal/CardLayout/CardLayout.d.ts +0 -3
- package/dist/types/components/internal/CardLayout/index.d.ts +0 -1
- package/dist/types/components/internal/Currency/validate.d.ts +0 -5
- package/dist/types/components/internal/FormFields/ConsentCheckbox/ConsentCheckbox.d.ts +0 -6
- package/dist/types/components/internal/FormFields/ConsentCheckbox/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/Fieldset/Fieldset.d.ts +0 -11
- package/dist/types/components/internal/FormFields/Fieldset/index.d.ts +0 -1
- package/dist/types/components/internal/FormFields/InputFile.d.ts +0 -1
- package/dist/types/components/internal/FormFields/index.d.ts +0 -3
- package/dist/types/components/internal/Modal/Modal.d.ts +0 -17
- package/dist/types/components/internal/PartOfTrust/PartOfTrust.d.ts +0 -3
- package/dist/types/components/internal/PartOfTrust/index.d.ts +0 -1
- package/dist/types/components/internal/PartOfTrust/types.d.ts +0 -21
- package/dist/types/components/internal/Role/Role.d.ts +0 -3
- package/dist/types/components/internal/Role/index.d.ts +0 -1
- package/dist/types/components/internal/Role/types.d.ts +0 -11
- package/dist/types/components/internal/Role/validate.d.ts +0 -3
- package/dist/types/components/internal/Summary/index.d.ts +0 -1
- package/dist/types/components/internal/VatNumber/rules.d.ts +0 -181
- package/dist/types/core/Context/StateContext/useGlobalStateSlice.d.ts +0 -5
- package/dist/types/core/Services/fetch.d.ts +0 -2
- package/dist/types/core/Services/get-configuration-data.d.ts +0 -20
- package/dist/types/core/models/api/configuration.d.ts +0 -17
- package/dist/types/core/models/api/id-verification-data.d.ts +0 -5
- package/dist/types/core/models/errors/field-errors.d.ts +0 -4
- package/dist/types/debug/progress-indicator.d.ts +0 -4
- package/dist/types/utils/Script.d.ts +0 -22
- package/dist/types/utils/Validator/Validator.d.ts +0 -34
- package/dist/types/utils/Validator/commonValidators.d.ts +0 -3
- package/dist/types/utils/Validator/defaultRules.d.ts +0 -10
- package/dist/types/utils/Validator/index.d.ts +0 -1
- package/dist/types/utils/Validator/types.d.ts +0 -53
- package/dist/types/utils/bankVerification/function.d.ts +0 -1
- package/dist/types/utils/debounce.d.ts +0 -1
- package/dist/types/utils/get-image.d.ts +0 -11
- package/dist/types/utils/regex.d.ts +0 -8
- package/dist/types/utils/typeUtils.d.ts +0 -1
- package/dist/types/utils/useForm/index.d.ts +0 -1
- package/dist/types/utils/useForm/reducer.d.ts +0 -18
- package/dist/types/utils/useForm/types.d.ts +0 -102
- package/dist/types/utils/useForm/useForm.d.ts +0 -12
- package/dist/types/utils/verification/helpers/verifyIDNumber.d.ts +0 -17
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
export declare const FALLBACK_LOCALE = "en-US";
|
|
5
5
|
export declare const defaultTranslation: {
|
|
6
6
|
close: string;
|
|
7
|
-
individual: string;
|
|
7
|
+
individual: string; /**
|
|
8
|
+
* FALLBACK_LOCALE - **MUST** match the locale string in the above import
|
|
9
|
+
*/
|
|
8
10
|
payoutAccount: string;
|
|
9
11
|
payinAccount: string;
|
|
10
12
|
firstName: string;
|
|
@@ -28,8 +30,8 @@ export declare const defaultTranslation: {
|
|
|
28
30
|
birthdate: string;
|
|
29
31
|
code: string;
|
|
30
32
|
invalidEmail: string;
|
|
33
|
+
pleaseEnterAPhoneNumberPrefixedWithCountryCode: string;
|
|
31
34
|
invalidPhoneNumber: string;
|
|
32
|
-
invalidCountryCode: string;
|
|
33
35
|
birthDate: string;
|
|
34
36
|
idNumber: string;
|
|
35
37
|
selectState: string;
|
|
@@ -39,9 +41,6 @@ export declare const defaultTranslation: {
|
|
|
39
41
|
SSNFormatUS: string;
|
|
40
42
|
SSNFormatUS9Digits: string;
|
|
41
43
|
SINFormatCA: string;
|
|
42
|
-
useSSNFormatUS: string;
|
|
43
|
-
use9DigitsSSNFormatUS: string;
|
|
44
|
-
useSSNFormatCA: string;
|
|
45
44
|
invalidFormat: string;
|
|
46
45
|
fieldIsRequired: string;
|
|
47
46
|
tooManyFiles: string;
|
|
@@ -58,13 +57,27 @@ export declare const defaultTranslation: {
|
|
|
58
57
|
socialSecurityNumber9Digits: string;
|
|
59
58
|
codiceFiscale: string;
|
|
60
59
|
personnummer: string;
|
|
61
|
-
|
|
60
|
+
dni: string;
|
|
61
|
+
peselNumber: string;
|
|
62
|
+
detCentralePersonregister: string;
|
|
63
|
+
codNumericPersonal: string;
|
|
62
64
|
cadastroDePessoasFisicas: string;
|
|
63
65
|
invalidFormatExpects: string;
|
|
64
66
|
invalidFormatForAuPassportNumber: string;
|
|
65
67
|
invalidFormatForAuDriversLicenseNumber: string;
|
|
66
68
|
invalidFormatForAuDriversLicenseCardNumber: string;
|
|
67
69
|
invalidFormatForAuProofOfIdentityCardNumber: string;
|
|
70
|
+
invalidFormatIdentityNumberBR: string;
|
|
71
|
+
invalidFormatIdentityNumberDK: string;
|
|
72
|
+
invalidFormatIdentityNumberCA: string;
|
|
73
|
+
invalidFormatIdentityNumberIT: string;
|
|
74
|
+
invalidFormatIdentityNumberPL: string;
|
|
75
|
+
invalidFormatIdentityNumberRO: string;
|
|
76
|
+
invalidFormatIdentityNumberES: string;
|
|
77
|
+
invalidFormatIdentityNumberSE: string;
|
|
78
|
+
invalidFormatIdentityNumberUS: string;
|
|
79
|
+
invalidFormatIdentityNumberUS9: string;
|
|
80
|
+
invalidFormatIdentityNumberSG: string;
|
|
68
81
|
residencyCountry: string;
|
|
69
82
|
stateOrProvince: string;
|
|
70
83
|
selectStateOrProvince: string;
|
|
@@ -116,30 +129,31 @@ export declare const defaultTranslation: {
|
|
|
116
129
|
registeredAddress: string;
|
|
117
130
|
registrationAddress: string;
|
|
118
131
|
registeredAddressHeaderDescription: string;
|
|
132
|
+
registeredAddressHeaderDescription__US: string;
|
|
119
133
|
registeredAddressTrustHeaderDescription: string;
|
|
120
134
|
operationalAddress: string;
|
|
121
135
|
provideRegistrationDetails: string;
|
|
122
136
|
companyStructure: string;
|
|
123
|
-
providePersonalDetails: string;
|
|
124
137
|
providePersonalAddress: string;
|
|
125
138
|
provideContactDetails: string;
|
|
126
139
|
correctErrorsResubmit: string;
|
|
127
140
|
registrationDocument: string;
|
|
128
141
|
taxDocument: string;
|
|
129
|
-
provideCompanyDetails: string;
|
|
130
142
|
companyDetails: string;
|
|
131
143
|
invalidRegistrationNumber: string;
|
|
132
144
|
tradingName: string;
|
|
133
145
|
chamberOfCommerceRegistrationNumber: string;
|
|
134
146
|
taxId: string;
|
|
135
147
|
exemptedFromTax: string;
|
|
136
|
-
|
|
148
|
+
doNotHaveTaxIdNumber: string;
|
|
137
149
|
doNotHaveFirmenbuchnummer: string;
|
|
138
150
|
doNotHaveOrganisationsnummer: string;
|
|
139
151
|
doNotHaveYTunnus: string;
|
|
140
152
|
doNotHaveLtRegistrationNumber: string;
|
|
141
153
|
doNotHaveLuRegistrationNumber: string;
|
|
142
154
|
doNotHaveChRegistrationNumber: string;
|
|
155
|
+
doNotHaveHandelsregisternummer: string;
|
|
156
|
+
doNotHaveRegonKrsNumber: string;
|
|
143
157
|
taxIdAbsenceReason: string;
|
|
144
158
|
vatNumberExempted: string;
|
|
145
159
|
vatNumberAbsenceReason: string;
|
|
@@ -149,10 +163,12 @@ export declare const defaultTranslation: {
|
|
|
149
163
|
validationPleaseEnterAValidRegistrationNumberWithFormat: string;
|
|
150
164
|
validationPleaseEnterAValidVatNumber: string;
|
|
151
165
|
validationPleaseEnterAValidVatNumberWithFormat: string;
|
|
152
|
-
validationPleaseEnterAValidTaxIdNumber: string;
|
|
153
166
|
validationPleaseEnterAValidTaxIdNumberWithFormat: string;
|
|
154
167
|
aValidAbnShouldBe11Digits: string;
|
|
168
|
+
aValidUenOrGstShouldBe9To10Characters: string;
|
|
169
|
+
validationPleaseEnterAValidUen: string;
|
|
155
170
|
validationPleaseEnterAValidIban: string;
|
|
171
|
+
yourIbanShouldBeginWith_: string;
|
|
156
172
|
validation8Or11Characters: string;
|
|
157
173
|
validationCharacters: string;
|
|
158
174
|
validationDigitsBetween: string;
|
|
@@ -166,20 +182,28 @@ export declare const defaultTranslation: {
|
|
|
166
182
|
validationPleaseEnterAValidStockISIN: string;
|
|
167
183
|
shareholderDocument: string;
|
|
168
184
|
role: string;
|
|
169
|
-
|
|
185
|
+
selectTheApplicableRoles: string;
|
|
170
186
|
back: string;
|
|
171
187
|
next: string;
|
|
172
188
|
submit: string;
|
|
189
|
+
submitSuccessful: string;
|
|
190
|
+
submitFailed: string;
|
|
191
|
+
submitReviewOfYourData: string;
|
|
192
|
+
completeReview: string;
|
|
193
|
+
submitReview: string;
|
|
194
|
+
pleaseNote: string;
|
|
195
|
+
byClickingSubmitReview: string;
|
|
173
196
|
nameAndCountry: string;
|
|
174
197
|
companyCountry: string;
|
|
175
198
|
legalCompanyName: string;
|
|
176
199
|
legalCompanyNameHelper: string;
|
|
200
|
+
legalCompanyNameHelper__AU: string;
|
|
201
|
+
legalCompanyNameHelper__US: string;
|
|
177
202
|
accountDetailsDescription: string;
|
|
178
203
|
provideDetails: string;
|
|
179
204
|
payoutAccountsDescription: string;
|
|
205
|
+
payoutAccountsDescriptionReview: string;
|
|
180
206
|
payinAccountsDescription: string;
|
|
181
|
-
providePayoutDetails: string;
|
|
182
|
-
providePayinDetails: string;
|
|
183
207
|
addExtraPayoutAccount: string;
|
|
184
208
|
addExtraPayinAccount: string;
|
|
185
209
|
payoutDetails: string;
|
|
@@ -187,6 +211,8 @@ export declare const defaultTranslation: {
|
|
|
187
211
|
addPayoutAccount: string;
|
|
188
212
|
addPayinAccount: string;
|
|
189
213
|
failedToFetchPayoutAccount: string;
|
|
214
|
+
failedToDeletePayoutAccount: string;
|
|
215
|
+
transferInstrumentDeleted: string;
|
|
190
216
|
toCompleteProcessReviewAndSignOfficialDocumentation: string;
|
|
191
217
|
sign: string;
|
|
192
218
|
signer: string;
|
|
@@ -201,6 +227,13 @@ export declare const defaultTranslation: {
|
|
|
201
227
|
failedToGetPciTemplateInSelectedLanguageFallbackToEn: string;
|
|
202
228
|
failedToDownloadPci: string;
|
|
203
229
|
signServiceAgreement: string;
|
|
230
|
+
signedDocuments: string;
|
|
231
|
+
paymentProcessingTerms: string;
|
|
232
|
+
accountHolderTerms: string;
|
|
233
|
+
capitalUserTerms: string;
|
|
234
|
+
businessAccountTerms: string;
|
|
235
|
+
cardUserTerms: string;
|
|
236
|
+
franchiseesTAndCs: string;
|
|
204
237
|
pciDssQuestionnaire: string;
|
|
205
238
|
serviceAgreementSignedSuccessfully: string;
|
|
206
239
|
serviceAgreementSignFailed: string;
|
|
@@ -208,7 +241,8 @@ export declare const defaultTranslation: {
|
|
|
208
241
|
failedToGetServiceAgreement: string;
|
|
209
242
|
failedToGetServiceAgreementInSelectedLanguageFallbackToEn: string;
|
|
210
243
|
iHaveReadAndIAcceptTheseTerms: string;
|
|
211
|
-
|
|
244
|
+
verified: string;
|
|
245
|
+
signed: string;
|
|
212
246
|
invalidRole: string;
|
|
213
247
|
unableToVerifyTheIdNumber: string;
|
|
214
248
|
download: string;
|
|
@@ -216,13 +250,16 @@ export declare const defaultTranslation: {
|
|
|
216
250
|
accountHolderDescriptionCompany: string;
|
|
217
251
|
accountHolderDescriptionIndividual: string;
|
|
218
252
|
accountHolderDescriptionSoleProp: string;
|
|
253
|
+
bankAccountToHaveSameNameAsTrust: string;
|
|
219
254
|
bankCountry: string;
|
|
220
255
|
bankAccountCountry: string;
|
|
256
|
+
currency: string;
|
|
221
257
|
currencyCode: string;
|
|
222
258
|
currencyPlaceholder: string;
|
|
223
259
|
bankAccountNumber: string;
|
|
224
260
|
iban: string;
|
|
225
261
|
swiftCode: string;
|
|
262
|
+
bic: string;
|
|
226
263
|
bsbNumber: string;
|
|
227
264
|
branchCode: string;
|
|
228
265
|
transitNumber: string;
|
|
@@ -245,13 +282,12 @@ export declare const defaultTranslation: {
|
|
|
245
282
|
signatoryDescription: string;
|
|
246
283
|
director: string;
|
|
247
284
|
directorDescription: string;
|
|
248
|
-
|
|
249
|
-
provideAllDirectorsYouShouldHaveAtLeastThree: string;
|
|
250
|
-
provideAllDirectorsYouShouldHaveAtLeast3AndAtMost15: string;
|
|
285
|
+
provideAllDirectors: string;
|
|
251
286
|
addDecisionMaker: string;
|
|
252
|
-
|
|
287
|
+
decisionMakers: string;
|
|
253
288
|
goToOverview: string;
|
|
254
289
|
saveAndGoToOverview: string;
|
|
290
|
+
pleaseEnsureTheFollowing: string;
|
|
255
291
|
edit: string;
|
|
256
292
|
remove: string;
|
|
257
293
|
toggleAssociationMenu: string;
|
|
@@ -277,13 +313,14 @@ export declare const defaultTranslation: {
|
|
|
277
313
|
mortgageStatement: string;
|
|
278
314
|
certificateOfVoterRegistration: string;
|
|
279
315
|
businessAccountDetailsDescription: string;
|
|
316
|
+
businessAccountDetailsDescriptionReview: string;
|
|
280
317
|
documentAddressedToName: string;
|
|
281
318
|
showAddressStateCountry: string;
|
|
282
319
|
dateOnDocumentNoOlderThanXMonths: string;
|
|
283
320
|
fullDocumentVisibleWithReadableText: string;
|
|
284
321
|
documentCannotBeDamaged: string;
|
|
285
322
|
verify: string;
|
|
286
|
-
|
|
323
|
+
add: string;
|
|
287
324
|
idUploadDocumentSubtitle: string;
|
|
288
325
|
documentNotExpiredOrDamaged: string;
|
|
289
326
|
weAccept: string;
|
|
@@ -296,6 +333,7 @@ export declare const defaultTranslation: {
|
|
|
296
333
|
failedToFetchRelevantDocuments: string;
|
|
297
334
|
failedToFetchRelevantAccounts: string;
|
|
298
335
|
processing: string;
|
|
336
|
+
inReview: string;
|
|
299
337
|
unsuccessful: string;
|
|
300
338
|
invalidDateOfBirth: string;
|
|
301
339
|
successfullyUpdatedDetails: string;
|
|
@@ -306,12 +344,15 @@ export declare const defaultTranslation: {
|
|
|
306
344
|
bankStatement: string;
|
|
307
345
|
bankStatementOptional: string;
|
|
308
346
|
bankAccountVerification: string;
|
|
347
|
+
bankStatementDocument: string;
|
|
309
348
|
bankStatementDocumentTypeLabel: string;
|
|
310
349
|
requirements: string;
|
|
311
350
|
accountHolderNameMatchesWithBusinessOrTradingName: string;
|
|
312
351
|
accountNumberOrIbanVisible: string;
|
|
352
|
+
accountNumberVisible: string;
|
|
353
|
+
routingNumberVisible: string;
|
|
313
354
|
showsCountryOfBankAccount: string;
|
|
314
|
-
|
|
355
|
+
hasToBeOfficialDocumentFromBank: string;
|
|
315
356
|
ifDocumentMoreThan12months: string;
|
|
316
357
|
whyDoINeedToFillInThisInformation: string;
|
|
317
358
|
reasonForFillingCompanyRegistrationDetails: string;
|
|
@@ -327,7 +368,6 @@ export declare const defaultTranslation: {
|
|
|
327
368
|
directorGuideDescription: string;
|
|
328
369
|
someoneAppointedToManageACompanysBusinessAndAffairs: string;
|
|
329
370
|
whatIfDocumentIsMoreThan12MonthsOld: string;
|
|
330
|
-
description: string;
|
|
331
371
|
descriptionHelper: string;
|
|
332
372
|
depositTicket: string;
|
|
333
373
|
screenshotOfOnlineBankingEnviroment: string;
|
|
@@ -365,6 +405,8 @@ export declare const defaultTranslation: {
|
|
|
365
405
|
NIPC: string;
|
|
366
406
|
numerodeIVA: string;
|
|
367
407
|
NIF: string;
|
|
408
|
+
uen: string;
|
|
409
|
+
nric: string;
|
|
368
410
|
NIFdeIVA: string;
|
|
369
411
|
partitaIVA: string;
|
|
370
412
|
organisationsnummer: string;
|
|
@@ -385,23 +427,21 @@ export declare const defaultTranslation: {
|
|
|
385
427
|
cancel: string;
|
|
386
428
|
"save&Leave": string;
|
|
387
429
|
leave: string;
|
|
388
|
-
|
|
430
|
+
taxIdNumber: string;
|
|
389
431
|
companyRegistrationNumber: string;
|
|
390
432
|
euVatNumber: string;
|
|
391
433
|
vatNumber: string;
|
|
392
434
|
regonKrsNumber: string;
|
|
393
435
|
registrationNumber: string;
|
|
436
|
+
registrationNumber__nonProfit__FR: string;
|
|
437
|
+
registrationNumber__FR: string;
|
|
438
|
+
registrationNumber__PR: string;
|
|
394
439
|
charityNumber: string;
|
|
395
|
-
SIRETOrSIREN: string;
|
|
396
|
-
"RNA/SIREN/SIRETNumber": string;
|
|
397
440
|
firmenbuchnummer: string;
|
|
398
441
|
firmenbuchnummerOrZVR: string;
|
|
399
442
|
"stepsX/YofForm": string;
|
|
400
|
-
areYouPartOfTrust: string;
|
|
401
|
-
isBusinessPartOfTrust: string;
|
|
402
443
|
no: string;
|
|
403
444
|
yes: string;
|
|
404
|
-
isPartOfTrust: string;
|
|
405
445
|
informationCouldNotBeSubmitted: string;
|
|
406
446
|
fieldHasUnsupportedFormats: string;
|
|
407
447
|
updateTheInformation: string;
|
|
@@ -435,9 +475,6 @@ export declare const defaultTranslation: {
|
|
|
435
475
|
isTrustOperationAddressSame: string;
|
|
436
476
|
trustDetails: string;
|
|
437
477
|
trustDetailsDescription: string;
|
|
438
|
-
provideTrustDetails: string;
|
|
439
|
-
addTrustMembers: string;
|
|
440
|
-
trustDocument: string;
|
|
441
478
|
trustDocumentDescription: string;
|
|
442
479
|
nameOfTrust: string;
|
|
443
480
|
fullLegalNamesOfAnyAppointers: string;
|
|
@@ -448,16 +485,29 @@ export declare const defaultTranslation: {
|
|
|
448
485
|
trustMembers: string;
|
|
449
486
|
trustMembersDescription: string;
|
|
450
487
|
trustee: string;
|
|
488
|
+
obligatory: string;
|
|
489
|
+
requiredIfApplicable: string;
|
|
490
|
+
provideAtLeastOneSettlor: string;
|
|
491
|
+
provideAtLeastOneProtector: string;
|
|
492
|
+
provideAllBeneficiaries: string;
|
|
493
|
+
provideAllTrustees: string;
|
|
494
|
+
provideAllControllingPersons: string;
|
|
495
|
+
settlorGuideDescription: string;
|
|
496
|
+
trusteeGuideDescription: string;
|
|
497
|
+
protectorGuideDescription: string;
|
|
498
|
+
beneficiaryGuideDescription: string;
|
|
499
|
+
uboThroughControlGuideDescription: string;
|
|
500
|
+
uboThroughOwnershipGuideDescription: string;
|
|
451
501
|
beneficiary: string;
|
|
452
502
|
protector: string;
|
|
453
503
|
settlor: string;
|
|
454
504
|
ultimateBeneficialOwner: string;
|
|
455
505
|
addTrustMember: string;
|
|
456
|
-
beneficialOwnersOfTrustProperty: string;
|
|
457
506
|
personAppointmentUnderTrustInstrument: string;
|
|
458
507
|
legalOwnerOfProperty: string;
|
|
459
508
|
entityEstablishingTrust: string;
|
|
460
509
|
entityOwning25OrMoreOfTrust: string;
|
|
510
|
+
controllingPersonOfTrust: string;
|
|
461
511
|
failedToFetchTrustDetails: string;
|
|
462
512
|
failedToFetchTrustMemberDetails: string;
|
|
463
513
|
failedToFetchLegalEntityDetails: string;
|
|
@@ -494,7 +544,7 @@ export declare const defaultTranslation: {
|
|
|
494
544
|
providePageWithPhotoAndCode: string;
|
|
495
545
|
constitutionalDocument: string;
|
|
496
546
|
solePropDetails: string;
|
|
497
|
-
|
|
547
|
+
soleProprietorDetails: string;
|
|
498
548
|
selectAccountHolder: string;
|
|
499
549
|
nameOfBankAccountHolder: string;
|
|
500
550
|
myName: string;
|
|
@@ -531,6 +581,7 @@ export declare const defaultTranslation: {
|
|
|
531
581
|
lvRegistrationNumber: string;
|
|
532
582
|
lvTaxId: string;
|
|
533
583
|
ltRegistrationNumber: string;
|
|
584
|
+
mcRegistrationNumberSoleProp: string;
|
|
534
585
|
PVMmoketojoKodas: string;
|
|
535
586
|
luRegistrationNumber: string;
|
|
536
587
|
numeroDIdentificationALATaxe: string;
|
|
@@ -541,26 +592,36 @@ export declare const defaultTranslation: {
|
|
|
541
592
|
siRegistrationNumber: string;
|
|
542
593
|
siTaxId: string;
|
|
543
594
|
chRegistrationNumber: string;
|
|
595
|
+
mcRegistrationNumber: string;
|
|
596
|
+
liRegistrationNumber: string;
|
|
544
597
|
Mehrwertsteuernummer: string;
|
|
545
598
|
Xdigits: string;
|
|
599
|
+
upToXdigits: string;
|
|
546
600
|
XtoYdigits: string;
|
|
547
601
|
XorYdigits: string;
|
|
548
602
|
Xcharacters: string;
|
|
549
|
-
|
|
603
|
+
XtoYcharacters: string;
|
|
604
|
+
XdigitsAndYcharacters: string;
|
|
550
605
|
"1character5to7digits": string;
|
|
551
|
-
Wchar9or14digits: string;
|
|
552
606
|
"1char8digits": string;
|
|
553
|
-
"
|
|
554
|
-
"
|
|
607
|
+
"1charXalphanumeric": string;
|
|
608
|
+
"2characters6or7digits": string;
|
|
609
|
+
"7or8or12characters": string;
|
|
610
|
+
"2digits1to3letters5digits": string;
|
|
555
611
|
Cchar5digits: string;
|
|
612
|
+
characterPlusXToYDigitsWithOptionalSpace: string;
|
|
556
613
|
cop1to8digits: string;
|
|
557
|
-
selectAccountHolderDescription: string;
|
|
558
614
|
"8digitsOptional-": string;
|
|
559
615
|
provideAllOwners: string;
|
|
560
616
|
ifNoOwnersSpecifyControllingPersons: string;
|
|
561
617
|
provideAtLeastOneSignatory: string;
|
|
562
618
|
provideOneControllingPerson: string;
|
|
563
619
|
textToVerifyAccount: string;
|
|
620
|
+
theBankAccountHolderMustHaveTheSameNameAsYourCompany_: string;
|
|
621
|
+
theBankAccountHolderMustBeInYourName_: string;
|
|
622
|
+
weDoNotYetSupportInstantVerificationForBankAccountsIn_: string;
|
|
623
|
+
youCanOnlyUseABankAccountInTheCountryWhereYourCompanyIsRegistered: string;
|
|
624
|
+
youCanOnlyUseABankAccountInTheCountryWhereYouLive: string;
|
|
564
625
|
mobileApplication: string;
|
|
565
626
|
onOnlineBankingEnvironment: string;
|
|
566
627
|
dontHaveAccessOnlineBanking: string;
|
|
@@ -602,6 +663,12 @@ export declare const defaultTranslation: {
|
|
|
602
663
|
verifyViaMobileBankAppOrBankWebsite: string;
|
|
603
664
|
provideAccountDetailsAndUploadBankStatement: string;
|
|
604
665
|
instantVerificationDescription: string;
|
|
666
|
+
couldNotEstablishBankConnection: string;
|
|
667
|
+
sorryAnErrorOccurred: string;
|
|
668
|
+
ranIntoTechnicalError: string;
|
|
669
|
+
failedInitializeInstantVerification: string;
|
|
670
|
+
couldNotCompleteAccountCheck: string;
|
|
671
|
+
tryAgainOrManualAccountDetails: string;
|
|
605
672
|
manualVerificationDescription: string;
|
|
606
673
|
poweredBy: string;
|
|
607
674
|
youSuccessfullyVerifiedAccount: string;
|
|
@@ -614,17 +681,18 @@ export declare const defaultTranslation: {
|
|
|
614
681
|
isOurTrustedPartnerHelpingSpeedUpSetup: string;
|
|
615
682
|
howDoesVerificationWithOurPartnerWorks: string;
|
|
616
683
|
selectTheBankToReceivePayouts: string;
|
|
684
|
+
bankAccountFormat: string;
|
|
685
|
+
ibanFormat: string;
|
|
686
|
+
localFormat: string;
|
|
687
|
+
payoutInOnly_: string;
|
|
688
|
+
payoutIn_Or_: string;
|
|
617
689
|
loginIntoYourBankingEnvironment: string;
|
|
618
690
|
yourBankWillConfirmYourAccountDetails: string;
|
|
619
691
|
adyenWillOnlyGetTemporaryAccess: string;
|
|
620
692
|
instantVerification: string;
|
|
621
693
|
xCharactersLeft: string;
|
|
622
694
|
goBack: string;
|
|
623
|
-
doNotHaveABN: string;
|
|
624
|
-
"doNotHaveUEN/GST": string;
|
|
625
|
-
"doNotHaveIRD/GST": string;
|
|
626
695
|
businessRegistrationNumber: string;
|
|
627
|
-
doNotHaveBusinessRegistrationNumber: string;
|
|
628
696
|
doNotHaveBusinessNumber: string;
|
|
629
697
|
"UEN/GST": string;
|
|
630
698
|
"IRD/GST": string;
|
|
@@ -635,12 +703,31 @@ export declare const defaultTranslation: {
|
|
|
635
703
|
manualIDVerificationDescription: string;
|
|
636
704
|
uploadScanOriginalIDDocument: string;
|
|
637
705
|
takesLonger: string;
|
|
638
|
-
|
|
706
|
+
howVerificationWithOnfidoWork: string;
|
|
639
707
|
onfidoIsOurTrustedPartner: string;
|
|
640
708
|
usePhoneToScanId: string;
|
|
641
709
|
onfidoWillGiveFeedbackInRealTime: string;
|
|
642
710
|
theIdCheckWillBeAutomaticallyValidated: string;
|
|
643
711
|
adyenKeepsDataAsLongAsLegallyRequired: string;
|
|
712
|
+
requiresSignatory: string;
|
|
713
|
+
requiresDecisionMakers: string;
|
|
714
|
+
definedBeneficiary: string;
|
|
715
|
+
definedBeneficiaryDescription: string;
|
|
716
|
+
undefinedBeneficiary: string;
|
|
717
|
+
undefinedBeneficiaryDescription: string;
|
|
718
|
+
description: string;
|
|
719
|
+
descriptionOptional: string;
|
|
720
|
+
describeWhoIsABeneficiaryInYourTrust: string;
|
|
721
|
+
descriptionUndefinedBeneficiary: string;
|
|
722
|
+
undefinedBeneficiaryGuideDescription: string;
|
|
723
|
+
identityCardBack: string;
|
|
724
|
+
identityCardFront: string;
|
|
725
|
+
drivinglicenseBack: string;
|
|
726
|
+
drivinglicenseFront: string;
|
|
727
|
+
passportPhotoPage: string;
|
|
728
|
+
residencePermitBack: string;
|
|
729
|
+
residencePermitFront: string;
|
|
730
|
+
manualUpload: string;
|
|
644
731
|
errorMessage_1_10: string;
|
|
645
732
|
errorMessage_1_11: string;
|
|
646
733
|
errorMessage_1_12: string;
|
|
@@ -797,6 +884,8 @@ export declare const defaultTranslation: {
|
|
|
797
884
|
errorMessage_1_6009: string;
|
|
798
885
|
errorMessage_1_6010: string;
|
|
799
886
|
errorMessage_1_6011: string;
|
|
887
|
+
errorMessage_1_6022: string;
|
|
888
|
+
errorMessage_1_6027: string;
|
|
800
889
|
errorMessage_1_7000: string;
|
|
801
890
|
errorMessage_1_7001: string;
|
|
802
891
|
errorMessage_1_7002: string;
|
|
@@ -820,9 +909,11 @@ export declare const defaultTranslation: {
|
|
|
820
909
|
errorMessage_1_7020: string;
|
|
821
910
|
errorMessage_1_7021: string;
|
|
822
911
|
errorMessage_1_7022: string;
|
|
912
|
+
errorMessage_3_10: string;
|
|
823
913
|
remediationMessage_1_100: string;
|
|
824
914
|
remediationMessage_1_101: string;
|
|
825
915
|
remediationMessage_1_102: string;
|
|
916
|
+
remediationMessage_2_158: string;
|
|
826
917
|
remediationMessage_1_300: string;
|
|
827
918
|
remediationMessage_1_301: string;
|
|
828
919
|
remediationMessage_1_302: string;
|
|
@@ -855,6 +946,7 @@ export declare const defaultTranslation: {
|
|
|
855
946
|
remediationMessage_1_703: string;
|
|
856
947
|
remediationMessage_1_704: string;
|
|
857
948
|
remediationMessage_1_705: string;
|
|
949
|
+
remediationMessage_3_100: string;
|
|
858
950
|
sameNameAsLegalName: string;
|
|
859
951
|
whereCanIFindTheseNumbersOnMyDriversLicense: string;
|
|
860
952
|
whereToFindNumbersOnDriversLicense: string;
|
|
@@ -862,4 +954,13 @@ export declare const defaultTranslation: {
|
|
|
862
954
|
patriotActDisclosureTitle: string;
|
|
863
955
|
patriotActDisclosureTextParagraph1: string;
|
|
864
956
|
patriotActDisclosureTextParagraph2: string;
|
|
957
|
+
trusteeAsTrusteeForTrust: string;
|
|
958
|
+
trustDeed: string;
|
|
959
|
+
trustInstrument: string;
|
|
960
|
+
makeSureToHaveYourTrustDeed: string;
|
|
961
|
+
maintenanceModeMessage: string;
|
|
962
|
+
individualTrusteeDetails: string;
|
|
963
|
+
companyTrusteeDetails: string;
|
|
964
|
+
trusteePersonalDetails: string;
|
|
965
|
+
byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms: string;
|
|
865
966
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare type Locales = string[];
|
|
2
1
|
import type translations from './locales/en-US.json';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type TranslationKey = keyof typeof translations;
|
|
3
|
+
export type TranslationItem = string;
|
|
4
|
+
export type Translations = Record<TranslationKey, TranslationItem>;
|
|
5
|
+
export type CustomTranslations = {
|
|
5
6
|
[key: string]: {
|
|
6
7
|
[message: string]: string;
|
|
7
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CountryCode } from '../core/models/country-code';
|
|
1
2
|
import { CustomTranslations } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* Matches a string with one of the locales
|
|
@@ -31,9 +32,10 @@ export declare function parseLocale(locale: string, supportedLocales?: string[])
|
|
|
31
32
|
* @param customTranslations -
|
|
32
33
|
* @param supportedLocales -
|
|
33
34
|
*/
|
|
34
|
-
export declare function formatCustomTranslations(
|
|
35
|
+
export declare function formatCustomTranslations(supportedLocales: string[], customTranslations?: object): CustomTranslations;
|
|
36
|
+
export declare const replaceTranslationValues: (translation: string, values: Record<string, string | number>) => string;
|
|
35
37
|
export interface GetTranslationOptions {
|
|
36
|
-
|
|
38
|
+
localizeFor?: CountryCode;
|
|
37
39
|
values?: Record<string, string | number>;
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
@@ -41,14 +43,14 @@ export interface GetTranslationOptions {
|
|
|
41
43
|
* @param locale - The locale the user wants to use
|
|
42
44
|
* @param customTranslations -
|
|
43
45
|
*/
|
|
44
|
-
export declare const getTranslations: ({ locale, loadingContext, clientKey, customTranslations }: {
|
|
46
|
+
export declare const getTranslations: ({ locale, loadingContext, clientKey, customTranslations, }: {
|
|
45
47
|
locale: any;
|
|
46
48
|
loadingContext: any;
|
|
47
49
|
clientKey: any;
|
|
48
50
|
customTranslations?: {};
|
|
49
51
|
}) => Promise<any>;
|
|
50
52
|
/**
|
|
51
|
-
* Returns
|
|
53
|
+
* Returns a LanguageCode from locale
|
|
52
54
|
* @param locale - The locale the user wants to use
|
|
53
55
|
*
|
|
54
56
|
* @example for getLanguageCode('en-US')
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ADDRESS_SCHEMA } from '../components/internal/Address/constants';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type AddressField = (typeof ADDRESS_SCHEMA)[number];
|
|
3
|
+
export type AddressSchema = {
|
|
4
4
|
[key in AddressField]?: string;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Visibility options for a fieldset
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type FieldsetVisibility = 'editable' | 'hidden' | 'readOnly';
|
|
@@ -1,39 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const accountHolderTypes: readonly [{
|
|
4
|
-
readonly id: AccountHolderTypes.MY_NAME;
|
|
5
|
-
readonly name: "myName";
|
|
6
|
-
readonly description: "myNameDescription";
|
|
7
|
-
readonly type: LegalEntityType.INDIVIDUAL;
|
|
8
|
-
}, {
|
|
9
|
-
readonly id: AccountHolderTypes.MY_SOLE_TRADER_NAME;
|
|
10
|
-
readonly name: "mySoleTraderName";
|
|
11
|
-
readonly description: "mySoleTraderNameDescription";
|
|
12
|
-
readonly type: LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
13
|
-
}, {
|
|
14
|
-
readonly id: AccountHolderTypes.THE_COMPANY_I_WORK_FOR;
|
|
15
|
-
readonly name: "theCompanyIWorkFor";
|
|
16
|
-
readonly description: "theCompanyIWorkForDescription";
|
|
17
|
-
readonly type: LegalEntityType.ORGANIZATION;
|
|
18
|
-
}];
|
|
19
|
-
export declare const accountHolderTypesForOrganization: ({
|
|
20
|
-
readonly id: AccountHolderTypes.MY_NAME;
|
|
21
|
-
readonly name: "myName";
|
|
22
|
-
readonly description: "myNameDescription";
|
|
23
|
-
readonly type: LegalEntityType.INDIVIDUAL;
|
|
24
|
-
} | {
|
|
25
|
-
readonly id: AccountHolderTypes.MY_SOLE_TRADER_NAME;
|
|
26
|
-
readonly name: "mySoleTraderName";
|
|
27
|
-
readonly description: "mySoleTraderNameDescription";
|
|
28
|
-
readonly type: LegalEntityType.SOLE_PROPRIETORSHIP;
|
|
29
|
-
} | {
|
|
30
|
-
readonly id: AccountHolderTypes.THE_COMPANY_I_WORK_FOR;
|
|
31
|
-
readonly name: "theCompanyIWorkFor";
|
|
32
|
-
readonly description: "theCompanyIWorkForDescription";
|
|
33
|
-
readonly type: LegalEntityType.ORGANIZATION;
|
|
34
|
-
})[];
|
|
1
|
+
import { AccountHolderOption } from '../components/internal/AccountHolder/types';
|
|
2
|
+
import { LegalEntity } from '../core/models/api/legal-entity';
|
|
35
3
|
/**
|
|
36
|
-
**
|
|
4
|
+
** Account holder option is not stored in backend as it does not effect any check evaluations.
|
|
37
5
|
** The value is computed in the front end based on the associations and current flow of the legalEntity
|
|
38
|
-
|
|
39
|
-
export declare const getDefaultAccountHolderType: (legalEntityResponse:
|
|
6
|
+
* */
|
|
7
|
+
export declare const getDefaultAccountHolderType: (legalEntityResponse: LegalEntity | undefined, isTypeChanging?: boolean) => AccountHolderOption | undefined;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import Document,
|
|
2
|
-
export
|
|
3
|
-
fetchDocuments(documentIds:
|
|
1
|
+
import { Document, DocumentType } from '../../core/models/api/document';
|
|
2
|
+
export type DocumentApiUtils = {
|
|
3
|
+
fetchDocuments(documentIds: string[], entityId: string): Promise<Document[]>;
|
|
4
4
|
fetchDocument(documentId: string, entityId: string): Promise<Document>;
|
|
5
|
-
uploadDocuments(documents:
|
|
5
|
+
uploadDocuments(documents: Document[], entityId: string): Promise<Document[]>;
|
|
6
6
|
};
|
|
7
7
|
declare const documentApiUtils: (createDocumentHandler: any, getDocumentHandler: any, updateDocumentHandler: any) => DocumentApiUtils;
|
|
8
|
-
export declare const getDocument: (entityId: string, documentType: DocumentType) => Document;
|
|
9
|
-
export declare const getDocuments: (entityId: string) =>
|
|
8
|
+
export declare const getDocument: (entityId: string | undefined, documentType: DocumentType) => Document;
|
|
9
|
+
export declare const getDocuments: (entityId: string) => Document[];
|
|
10
10
|
export declare const getIdDocument: (entityId: string) => Document;
|
|
11
|
-
export declare const createDocumentRequest: ({ entityId, entityType, documentType, page1, page2, description }: {
|
|
11
|
+
export declare const createDocumentRequest: ({ entityId, entityType, documentType, page1, page2, description, existingDocument, }: {
|
|
12
12
|
entityId: any;
|
|
13
13
|
entityType: any;
|
|
14
14
|
documentType: any;
|
|
15
15
|
page1: any;
|
|
16
16
|
page2?: any;
|
|
17
17
|
description?: any;
|
|
18
|
+
existingDocument?: any;
|
|
18
19
|
}) => Promise<Document>;
|
|
19
20
|
export declare const getFileExtention: (fileName: string) => string;
|
|
20
21
|
export default documentApiUtils;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
1
2
|
import { CapabilityProblems } from '../../core/models/errors/capability-problems';
|
|
2
|
-
import
|
|
3
|
-
import RemediationActionContext from '../../core/models/errors/remediation-action-context';
|
|
3
|
+
import { EntityProblems } from '../../core/models/errors/entity-problems';
|
|
4
4
|
import { Remediation } from '../../core/models/errors/remediation';
|
|
5
|
-
|
|
5
|
+
import { RemediationActionContext } from '../../core/models/errors/remediation-action-context';
|
|
6
|
+
/** *
|
|
6
7
|
* Processes the capability problems and parses the problems into below form
|
|
7
8
|
* The resulting object segregates the errors based on form and fields they are mapped to
|
|
8
9
|
* and maps them to a task item. Also provides the errorCounts per entity and per form.
|
|
@@ -51,6 +52,6 @@ import { Remediation } from '../../core/models/errors/remediation';
|
|
|
51
52
|
*
|
|
52
53
|
* */
|
|
53
54
|
declare function getCapabilityProblems(response: LegalEntity): CapabilityProblems;
|
|
54
|
-
declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext) => any;
|
|
55
|
+
declare const getComponentMappingFromLEFieldPath: (context: RemediationActionContext, entityType: EntityProblems['entityType']) => any;
|
|
55
56
|
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
56
57
|
export { getCapabilityProblems, getComponentMappingFromLEFieldPath };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import Organization from '../core/models/api/organization';
|
|
2
|
-
import SoleProprietor from '../core/models/api/soleProprietor';
|
|
3
|
-
|
|
1
|
+
import { Organization } from '../core/models/api/organization';
|
|
2
|
+
import { SoleProprietor } from '../core/models/api/soleProprietor';
|
|
3
|
+
import { Trust } from '../core/models/api/trust';
|
|
4
|
+
export declare const updateTaxInformation: <T extends Organization | SoleProprietor | Trust>({ taxId, country, exemptedFromTax, entity, }: {
|
|
4
5
|
taxId: string;
|
|
5
6
|
country: string;
|
|
6
7
|
exemptedFromTax?: boolean;
|