@taxbit/react-sdk 3.1.0-beta.0 → 3.2.0-beta.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 +13 -0
- package/dist/index.d.ts +2 -1
- package/dist/src/App.d.ts +0 -1
- package/dist/src/components/Address/Address.d.ts +0 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +0 -1
- package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +0 -1
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +0 -1
- package/dist/src/components/ErrorMessage/__tests__/ErrorMessage.test.d.ts +0 -1
- package/dist/src/components/Form/Form.d.ts +0 -1
- package/dist/src/components/InputStatus/InputStatus.d.ts +0 -1
- package/dist/src/components/JsxFromString/JsxFromString.d.ts +0 -1
- package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +0 -1
- package/dist/src/components/Row/Row.d.ts +0 -1
- package/dist/src/components/Section/Section.d.ts +0 -1
- package/dist/src/components/StatusMessage/StatusMessage.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/index.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/shiftControllingPerson.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/shiftResidence.d.ts +0 -1
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +1 -4
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +2 -7
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +0 -1
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +4 -5
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +8 -8
- package/dist/src/hooks/useHandleError.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/types/v2.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/types/w8.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/types/w9.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +0 -1
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +0 -1
- package/dist/src/i18n/json/bg.json.d.ts +16 -6
- package/dist/src/i18n/json/cs.json.d.ts +15 -5
- package/dist/src/i18n/json/da.json.d.ts +15 -5
- package/dist/src/i18n/json/de-AT.json.d.ts +2 -2
- package/dist/src/i18n/json/de.json.d.ts +15 -2
- package/dist/src/i18n/json/el.json.d.ts +15 -5
- package/dist/src/i18n/json/en.json.d.ts +15 -2
- package/dist/src/i18n/json/es.json.d.ts +15 -2
- package/dist/src/i18n/json/et.json.d.ts +15 -5
- package/dist/src/i18n/json/fi.json.d.ts +15 -5
- package/dist/src/i18n/json/fr-LU.json.d.ts +2 -2
- package/dist/src/i18n/json/fr.json.d.ts +16 -3
- package/dist/src/i18n/json/ga.json.d.ts +15 -5
- package/dist/src/i18n/json/hr.json.d.ts +15 -5
- package/dist/src/i18n/json/hu.json.d.ts +15 -5
- package/dist/src/i18n/json/id.json.d.ts +14 -4
- package/dist/src/i18n/json/index.d.ts +10 -12
- package/dist/src/i18n/json/it.json.d.ts +15 -2
- package/dist/src/i18n/json/ja.json.d.ts +15 -2
- package/dist/src/i18n/json/ko.json.d.ts +15 -2
- package/dist/src/i18n/json/lt.json.d.ts +15 -5
- package/dist/src/i18n/json/lv.json.d.ts +15 -5
- package/dist/src/i18n/json/ms.json.d.ts +15 -2
- package/dist/src/i18n/json/mt.json.d.ts +15 -5
- package/dist/src/i18n/json/nl-BE.json.d.ts +2 -2
- package/dist/src/i18n/json/nl.json.d.ts +16 -3
- package/dist/src/i18n/json/no.json.d.ts +15 -5
- package/dist/src/i18n/json/pl.json.d.ts +15 -2
- package/dist/src/i18n/json/pt.json.d.ts +15 -2
- package/dist/src/i18n/json/ro.json.d.ts +16 -3
- package/dist/src/i18n/json/ru.json.d.ts +15 -2
- package/dist/src/i18n/json/sk.json.d.ts +15 -5
- package/dist/src/i18n/json/sl.json.d.ts +15 -5
- package/dist/src/i18n/json/sv.json.d.ts +15 -5
- package/dist/src/i18n/json/th.json.d.ts +15 -2
- package/dist/src/i18n/json/tr.json.d.ts +15 -2
- package/dist/src/i18n/json/uk.json.d.ts +15 -5
- package/dist/src/i18n/json/vi.json.d.ts +15 -2
- package/dist/src/i18n/json/zh-TW.json.d.ts +15 -2
- package/dist/src/i18n/json/zh.json.d.ts +406 -148
- package/dist/src/i18n/locales/bg.d.ts +1 -3
- package/dist/src/i18n/locales/cs.d.ts +1 -1
- package/dist/src/i18n/locales/da.d.ts +1 -1
- package/dist/src/i18n/locales/de-at.d.ts +1 -1
- package/dist/src/i18n/locales/de-de.d.ts +2 -0
- package/dist/src/i18n/locales/de.d.ts +2 -1
- package/dist/src/i18n/locales/el-cy.d.ts +1 -1
- package/dist/src/i18n/locales/el-el.d.ts +1 -0
- package/dist/src/i18n/locales/el.d.ts +1 -1
- package/dist/src/i18n/locales/en-dps.d.ts +2 -0
- package/dist/src/i18n/locales/en-gb.d.ts +1 -3
- package/dist/src/i18n/locales/en-nz.d.ts +1 -3
- package/dist/src/i18n/locales/en-us.d.ts +1 -3
- package/dist/src/i18n/locales/en.d.ts +2 -3
- package/dist/src/i18n/locales/es-es.d.ts +496 -0
- package/dist/src/i18n/locales/es-mx.d.ts +1 -3
- package/dist/src/i18n/locales/es.d.ts +2 -3
- package/dist/src/i18n/locales/et.d.ts +1 -1
- package/dist/src/i18n/locales/fi.d.ts +1 -1
- package/dist/src/i18n/locales/fr-ca.d.ts +1 -3
- package/dist/src/i18n/locales/fr-fr.d.ts +496 -0
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
- package/dist/src/i18n/locales/fr.d.ts +2 -3
- package/dist/src/i18n/locales/ga.d.ts +1 -1
- package/dist/src/i18n/locales/hr.d.ts +1 -1
- package/dist/src/i18n/locales/hu.d.ts +1 -1
- package/dist/src/i18n/locales/id.d.ts +2 -3
- package/dist/src/i18n/locales/index.d.ts +5 -0
- package/dist/src/i18n/locales/it.d.ts +2 -1
- package/dist/src/i18n/locales/ja.d.ts +2 -3
- package/dist/src/i18n/locales/ko.d.ts +2 -3
- package/dist/src/i18n/locales/lt.d.ts +1 -1
- package/dist/src/i18n/locales/lv.d.ts +1 -1
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +2 -2
- package/dist/src/i18n/locales/ms.d.ts +2 -1
- package/dist/src/i18n/locales/mt.d.ts +1 -1
- package/dist/src/i18n/locales/nl-be.d.ts +1 -1
- package/dist/src/i18n/locales/nl-nl.d.ts +1 -0
- package/dist/src/i18n/locales/nl.d.ts +2 -1
- package/dist/src/i18n/locales/no.d.ts +1 -1
- package/dist/src/i18n/locales/pl.d.ts +2 -1
- package/dist/src/i18n/locales/pt-br.d.ts +1 -3
- package/dist/src/i18n/locales/pt-pt.d.ts +496 -0
- package/dist/src/i18n/locales/pt.d.ts +2 -1
- package/dist/src/i18n/locales/ro.d.ts +2 -1
- package/dist/src/i18n/locales/ru.d.ts +2 -3
- package/dist/src/i18n/locales/sk.d.ts +1 -1
- package/dist/src/i18n/locales/sl.d.ts +1 -1
- package/dist/src/i18n/locales/sv.d.ts +1 -1
- package/dist/src/i18n/locales/th.d.ts +2 -3
- package/dist/src/i18n/locales/tr.d.ts +2 -3
- package/dist/src/i18n/locales/translation-missing.d.ts +0 -1
- package/dist/src/i18n/locales/uk.d.ts +1 -3
- package/dist/src/i18n/locales/vi.d.ts +496 -3
- package/dist/src/i18n/locales/zh-cn.d.ts +496 -1
- package/dist/src/i18n/locales/zh-tw.d.ts +496 -1
- package/dist/src/i18n/locales/zh.d.ts +496 -3
- package/dist/src/i18n/localizationFileMap.d.ts +2 -3
- package/dist/src/i18n/types/LocalizationKey.d.ts +6 -6
- package/dist/src/i18n/types/PropertyFile.d.ts +15 -7
- package/dist/src/i18n/utils/getText.d.ts +1 -2
- package/dist/src/index.d.ts +0 -1
- package/dist/src/lookups/accountHolderEntityAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/accountOwnerTypeOptions.d.ts +1 -1
- package/dist/src/lookups/activeNonFinancialEntityTypeOptions.d.ts +1 -1
- package/dist/src/lookups/controllingPersonRoleOptions.d.ts +1 -1
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/entityTypeOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
- package/dist/src/lookups/financialInstitutionTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/getTreatyCountryLimitationOnBenefitOptions.d.ts +0 -1
- package/dist/src/lookups/intermediaryAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/localeOptions.d.ts +0 -1
- package/dist/src/lookups/payeeCodeOptions.d.ts +1 -1
- package/dist/src/lookups/regardedOwnerEntityAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/selfCertificationAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/signatureCapacityOptions.d.ts +1 -1
- package/dist/src/lookups/tinNotRequiredReasonOptions.d.ts +1 -1
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/services/api.d.ts +0 -1
- package/dist/src/svg/Spinner.d.ts +0 -1
- package/dist/src/test/StepWrapper.d.ts +0 -1
- package/dist/src/test/Wrapper.d.ts +0 -1
- package/dist/src/test/getWrapper.d.ts +0 -1
- package/dist/src/test/renderWithWrapper.d.ts +0 -1
- package/dist/src/test/utils/helpers.d.ts +4 -2
- package/dist/src/types/InputStep.d.ts +1 -1
- package/dist/src/types/Locale.d.ts +1 -1
- package/dist/src/types/Progress.d.ts +0 -1
- package/dist/src/types/SchemaVersion.d.ts +2 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +8 -4
- package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +1 -1
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/server/TaxDocumentationStatus.d.ts +1 -1
- package/dist/src/ui/Actions/Actions.d.ts +0 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +0 -1
- package/dist/src/ui/CheckBox/__tests__/CheckBox.test.d.ts +0 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +0 -1
- package/dist/src/ui/DateOfBirthInput/__tests__/DateOfBirthInput.test.d.ts +0 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +1 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +0 -1
- package/dist/src/ui/FormattedInput/__tests__/FormattedInput.test.d.ts +0 -1
- package/dist/src/ui/HideShowButton/HideShowButton.d.ts +0 -1
- package/dist/src/ui/InputValue/InputValue.d.ts +0 -1
- package/dist/src/ui/MaskedContent/MaskedContent.d.ts +0 -1
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +0 -1
- package/dist/src/ui/PasswordInput/__tests__/PasswordInput.test.d.ts +0 -1
- package/dist/src/ui/PhoneNumberInput/PhoneNumberInput.d.ts +0 -1
- package/dist/src/ui/PhoneNumberInput/__tests__/PhoneNumberInput.test.d.ts +0 -1
- package/dist/src/ui/RadioButtons/RadioButtons.d.ts +0 -1
- package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -1
- package/dist/src/ui/Select/Select.d.ts +0 -1
- package/dist/src/ui/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +0 -1
- package/dist/src/ui/TextArea/TextArea.d.ts +0 -1
- package/dist/src/ui/TextArea/__tests__/TextArea.test.d.ts +0 -1
- package/dist/src/ui/TextInput/TextInput.d.ts +0 -1
- package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +0 -1
- package/dist/src/ui/ToggleButton/ToggleButton.d.ts +0 -1
- package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +0 -1
- package/dist/src/ui/useAriaAttributes.d.ts +0 -1
- package/dist/src/utils/getDataFields.d.ts +13 -1
- package/dist/src/utils/getErrorMessageId.d.ts +0 -1
- package/dist/src/utils/getFieldsState.d.ts +1 -1
- package/dist/src/utils/getFormStatus.d.ts +0 -1
- package/dist/src/utils/getLanguage.d.ts +0 -1
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +0 -1
- package/dist/src/utils/promptKeyMapping/getAddressPromptKeyMap.d.ts +0 -1
- package/dist/src/utils/promptKeyMapping/getControllingPersonPromptKeyMap.d.ts +0 -1
- package/dist/src/utils/promptKeyMapping/getPromptKeyMap.d.ts +0 -1
- package/dist/src/utils/promptKeyMapping/getTaxResidencesPromptKeyMap.d.ts +0 -1
- package/dist/src/utils/stepIds.d.ts +0 -1
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +0 -1
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformCertifications.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForClient.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForClientTaxResidences.d.ts +0 -1
- package/dist/src/utils/transformForClient/transformForControllingPersons.d.ts +0 -1
- package/dist/src/utils/transformInbound/getAccountOwnerType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getActiveNonFinancialEntityType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getEntityAccountType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getEntityType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getFinancialInstitutionType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getIntermediaryAccountType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +0 -1
- package/dist/src/utils/transformInbound/getSelfCertificationAccountType.d.ts +0 -1
- package/dist/src/utils/transformInbound/getSignatureCapacity.d.ts +2 -0
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +0 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +0 -1
- package/dist/src/utils/transformInbound/transformInboundAddress.d.ts +0 -1
- package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +13 -1
- package/dist/src/utils/transformInbound/transformInboundTaxResidencies.d.ts +0 -1
- package/dist/src/validations/getEditFields.d.ts +1 -2
- package/dist/src/validations/getSkipFields.d.ts +1 -2
- package/dist/src/validations/getSkipSteps.d.ts +0 -1
- package/dist/src/validations/getSteps.d.ts +1 -2
- package/dist/src/validations/invalidFields/getInvalidAddressFields.d.ts +0 -1
- package/dist/src/validations/invalidFields/getInvalidControllingPersonsFields.d.ts +0 -1
- package/dist/src/validations/invalidFields/getInvalidFields.d.ts +0 -1
- package/dist/src/validations/invalidFields/getInvalidTaxResidencyFields.d.ts +0 -1
- package/dist/src/validations/invalidFields/invalidFieldRules.d.ts +3 -3
- package/dist/src/validations/requiredFields/getRequiredAddressFields.d.ts +0 -1
- package/dist/src/validations/requiredFields/getRequiredControllingPersonFields.d.ts +0 -1
- package/dist/src/validations/requiredFields/getRequiredFields.d.ts +0 -1
- package/dist/src/validations/requiredFields/getRequiredTaxResidenceFields.d.ts +0 -1
- package/dist/src/validations/statusFields/getStatusFields.d.ts +0 -1
- package/dist/src/validations/statusFields/statusFieldRules.d.ts +0 -1
- package/dist/src/validations/supportedFields/getSupportedAddressFields.d.ts +0 -1
- package/dist/src/validations/supportedFields/getSupportedControllingPersonFields.d.ts +0 -1
- package/dist/src/validations/supportedFields/getSupportedFields.d.ts +0 -1
- package/dist/src/validations/supportedFields/getSupportedTaxResidenceFields.d.ts +0 -1
- package/dist/src/validations/visibleFields/__tests__/utils.d.ts +0 -1
- package/dist/src/validations/visibleFields/getVisibleAddressFields.d.ts +0 -1
- package/dist/src/validations/visibleFields/getVisibleControllingPersonFields.d.ts +2 -3
- package/dist/src/validations/visibleFields/getVisibleFields.d.ts +2 -4
- package/dist/src/validations/visibleFields/getVisibleTaxResidenceFields.d.ts +2 -3
- package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +0 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +0 -1
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +0 -1
- package/dist/src/wizard/ControllingPersonInput/ControllingPersonInput.d.ts +0 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +0 -1
- package/dist/src/wizard/LanguageSelector/__tests__/LanguageSelector.test.d.ts +0 -0
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +0 -1
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/ErrorRow/__tests__/ErrorRow.test.d.ts +0 -1
- package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/PercentInputRow/PercentInputRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/PhoneNumberRow/PhoneNumberRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/TinInputRow/TinInputRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -1
- package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderAdditionalInfo/AccountHolderAdditionalInfo.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderCertifications/AccountHolderCertifications.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxResidenciesConfirmation/AccountHolderTaxResidenciesConfirmation.d.ts +2 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxResidenciesConfirmation/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderUsTinValidation/AccountHolderUsTinValidation.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/ControllingPersonDetails.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonTaxResidenciesConfirmation/ControllingPersonTaxResidenciesConfirmation.d.ts +9 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonTaxResidenciesConfirmation/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerCertifications/RegardedOwnerCertifications.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerUsTinValidation/RegardedOwnerUsTinValidation.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderSelfCertificationClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderUsClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonRoleInputValue.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonTypeSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerUsClassificationSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/TaxResidency/TaxResidenciesSummary.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DPS.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.DPS.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.Entity.test.d.ts +0 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.Individual.test.d.ts +0 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W8.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W9.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.LanguageSelector.test.d.ts +0 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.AccountClassification.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.ControllingPerson.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.NameAndAddress.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.Summary.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.TaxResidencies.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.DPS.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.SelfCert.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.Skip.WForm.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.Summary.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.TreatyClaims.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +0 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +2 -0
- package/dist/taxbit-react-sdk.js +5177 -20226
- package/dist/taxbit-react-sdk.umd.cjs +1 -1
- package/package.json +5 -5
- package/dist/src/i18n/json/zh-CN.json.d.ts +0 -486
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.test.d.ts +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Locale, TaxDocumentation } from '../../types';
|
|
2
2
|
import { ButtonKey, OptionKey, PromptKey, StatusKey, SubOptionKey, SubPromptKey } from '../types';
|
|
3
|
-
|
|
4
3
|
export declare const getPromptText: (key: PromptKey, locale: Locale | undefined, fields?: TaxDocumentation) => string;
|
|
5
4
|
export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
|
|
6
|
-
export declare const getStatusText: (key: StatusKey, locale: Locale | undefined) => string;
|
|
5
|
+
export declare const getStatusText: (key: StatusKey, locale: Locale | undefined, fields?: TaxDocumentation) => string;
|
|
7
6
|
export declare const getBadgeText: (key: string, locale: Locale | undefined) => string;
|
|
8
7
|
export declare const getTextText: (key: string, locale: Locale | undefined) => string;
|
|
9
8
|
export declare const getTitleText: (key: string, locale: Locale | undefined) => string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const accountHolderEntityAccountTypeOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: "DISREGARDED_ENTITY" | "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const getControllingPersonRoleOptions: (entityType: string | undefined) => {
|
|
2
|
-
value:
|
|
2
|
+
value: "OTHER" | "SETTLOR" | "TRUSTEE" | "PROTECTOR" | "BENEFICIARY" | "SETTLOR_EQUIVALENT" | "TRUSTEE_EQUIVALENT" | "PROTECTOR_EQUIVALENT" | "BENEFICIARY_EQUIVALENT" | "OTHER_EQUIVALENT" | "OWNER" | "OTHER_MEANS" | "SENIOR_MANAGING_OFFICIAL";
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const dayOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const foreignRegardedOwnerAccountTypeOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE" | "QUALIFIED_INTERMEDIARY" | "NONQUALIFIED_INTERMEDIARY" | "TERRITORY_FINANCIAL_INSTITUTION" | "US_BRANCH" | "WITHHOLDING_FOREIGN_PARTNERSHIP" | "WITHHOLDING_FOREIGN_TRUST" | "NONWITHHOLDING_FOREIGN_PARTNERSHIP" | "NONWITHHOLDING_FOREIGN_SIMPLE_TRUST" | "NONWITHHOLDING_FOREIGN_GRANTOR_TRUST";
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const intermediaryAccountTypeOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: "QUALIFIED_INTERMEDIARY" | "NONQUALIFIED_INTERMEDIARY" | "TERRITORY_FINANCIAL_INSTITUTION" | "US_BRANCH" | "WITHHOLDING_FOREIGN_PARTNERSHIP" | "WITHHOLDING_FOREIGN_TRUST" | "NONWITHHOLDING_FOREIGN_PARTNERSHIP" | "NONWITHHOLDING_FOREIGN_SIMPLE_TRUST" | "NONWITHHOLDING_FOREIGN_GRANTOR_TRUST";
|
|
3
3
|
}[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const regardedOwnerEntityAccountTypeOptions: {
|
|
2
|
-
value:
|
|
2
|
+
value: "CORPORATION" | "COMPLEX_TRUST" | "TAX_EXEMPT_ORGANIZATION" | "PRIVATE_FOUNDATION" | "INTERNATIONAL_ORGANIZATION" | "CENTRAL_BANK_OF_ISSUE" | "FOREIGN_GOVERNMENT_CONTROLLED_ENTITY" | "FOREIGN_GOVERNMENT_INTEGRAL_PART" | "ESTATE";
|
|
3
3
|
}[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { QuestionnaireStepContextValue } from 'contexts/QuestionnaireStep/useQuestionnaireStepContext';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* A wrapper for unit testing questionnaire components that combines a real value from the
|
|
6
5
|
* `useQuestionnaireStep` hook with the provided context value overrides.
|
|
@@ -2,7 +2,6 @@ import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
|
2
2
|
import { QuestionnaireStepContextValue } from 'contexts';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { QuestionnaireProp } from '../types';
|
|
5
|
-
|
|
6
5
|
export type WrapperProps = React.PropsWithChildren<{
|
|
7
6
|
/**
|
|
8
7
|
* Initial data for the questionnaire.
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { WrapperProps } from './Wrapper';
|
|
2
|
-
|
|
3
2
|
export declare const renderWithWrapper: ({ contextValue, children, initialData, questionnaire, }: WrapperProps) => import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TaxDocumentation } from '../../types';
|
|
2
|
-
|
|
3
2
|
export declare const expectRowError: (prompt: string) => void;
|
|
4
3
|
export declare const expectRowErrorText: (prompt: string, text: string) => void;
|
|
4
|
+
export declare const expectCheckboxErrorText: (prompt: string, text: string) => void;
|
|
5
5
|
export declare const expectNoRowError: (prompt: string) => void;
|
|
6
6
|
export declare const expectQuestionCount: (count: number) => void;
|
|
7
7
|
export declare const expectText: (text: string, length?: number, exact?: boolean) => void;
|
|
@@ -10,7 +10,8 @@ export declare const expectNullInput: (ariaLabel: string) => void;
|
|
|
10
10
|
export declare const expectVisibleQuestion: (prompt: string) => void;
|
|
11
11
|
export declare const expectNoQuestion: (prompt: string) => void;
|
|
12
12
|
export declare const expectCheckbox: (prompt: string) => void;
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const expectWarningMessage: (prompt: string) => void;
|
|
14
|
+
export declare const expectNoWarningMessage: (prompt: string) => void;
|
|
14
15
|
export declare const expectSection: (title: string) => void;
|
|
15
16
|
export declare const expectNoSection: (title: string) => void;
|
|
16
17
|
export declare const expectDisabledInput: (ariaLabel: string) => void;
|
|
@@ -39,5 +40,6 @@ export declare const setUSIndividualNameAndAddressAndBirthDate: (prefix?: string
|
|
|
39
40
|
export declare const setIndividualCountryNameAndAddressAndBirthDate: (prefix?: string) => void;
|
|
40
41
|
export declare const setBirthDateAndCitizenship: (prefix?: string) => void;
|
|
41
42
|
export declare const setBirthDate: (prefix?: string) => void;
|
|
43
|
+
export declare const log: (message: string) => void;
|
|
42
44
|
export declare const setControllingPersonDetails: (prefix: string) => void;
|
|
43
45
|
export declare const expectNoErrors: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const inputSteps: readonly ["AccountHolderCertifications", "AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderAdditionalInfo", "AccountHolderTreatyClaims", "AccountHolderUsTinValidation", "ControllingPersonDetails1", "ControllingPersonDetails2", "ControllingPersonDetails3", "ControllingPersonDetails4", "ControllingPersonDetails5", "Exemptions", "RegardedOwnerCertifications", "RegardedOwnerContact", "RegardedOwnerTax", "RegardedOwnerTreatyClaims", "RegardedOwnerUsTinValidation", "Summary"];
|
|
1
|
+
declare const inputSteps: readonly ["AccountHolderCertifications", "AccountHolderClassification", "AccountHolderContact", "AccountHolderTax", "AccountHolderTaxResidenciesConfirmation", "AccountHolderAdditionalInfo", "AccountHolderTreatyClaims", "AccountHolderUsTinValidation", "ControllingPersonDetails1", "ControllingPersonDetails2", "ControllingPersonDetails3", "ControllingPersonDetails4", "ControllingPersonDetails5", "ControllingPerson1TaxResidenciesConfirmation", "ControllingPerson2TaxResidenciesConfirmation", "ControllingPerson3TaxResidenciesConfirmation", "ControllingPerson4TaxResidenciesConfirmation", "ControllingPerson5TaxResidenciesConfirmation", "Exemptions", "RegardedOwnerCertifications", "RegardedOwnerContact", "RegardedOwnerTax", "RegardedOwnerTreatyClaims", "RegardedOwnerUsTinValidation", "Summary"];
|
|
2
2
|
export type InputStep = (typeof inputSteps)[number];
|
|
3
3
|
export declare const isInputStep: (step: string) => step is InputStep;
|
|
4
4
|
export declare const confirmInputStep: (step: string) => InputStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'el' | 'el-cy' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'es-mx' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'ga' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nl' | 'nl-be' | 'no' | 'pl' | 'pt' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh-cn' | 'zh-tw';
|
|
1
|
+
export type Locale = 'bg' | 'cs' | 'da' | 'de' | 'de-at' | 'de-de' | 'el' | 'el-cy' | 'el-el' | 'en' | 'en-gb' | 'en-nz' | 'en-us' | 'es' | 'es-es' | 'es-mx' | 'et' | 'fi' | 'fr' | 'fr-ca' | 'fr-lu' | 'fr-fr' | 'ga' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nl' | 'nl-be' | 'nl-nl' | 'no' | 'pl' | 'pt' | 'pt-br' | 'pt-pt' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh-cn' | 'zh-tw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type StepId = 'accountHolderCertifications' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderClassification' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountHolderUsTinValidation' | 'confirmation' | 'controllingPersonDetails1' | 'controllingPersonDetails2' | 'controllingPersonDetails3' | 'controllingPersonDetails4' | 'controllingPersonDetails5' | 'exemptions' | 'regardedOwnerCertifications' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'regardedOwnerUsTinValidation' | 'summary';
|
|
1
|
+
export type StepId = 'accountHolderCertifications' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderTaxResidenciesConfirmation' | 'controllingPerson1TaxResidenciesConfirmation' | 'controllingPerson2TaxResidenciesConfirmation' | 'controllingPerson3TaxResidenciesConfirmation' | 'controllingPerson4TaxResidenciesConfirmation' | 'controllingPerson5TaxResidenciesConfirmation' | 'accountHolderClassification' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountHolderUsTinValidation' | 'confirmation' | 'controllingPersonDetails1' | 'controllingPersonDetails2' | 'controllingPersonDetails3' | 'controllingPersonDetails4' | 'controllingPersonDetails5' | 'exemptions' | 'regardedOwnerCertifications' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'regardedOwnerUsTinValidation' | 'summary';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AccountOwnerType, ActiveNonFinancialEntityType, EntityAccountHolderAccountType, EntityRegardedOwnerAccountType, EntityType, FinancialInstitutionType, IntermediaryAccountType, SelfCertificationAccountType, UsAccountHolderAccountType, UsLLCAccountType, UsRegardedOwnerAccountType } from '@taxbit/utilities';
|
|
2
2
|
import { Yes } from './Yes';
|
|
3
3
|
import { YesNo } from './YesNo';
|
|
4
|
-
|
|
5
4
|
export type AccountHolderClassificationData = {
|
|
6
5
|
accountHolderIsIndividual?: YesNo;
|
|
7
6
|
accountHolderUsPerson?: YesNo;
|
|
@@ -92,7 +91,6 @@ export type RegardedOwnerTreatyClaimData = {
|
|
|
92
91
|
regardedOwnerTreatyClaimHasAdditionalConditions?: Yes;
|
|
93
92
|
};
|
|
94
93
|
type Iterate1_5 = '1' | '2' | '3' | '4' | '5';
|
|
95
|
-
type ResidencesKey<Prefix extends string> = `${Prefix}TaxResidences`;
|
|
96
94
|
type ResidenceCountryKey<Prefix extends string> = `${Prefix}TaxResidenceCountry${Iterate1_5}`;
|
|
97
95
|
type ResidenceTinKey<Prefix extends string> = `${Prefix}TaxResidenceTin${Iterate1_5}`;
|
|
98
96
|
type ResidenceTinNotRequiredKey<Prefix extends string> = `${Prefix}TaxResidenceTinIsNotRequired${Iterate1_5}`;
|
|
@@ -100,7 +98,9 @@ type ResidenceTinNotRequiredReasonKey<Prefix extends string> = `${Prefix}TaxResi
|
|
|
100
98
|
type ResidenceTinNotRequiredReasonOtherKey<Prefix extends string> = `${Prefix}TaxResidenceTinIsNotRequiredReasonOther${Iterate1_5}`;
|
|
101
99
|
type ResidenceShowKey<Prefix extends string> = `${Prefix}ShowTaxResidence${Iterate1_5}`;
|
|
102
100
|
type Residences<Prefix extends string> = {
|
|
103
|
-
[key in
|
|
101
|
+
[key in `${Prefix}IConfirmNoOtherTaxResidencies`]?: Yes;
|
|
102
|
+
} & {
|
|
103
|
+
[key in `${Prefix}TaxResidences`]?: YesNo;
|
|
104
104
|
} & {
|
|
105
105
|
[key in ResidenceCountryKey<Prefix>]?: string;
|
|
106
106
|
} & {
|
|
@@ -132,6 +132,8 @@ export type AccountHolderTaxData = Residences<'accountHolder'> & {
|
|
|
132
132
|
accountHolderEntityType?: EntityType;
|
|
133
133
|
accountHolderSecuritiesMarket?: string;
|
|
134
134
|
accountHolderRelatedCorporation?: string;
|
|
135
|
+
accountHolderResidenceByInvestmentConfirmed?: Yes;
|
|
136
|
+
accountHolderGiin?: string;
|
|
135
137
|
};
|
|
136
138
|
type ControllingPersonPrefix = `controllingPerson${Iterate1_5}`;
|
|
137
139
|
type ControllingPerson = {
|
|
@@ -156,7 +158,9 @@ type ControllingPerson = {
|
|
|
156
158
|
[key in `${ControllingPersonPrefix}CountryOfCitizenship`]?: string;
|
|
157
159
|
} & {
|
|
158
160
|
[key in `${ControllingPersonPrefix}MailingAddressIsDifferent`]?: Yes;
|
|
159
|
-
} & Address<ControllingPersonPrefix> & Address<`${ControllingPersonPrefix}Mailing
|
|
161
|
+
} & Address<ControllingPersonPrefix> & Address<`${ControllingPersonPrefix}Mailing`> & {
|
|
162
|
+
[key in `${ControllingPersonPrefix}ResidenceByInvestmentConfirmed`]?: Yes;
|
|
163
|
+
};
|
|
160
164
|
export type ControllingPersonClassificationData = Residences<ControllingPersonPrefix> & ControllingPerson;
|
|
161
165
|
export type RegardedOwnerClassificationData = {
|
|
162
166
|
regardedOwnerUsPerson?: YesNo;
|
|
@@ -3,7 +3,7 @@ type IssueDetail = {
|
|
|
3
3
|
description: string;
|
|
4
4
|
};
|
|
5
5
|
type QuestionnaireIssue = {
|
|
6
|
-
issueType: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION';
|
|
6
|
+
issueType: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION' | 'CBI_RBI_CONFIRMATION' | 'INCOMPLETE_GIIN';
|
|
7
7
|
createdAt: string;
|
|
8
8
|
details: IssueDetail[];
|
|
9
9
|
};
|
|
@@ -3,7 +3,7 @@ type IssueDetail = {
|
|
|
3
3
|
description: string;
|
|
4
4
|
};
|
|
5
5
|
type Issue = {
|
|
6
|
-
issue_type: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION';
|
|
6
|
+
issue_type: 'CARE_OF_PERMANENT_ADDRESS' | 'CHANGE_IN_CIRCUMSTANCES' | 'INCOMPLETE_DATA' | 'INCONSISTENT_DATA' | 'INCOMPLETE_ADDRESS' | 'INCOMPLETE_CLASSIFICATION' | 'INCOMPLETE_US_TIN' | 'INCOMPLETE_TREATY_CLAIM' | 'PO_BOX_PERMANENT_ADDRESS' | 'TREATY_COUNTRY_MISMATCH' | 'US_INDICIA' | 'US_PERMANENT_ADDRESS' | 'WITHHOLDING_DOCUMENTATION' | 'CBI_RBI_CONFIRMATION' | 'INCOMPLETE_GIIN';
|
|
7
7
|
created_at: string;
|
|
8
8
|
details: IssueDetail[];
|
|
9
9
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types';
|
|
3
|
-
|
|
4
3
|
export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
|
|
5
4
|
mm: string;
|
|
6
5
|
dd: string;
|
|
@@ -9,7 +8,7 @@ export declare const useDateOfBirthInput: (name: TaxDocumentationKey) => {
|
|
|
9
8
|
handleMonthChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
10
9
|
handleYearChange: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
11
10
|
dayOptions: {
|
|
12
|
-
value:
|
|
11
|
+
value: "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
|
|
13
12
|
}[];
|
|
14
13
|
birthYearOptions: {
|
|
15
14
|
value: number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TaxDocumentation } from '../types';
|
|
2
|
-
|
|
3
2
|
export declare const getDataFields: (fields: TaxDocumentation) => {
|
|
4
3
|
iConfirmTheTaxIdIsCorrect: undefined;
|
|
5
4
|
iAmNotSubjectToBackupWithholding: undefined;
|
|
@@ -66,6 +65,7 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
|
|
|
66
65
|
accountHolderIsCompliantCertified?: import('../types').Yes;
|
|
67
66
|
accountHolderEntityPaymentsCertified?: import('../types').Yes;
|
|
68
67
|
accountHolderProvidesWithholdingStatementCertified?: import('../types').Yes;
|
|
68
|
+
accountHolderIConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
69
69
|
accountHolderTaxResidences?: import('../types').YesNo;
|
|
70
70
|
accountHolderTaxResidenceCountry1?: string | undefined;
|
|
71
71
|
accountHolderTaxResidenceCountry2?: string | undefined;
|
|
@@ -114,6 +114,8 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
|
|
|
114
114
|
accountHolderEntityType?: import('@taxbit/utilities').EntityType;
|
|
115
115
|
accountHolderSecuritiesMarket?: string;
|
|
116
116
|
accountHolderRelatedCorporation?: string;
|
|
117
|
+
accountHolderResidenceByInvestmentConfirmed?: import('../types').Yes;
|
|
118
|
+
accountHolderGiin?: string;
|
|
117
119
|
accountHolderIsIndividual?: import('../types').YesNo;
|
|
118
120
|
accountHolderUsPerson?: import('../types').YesNo;
|
|
119
121
|
accountHolderAccountOwnerType?: import('@taxbit/utilities').AccountOwnerType;
|
|
@@ -204,6 +206,11 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
|
|
|
204
206
|
regardedOwnerTreatyClaimTypeOfIncome?: string;
|
|
205
207
|
regardedOwnerTreatyClaimWithholding?: string;
|
|
206
208
|
regardedOwnerTreatyClaimHasAdditionalConditions?: import('../types').Yes;
|
|
209
|
+
controllingPerson1IConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
210
|
+
controllingPerson2IConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
211
|
+
controllingPerson3IConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
212
|
+
controllingPerson4IConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
213
|
+
controllingPerson5IConfirmNoOtherTaxResidencies?: "yes" | undefined;
|
|
207
214
|
controllingPerson1TaxResidences?: "no" | "yes" | undefined;
|
|
208
215
|
controllingPerson2TaxResidences?: "no" | "yes" | undefined;
|
|
209
216
|
controllingPerson3TaxResidences?: "no" | "yes" | undefined;
|
|
@@ -484,6 +491,11 @@ export declare const getDataFields: (fields: TaxDocumentation) => {
|
|
|
484
491
|
controllingPerson3MailingAddressZip?: string | undefined;
|
|
485
492
|
controllingPerson4MailingAddressZip?: string | undefined;
|
|
486
493
|
controllingPerson5MailingAddressZip?: string | undefined;
|
|
494
|
+
controllingPerson1ResidenceByInvestmentConfirmed?: "yes" | undefined;
|
|
495
|
+
controllingPerson2ResidenceByInvestmentConfirmed?: "yes" | undefined;
|
|
496
|
+
controllingPerson3ResidenceByInvestmentConfirmed?: "yes" | undefined;
|
|
497
|
+
controllingPerson4ResidenceByInvestmentConfirmed?: "yes" | undefined;
|
|
498
|
+
controllingPerson5ResidenceByInvestmentConfirmed?: "yes" | undefined;
|
|
487
499
|
subjectToBackupWithholding?: undefined;
|
|
488
500
|
irsRequiresBackupWithholdingConsent?: undefined;
|
|
489
501
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TaxDocumentation } from 'types/TaxDocumentation';
|
|
2
2
|
import { QuestionnaireProp } from '../types';
|
|
3
|
-
|
|
4
3
|
export declare const getFieldsState: (fields?: TaxDocumentation, questionnaire?: QuestionnaireProp) => {
|
|
5
4
|
hasNoEuTaxId: boolean;
|
|
6
5
|
hasEuResidence: boolean;
|
|
@@ -40,6 +39,7 @@ export declare const getFieldsState: (fields?: TaxDocumentation, questionnaire?:
|
|
|
40
39
|
tin: string | undefined;
|
|
41
40
|
tinNotRequired: "yes" | undefined;
|
|
42
41
|
}[];
|
|
42
|
+
hasHighRiskTaxResidenciesOnly: (prefix: "accountHolder" | "controllingPerson1" | "controllingPerson2" | "controllingPerson3" | "controllingPerson4" | "controllingPerson5") => boolean;
|
|
43
43
|
accountHolderIntermediaryWhereUsTinIsRequired: boolean;
|
|
44
44
|
accountHolderTreatyClaim: boolean;
|
|
45
45
|
accountHolderUsTinRequiredSpecialSituations: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { QuestionnaireProp } from '../types';
|
|
2
2
|
import { ClientTaxDocumentationStatus } from '../types/client';
|
|
3
|
-
|
|
4
3
|
export declare const getFormStatus: (statusData: ClientTaxDocumentationStatus | undefined, questionnaire: QuestionnaireProp) => "COMPLETE" | "INCOMPLETE" | undefined;
|