@taxbit/react-sdk 1.1.0-beta.1 → 1.2.0-beta.1

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.
Files changed (235) hide show
  1. package/README.md +13 -4
  2. package/dist/index.d.ts +1 -1
  3. package/dist/src/App.d.ts +0 -1
  4. package/dist/src/components/Address/Address.d.ts +0 -1
  5. package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +0 -1
  6. package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +0 -1
  7. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +0 -1
  8. package/dist/src/components/Form/Form.d.ts +0 -1
  9. package/dist/src/components/InputStatus/InputStatus.d.ts +0 -1
  10. package/dist/src/components/JsxFromString/JsxFromString.d.ts +0 -1
  11. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +0 -1
  12. package/dist/src/components/Row/Row.d.ts +0 -1
  13. package/dist/src/components/Section/Section.d.ts +0 -1
  14. package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +0 -1
  15. package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +4 -4
  16. package/dist/src/contexts/QuestionnaireStep/index.d.ts +0 -1
  17. package/dist/src/contexts/QuestionnaireStep/shiftControllingPerson.d.ts +2 -0
  18. package/dist/src/contexts/QuestionnaireStep/shiftResidence.d.ts +1 -2
  19. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +2 -2
  20. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +4 -2
  21. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +0 -1
  22. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +5 -6
  23. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +6 -6
  24. package/dist/src/hooks/useHandleError.d.ts +0 -1
  25. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +0 -1
  26. package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +0 -1
  27. package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +0 -1
  28. package/dist/src/hooks/useTaxbit/types/w8.d.ts +0 -1
  29. package/dist/src/hooks/useTaxbit/types/w9.d.ts +0 -1
  30. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +2 -3
  31. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +2 -3
  32. package/dist/src/i18n/locales/de.d.ts +2 -3
  33. package/dist/src/i18n/locales/el-cy.d.ts +0 -1
  34. package/dist/src/i18n/locales/el.d.ts +2 -3
  35. package/dist/src/i18n/locales/en-gb.d.ts +0 -1
  36. package/dist/src/i18n/locales/en-nz.d.ts +0 -1
  37. package/dist/src/i18n/locales/en-us.d.ts +0 -1
  38. package/dist/src/i18n/locales/en.d.ts +0 -1
  39. package/dist/src/i18n/locales/es.d.ts +0 -1
  40. package/dist/src/i18n/locales/fr-ca.d.ts +0 -1
  41. package/dist/src/i18n/locales/fr.d.ts +0 -1
  42. package/dist/src/i18n/locales/ga.d.ts +1 -3
  43. package/dist/src/i18n/locales/lt.d.ts +2 -3
  44. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +0 -1
  45. package/dist/src/i18n/locales/nl-be.d.ts +0 -1
  46. package/dist/src/i18n/locales/pl.d.ts +2 -3
  47. package/dist/src/i18n/locales/translation-missing.d.ts +0 -1
  48. package/dist/src/i18n/localizationFileMap.d.ts +0 -1
  49. package/dist/src/i18n/types/LocalizationKey.d.ts +6 -6
  50. package/dist/src/i18n/types/PropertyFile.d.ts +15 -15
  51. package/dist/src/i18n/utils/getText.d.ts +0 -1
  52. package/dist/src/index.d.ts +2 -3
  53. package/dist/src/lookups/activeNonFinancialEntityTypeOptions.d.ts +3 -0
  54. package/dist/src/lookups/controllingPersonRoleOptions.d.ts +3 -0
  55. package/dist/src/lookups/dayOptions.d.ts +1 -1
  56. package/dist/src/lookups/entityTypeOptions.d.ts +3 -0
  57. package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
  58. package/dist/src/lookups/financialInstitutionTypeOptions.d.ts +3 -0
  59. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
  60. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
  61. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
  62. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
  63. package/dist/src/lookups/getTreatyCountryLimitationOnBenefitOptions.d.ts +0 -1
  64. package/dist/src/lookups/index.d.ts +7 -0
  65. package/dist/src/lookups/localeOptions.d.ts +0 -1
  66. package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
  67. package/dist/src/lookups/selfCertificationAccountTypeOptions.d.ts +3 -0
  68. package/dist/src/lookups/signatureCapacityOptions.d.ts +3 -0
  69. package/dist/src/lookups/tinNotRequiredReasonOptions.d.ts +3 -0
  70. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
  71. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
  72. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
  73. package/dist/src/services/api.d.ts +5 -3
  74. package/dist/src/services/msw.d.ts +33 -0
  75. package/dist/src/test/Wrapper.d.ts +2 -3
  76. package/dist/src/test/getWrapper.d.ts +2 -3
  77. package/dist/src/test/utils/helpers.d.ts +10 -0
  78. package/dist/src/types/InputStep.d.ts +1 -1
  79. package/dist/src/types/Progress.d.ts +0 -1
  80. package/dist/src/types/QuestionnaireProp.d.ts +1 -0
  81. package/dist/src/types/StepId.d.ts +1 -1
  82. package/dist/src/types/TaxDocumentation.d.ts +87 -51
  83. package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +4 -0
  84. package/dist/src/types/index.d.ts +1 -1
  85. package/dist/src/types/server/TaxDocumentationStatus.d.ts +4 -0
  86. package/dist/src/ui/ActionButton/ActionButton.d.ts +0 -1
  87. package/dist/src/ui/Actions/Actions.d.ts +0 -1
  88. package/dist/src/ui/CheckBox/CheckBox.d.ts +0 -1
  89. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +0 -1
  90. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +1 -2
  91. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +0 -1
  92. package/dist/src/ui/HideShowButton/HideShowButton.d.ts +0 -1
  93. package/dist/src/ui/InputValue/InputValue.d.ts +2 -2
  94. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +0 -1
  95. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +0 -1
  96. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +0 -1
  97. package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -1
  98. package/dist/src/ui/Select/Select.d.ts +0 -2
  99. package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +0 -1
  100. package/dist/src/ui/TextArea/TextArea.d.ts +0 -1
  101. package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +0 -1
  102. package/dist/src/ui/TextInput/TextInput.d.ts +0 -1
  103. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +0 -1
  104. package/dist/src/ui/ToggleButton/ToggleButton.d.ts +0 -1
  105. package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +0 -1
  106. package/dist/src/utils/camelCaseKeys.d.ts +0 -1
  107. package/dist/src/utils/getFieldsState.d.ts +7 -3
  108. package/dist/src/utils/getFormStatus.d.ts +2 -2
  109. package/dist/src/utils/getLanguage.d.ts +2 -3
  110. package/dist/src/utils/index.d.ts +1 -1
  111. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +0 -1
  112. package/dist/src/utils/promptKeyMapping/getAddressPromptKeyMap.d.ts +5 -0
  113. package/dist/src/utils/promptKeyMapping/getControllingPersonPromptKeyMap.d.ts +3 -0
  114. package/dist/src/utils/{getPromptKeyMap.d.ts → promptKeyMapping/getPromptKeyMap.d.ts} +0 -1
  115. package/dist/src/utils/promptKeyMapping/getTaxResidencesPromptKeyMap.d.ts +5 -0
  116. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +0 -1
  117. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +0 -1
  118. package/dist/src/utils/transformForClient/transformForClient.d.ts +2 -3
  119. package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +0 -1
  120. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +4 -33
  121. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +0 -1
  122. package/dist/src/utils/transformForClient/transformForClientTaxResidences.d.ts +10 -0
  123. package/dist/src/utils/transformForClient/transformForControllingPersons.d.ts +3 -0
  124. package/dist/src/utils/transformInbound/getActiveNonFinancialEntityType.d.ts +2 -0
  125. package/dist/src/utils/transformInbound/getCountryCode.d.ts +1 -0
  126. package/dist/src/utils/transformInbound/getEntityType.d.ts +2 -0
  127. package/dist/src/utils/transformInbound/getFinancialInstitutionType.d.ts +2 -0
  128. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +0 -1
  129. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +0 -1
  130. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +0 -1
  131. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +0 -1
  132. package/dist/src/utils/transformInbound/getSelfCertificationAccountType.d.ts +2 -0
  133. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +0 -1
  134. package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -3
  135. package/dist/src/utils/transformInbound/transformInboundAddress.d.ts +5 -0
  136. package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +439 -0
  137. package/dist/src/utils/transformInbound/transformInboundTaxResidencies.d.ts +6 -0
  138. package/dist/src/validations/getSteps.d.ts +2 -3
  139. package/dist/src/validations/index.d.ts +5 -5
  140. package/dist/src/validations/invalidFields/getInvalidAddressFields.d.ts +4 -0
  141. package/dist/src/validations/invalidFields/getInvalidControllingPersonsFields.d.ts +2 -0
  142. package/dist/src/validations/invalidFields/getInvalidFields.d.ts +4 -0
  143. package/dist/src/validations/invalidFields/getInvalidTaxResidencyFields.d.ts +4 -0
  144. package/dist/src/validations/{invalidFieldRules.d.ts → invalidFields/invalidFieldRules.d.ts} +1 -2
  145. package/dist/src/validations/requiredFields/getRequiredAddressFields.d.ts +6 -0
  146. package/dist/src/validations/requiredFields/getRequiredControllingPersonFields.d.ts +3 -0
  147. package/dist/src/validations/requiredFields/getRequiredFields.d.ts +3 -0
  148. package/dist/src/validations/requiredFields/getRequiredTaxResidenceFields.d.ts +6 -0
  149. package/dist/src/validations/supportedFields/__tests__/generateStrings.d.ts +5 -0
  150. package/dist/src/validations/supportedFields/getSupportedAddressFields.d.ts +7 -0
  151. package/dist/src/validations/supportedFields/getSupportedControllingPersonFields.d.ts +6 -0
  152. package/dist/src/validations/supportedFields/getSupportedFields.d.ts +3 -0
  153. package/dist/src/validations/supportedFields/getSupportedTaxResidenceFields.d.ts +7 -0
  154. package/dist/src/validations/supportedFields/getSupportedTreatyClaimFields.d.ts +3 -0
  155. package/dist/src/validations/visibleFields/getVisibleAddressFields.d.ts +4 -0
  156. package/dist/src/validations/visibleFields/getVisibleControllingPersonFields.d.ts +3 -0
  157. package/dist/src/validations/visibleFields/getVisibleFields.d.ts +3 -0
  158. package/dist/src/validations/visibleFields/getVisibleTaxResidenceFields.d.ts +8 -0
  159. package/dist/src/{entry → widgets}/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +3 -4
  160. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +0 -1
  161. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +0 -1
  162. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +0 -1
  163. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +0 -1
  164. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +0 -1
  165. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +0 -1
  166. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +2 -3
  167. package/dist/src/wizard/AddressInput/AddressInput.d.ts +1 -2
  168. package/dist/src/wizard/ControllingPersonInput/ControllingPersonInput.d.ts +10 -0
  169. package/dist/src/wizard/ControllingPersonInput/index.d.ts +1 -0
  170. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +2 -3
  171. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -2
  172. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +1 -2
  173. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -1
  174. package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -1
  175. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +0 -1
  176. package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +0 -1
  177. package/dist/src/wizard/RowInput/PercentInputRow/PercentInputRow.d.ts +8 -0
  178. package/dist/src/wizard/RowInput/PercentInputRow/index.d.ts +1 -0
  179. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -1
  180. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -2
  181. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +0 -1
  182. package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +0 -1
  183. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +0 -1
  184. package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -1
  185. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +0 -1
  186. package/dist/src/wizard/RowInput/index.d.ts +1 -0
  187. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -1
  188. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +0 -1
  189. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +0 -1
  190. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -1
  191. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +0 -1
  192. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +0 -1
  193. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/ControllingPersonDetails.d.ts +6 -0
  194. package/dist/src/wizard/TaxbitQuestionnaireUI/ControllingPersonDetails/index.d.ts +1 -0
  195. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +0 -1
  196. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -1
  197. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -1
  198. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +0 -1
  199. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderClassificationSummary.d.ts +2 -0
  200. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +5 -0
  201. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderSelfCertificationClassificationSummary.d.ts +5 -0
  202. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderUsClassificationSummary.d.ts +5 -0
  203. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonRoleInputValue.d.ts +6 -0
  204. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonSummary.d.ts +6 -0
  205. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/ControllingPerson/ControllingPersonTypeSummary.d.ts +6 -0
  206. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +0 -1
  207. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerClassificationSummary.d.ts +2 -0
  208. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +5 -0
  209. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerUsClassificationSummary.d.ts +5 -0
  210. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +0 -1
  211. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/TaxResidency/TaxResidenciesSummary.d.ts +10 -0
  212. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +0 -1
  213. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +0 -1
  214. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +0 -1
  215. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.AccountClassification.test.d.ts +0 -0
  216. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.ControllingPerson.test.d.ts +0 -0
  217. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.NameAndAddress.test.d.ts +0 -0
  218. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.Summary.test.d.ts +0 -0
  219. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.SelfCert.TaxResidencies.test.d.ts +0 -0
  220. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +0 -1
  221. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +0 -1
  222. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +0 -1
  223. package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +1 -0
  224. package/dist/taxbit-react-sdk.js +7290 -6619
  225. package/dist/taxbit-react-sdk.umd.cjs +1 -1
  226. package/package.json +7 -6
  227. package/style/basic.css +4 -0
  228. package/style/inline.css +1 -0
  229. package/dist/src/types/Questionnaire.d.ts +0 -1
  230. package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +0 -7
  231. package/dist/src/validations/getInvalidFields.d.ts +0 -5
  232. package/dist/src/validations/getRequiredFields.d.ts +0 -4
  233. package/dist/src/validations/getSupportedFields.d.ts +0 -7
  234. package/dist/src/validations/getVisibleFields.d.ts +0 -4
  235. /package/dist/src/{entry → widgets}/TaxbitQuestionnaire/index.d.ts +0 -0
@@ -0,0 +1,439 @@
1
+ import { ControllingPerson } from '@taxbit/utilities';
2
+ export declare const transformInboundControllingPersons: (controllingPersons: Array<ControllingPerson> | undefined) => {
3
+ accountHolderAddress?: string;
4
+ accountHolderAddressCity?: string | undefined;
5
+ accountHolderAddressCountry?: string | undefined;
6
+ accountHolderAddressState?: string | undefined;
7
+ accountHolderAddressStreet2?: string | undefined;
8
+ accountHolderAddressStreet?: string | undefined;
9
+ accountHolderAddressZip?: string | undefined;
10
+ accountHolderMailingAddress?: string;
11
+ accountHolderMailingAddressCity?: string | undefined;
12
+ accountHolderMailingAddressCountry?: string | undefined;
13
+ accountHolderMailingAddressState?: string | undefined;
14
+ accountHolderMailingAddressStreet2?: string | undefined;
15
+ accountHolderMailingAddressStreet?: string | undefined;
16
+ accountHolderMailingAddressZip?: string | undefined;
17
+ accountHolderCityOfBirth?: string;
18
+ accountHolderCountryOfBirth?: string;
19
+ accountHolderOptionalCityOfBirth?: string;
20
+ accountHolderOptionalCountryOfBirth?: string;
21
+ accountHolderCountryOfCitizenship?: string;
22
+ accountHolderDateOfBirth?: string;
23
+ accountHolderDbaName?: string;
24
+ accountHolderMailingAddressIsDifferent?: import('../../types/Yes.ts').Yes;
25
+ accountHolderName?: string;
26
+ accountHolderTaxResidences?: import('../../types/YesNo.ts').YesNo;
27
+ accountHolderTaxResidenceCountry1?: string | undefined;
28
+ accountHolderTaxResidenceCountry2?: string | undefined;
29
+ accountHolderTaxResidenceCountry3?: string | undefined;
30
+ accountHolderTaxResidenceCountry4?: string | undefined;
31
+ accountHolderTaxResidenceCountry5?: string | undefined;
32
+ accountHolderTaxResidenceTin1?: string | undefined;
33
+ accountHolderTaxResidenceTin2?: string | undefined;
34
+ accountHolderTaxResidenceTin3?: string | undefined;
35
+ accountHolderTaxResidenceTin4?: string | undefined;
36
+ accountHolderTaxResidenceTin5?: string | undefined;
37
+ accountHolderTaxResidenceTinIsNotRequired1?: "yes" | undefined;
38
+ accountHolderTaxResidenceTinIsNotRequired2?: "yes" | undefined;
39
+ accountHolderTaxResidenceTinIsNotRequired3?: "yes" | undefined;
40
+ accountHolderTaxResidenceTinIsNotRequired4?: "yes" | undefined;
41
+ accountHolderTaxResidenceTinIsNotRequired5?: "yes" | undefined;
42
+ accountHolderTaxResidenceTinIsNotRequiredReason1?: string | undefined;
43
+ accountHolderTaxResidenceTinIsNotRequiredReason2?: string | undefined;
44
+ accountHolderTaxResidenceTinIsNotRequiredReason3?: string | undefined;
45
+ accountHolderTaxResidenceTinIsNotRequiredReason4?: string | undefined;
46
+ accountHolderTaxResidenceTinIsNotRequiredReason5?: string | undefined;
47
+ accountHolderTaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
48
+ accountHolderTaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
49
+ accountHolderTaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
50
+ accountHolderTaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
51
+ accountHolderTaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
52
+ accountHolderShowTaxResidence1?: "no" | "yes" | undefined;
53
+ accountHolderShowTaxResidence2?: "no" | "yes" | undefined;
54
+ accountHolderShowTaxResidence3?: "no" | "yes" | undefined;
55
+ accountHolderShowTaxResidence4?: "no" | "yes" | undefined;
56
+ accountHolderShowTaxResidence5?: "no" | "yes" | undefined;
57
+ accountHolderForeignTin?: string;
58
+ accountHolderForeignTinIsNotRequired?: import('../../types/Yes.ts').Yes;
59
+ accountHolderUsTin?: string;
60
+ accountHolderFinancialAccountIdentifier?: string;
61
+ accountHolderFinancialAccountName?: string;
62
+ accountHolderVatIdentificationNumber?: string;
63
+ accountHolderVatIsNotRequired?: import('../../types/Yes.ts').Yes;
64
+ accountHolderVatCountry?: string;
65
+ accountHolderBusinessRegistrationNumber?: string;
66
+ accountHolderBusinessRegistrationCountry?: string;
67
+ accountHolderSelfCertificationAccountType?: import('@taxbit/utilities').SelfCertificationAccountType;
68
+ accountHolderActiveNonFinancialEntityType?: import('@taxbit/utilities').ActiveNonFinancialEntityType;
69
+ accountHolderFinancialInstitutionType?: import('@taxbit/utilities').FinancialInstitutionType;
70
+ accountHolderInvestmentEntityManaged?: import('../../types/YesNo.ts').YesNo;
71
+ accountHolderEntityType?: import('@taxbit/utilities').EntityType;
72
+ accountHolderSecuritiesMarket?: string;
73
+ accountHolderRelatedCorporation?: string;
74
+ accountHolderIsIndividual?: import('../../types/YesNo.ts').YesNo;
75
+ accountHolderUsPerson?: import('../../types/YesNo.ts').YesNo;
76
+ accountHolderUsAccountType?: import('@taxbit/utilities').UsAccountHolderAccountType;
77
+ accountHolderUsSmllcElection?: import('../../types/YesNo.ts').YesNo;
78
+ accountHolderUsLlcClassification?: import('@taxbit/utilities').UsLLCAccountType;
79
+ accountHolderUsOtherClassification?: string;
80
+ accountHolderUsTrustEstateEin?: import('../../types/YesNo.ts').YesNo;
81
+ accountHolderUsSoleProprietorEin?: import('../../types/YesNo.ts').YesNo;
82
+ accountHolderForeignAccountType?: import('@taxbit/utilities').ForeignAccountHolderAccountType;
83
+ accountHolderForeignTrustClassification?: import('@taxbit/utilities').ForeignTrustClassification;
84
+ accountHolderForeignOtherClassification?: import('@taxbit/utilities').ForeignOtherClassification;
85
+ regardedOwnerCountryOfCitizenship?: string;
86
+ regardedOwnerDateOfBirth?: string;
87
+ regardedOwnerDbaName?: string;
88
+ regardedOwnerMailingAddressIsDifferent?: import('../../types/Yes.ts').Yes;
89
+ regardedOwnerName?: string;
90
+ regardedOwnerAddress?: string;
91
+ regardedOwnerAddressCity?: string | undefined;
92
+ regardedOwnerAddressCountry?: string | undefined;
93
+ regardedOwnerAddressState?: string | undefined;
94
+ regardedOwnerAddressStreet2?: string | undefined;
95
+ regardedOwnerAddressStreet?: string | undefined;
96
+ regardedOwnerAddressZip?: string | undefined;
97
+ regardedOwnerMailingAddress?: string;
98
+ regardedOwnerMailingAddressCity?: string | undefined;
99
+ regardedOwnerMailingAddressCountry?: string | undefined;
100
+ regardedOwnerMailingAddressState?: string | undefined;
101
+ regardedOwnerMailingAddressStreet2?: string | undefined;
102
+ regardedOwnerMailingAddressStreet?: string | undefined;
103
+ regardedOwnerMailingAddressZip?: string | undefined;
104
+ regardedOwnerUsPerson?: import('../../types/YesNo.ts').YesNo;
105
+ regardedOwnerUsAccountType?: import('@taxbit/utilities').UsRegardedOwnerAccountType;
106
+ regardedOwnerUsLlcClassification?: import('@taxbit/utilities').UsLLCAccountType;
107
+ regardedOwnerUsOtherClassification?: string;
108
+ regardedOwnerForeignAccountType?: import('@taxbit/utilities').ForeignRegardedOwnerAccountType;
109
+ regardedOwnerForeignTrustClassification?: import('@taxbit/utilities').ForeignTrustClassification;
110
+ regardedOwnerForeignOtherClassification?: import('@taxbit/utilities').ForeignOtherClassification;
111
+ regardedOwnerForeignTin?: string;
112
+ regardedOwnerForeignTinIsNotRequired?: import('../../types/Yes.ts').Yes;
113
+ regardedOwnerUsTin?: string;
114
+ exemptFatcaCode?: string;
115
+ exemptPayeeCode?: string;
116
+ iAcknowledgeESignIsOk?: import('../../types/Yes.ts').Yes;
117
+ iAmACitizenOfTheUs?: import('../../types/Yes.ts').Yes;
118
+ iAmExemptFromFatcaReporting?: import('../../types/Yes.ts').Yes;
119
+ iAmNotSubjectToBackupWithholding?: import('../../types/Yes.ts').Yes;
120
+ iAuthorizeWithholdingAgent?: import('../../types/Yes.ts').Yes;
121
+ iCertifyToAll?: import('../../types/Yes.ts').Yes;
122
+ iConfirmIncomeIsNonUs?: import('../../types/Yes.ts').Yes;
123
+ iConfirmTheBeneficialOwnerIsExempt?: import('../../types/Yes.ts').Yes;
124
+ iConfirmNotAUsPerson?: import('../../types/Yes.ts').Yes;
125
+ iConfirmTheBeneficialOwner?: import('../../types/Yes.ts').Yes;
126
+ iConfirmTheIndividualIsResidentOfTreatyCountry?: import('../../types/Yes.ts').Yes;
127
+ iConfirmTheInformationIsCorrectComplete?: import('../../types/Yes.ts').Yes;
128
+ iConfirmTheTaxIdIsCorrect?: import('../../types/Yes.ts').Yes;
129
+ iHaveCapacityToSign?: import('../../types/Yes.ts').Yes;
130
+ iWillResubmitIfIncorrect?: import('../../types/Yes.ts').Yes;
131
+ iUnderstandTheInformationIsCovered?: import('../../types/Yes.ts').Yes;
132
+ iAcknowledgeTheInformationMayBeProvided?: import('../../types/Yes.ts').Yes;
133
+ iCertifyIAmAccountHolder?: import('../../types/Yes.ts').Yes;
134
+ iCertifyIWillNotifyPersons?: import('../../types/Yes.ts').Yes;
135
+ iDeclareStatementsAreCorrect?: import('../../types/Yes.ts').Yes;
136
+ iWillNotifyChangeInCircumstance?: import('../../types/Yes.ts').Yes;
137
+ signature?: string;
138
+ signatureCapacity?: string;
139
+ signatureCapacityOther?: string;
140
+ source?: string;
141
+ accountHolderTreatyClaimIsEligible?: import('../../types/YesNo.ts').YesNo;
142
+ accountHolderTreatyClaimCountry?: string;
143
+ accountHolderTreatyClaimICertifyResident?: import('../../types/Yes.ts').Yes;
144
+ accountHolderTreatyClaimICertifyRequirements?: import('../../types/Yes.ts').Yes;
145
+ accountHolderTreatyClaimLimitationOnBenefits?: string;
146
+ accountHolderTreatyClaimLimitationOnBenefitsOtherArticleParagraph?: string;
147
+ accountHolderTreatyClaimTypeOfIncome?: string;
148
+ accountHolderTreatyClaimWithholding?: string;
149
+ accountHolderTreatyClaimHasAdditionalConditions?: import('../../types/Yes.ts').Yes;
150
+ regardedOwnerTreatyClaimIsEligible?: import('../../types/YesNo.ts').YesNo;
151
+ regardedOwnerTreatyClaimCountry?: string;
152
+ regardedOwnerTreatyClaimICertifyResident?: import('../../types/Yes.ts').Yes;
153
+ regardedOwnerTreatyClaimICertifyRequirements?: import('../../types/Yes.ts').Yes;
154
+ regardedOwnerTreatyClaimLimitationOnBenefits?: string;
155
+ regardedOwnerTreatyClaimLimitationOnBenefitsOtherArticleParagraph?: string;
156
+ regardedOwnerTreatyClaimTypeOfIncome?: string;
157
+ regardedOwnerTreatyClaimWithholding?: string;
158
+ regardedOwnerTreatyClaimHasAdditionalConditions?: import('../../types/Yes.ts').Yes;
159
+ controllingPerson1TaxResidences?: "no" | "yes" | undefined;
160
+ controllingPerson2TaxResidences?: "no" | "yes" | undefined;
161
+ controllingPerson3TaxResidences?: "no" | "yes" | undefined;
162
+ controllingPerson4TaxResidences?: "no" | "yes" | undefined;
163
+ controllingPerson5TaxResidences?: "no" | "yes" | undefined;
164
+ controllingPerson1TaxResidenceCountry1?: string | undefined;
165
+ controllingPerson2TaxResidenceCountry1?: string | undefined;
166
+ controllingPerson3TaxResidenceCountry1?: string | undefined;
167
+ controllingPerson4TaxResidenceCountry1?: string | undefined;
168
+ controllingPerson5TaxResidenceCountry1?: string | undefined;
169
+ controllingPerson1TaxResidenceCountry2?: string | undefined;
170
+ controllingPerson2TaxResidenceCountry2?: string | undefined;
171
+ controllingPerson3TaxResidenceCountry2?: string | undefined;
172
+ controllingPerson4TaxResidenceCountry2?: string | undefined;
173
+ controllingPerson5TaxResidenceCountry2?: string | undefined;
174
+ controllingPerson1TaxResidenceCountry3?: string | undefined;
175
+ controllingPerson2TaxResidenceCountry3?: string | undefined;
176
+ controllingPerson3TaxResidenceCountry3?: string | undefined;
177
+ controllingPerson4TaxResidenceCountry3?: string | undefined;
178
+ controllingPerson5TaxResidenceCountry3?: string | undefined;
179
+ controllingPerson1TaxResidenceCountry4?: string | undefined;
180
+ controllingPerson2TaxResidenceCountry4?: string | undefined;
181
+ controllingPerson3TaxResidenceCountry4?: string | undefined;
182
+ controllingPerson4TaxResidenceCountry4?: string | undefined;
183
+ controllingPerson5TaxResidenceCountry4?: string | undefined;
184
+ controllingPerson1TaxResidenceCountry5?: string | undefined;
185
+ controllingPerson2TaxResidenceCountry5?: string | undefined;
186
+ controllingPerson3TaxResidenceCountry5?: string | undefined;
187
+ controllingPerson4TaxResidenceCountry5?: string | undefined;
188
+ controllingPerson5TaxResidenceCountry5?: string | undefined;
189
+ controllingPerson1TaxResidenceTin1?: string | undefined;
190
+ controllingPerson2TaxResidenceTin1?: string | undefined;
191
+ controllingPerson3TaxResidenceTin1?: string | undefined;
192
+ controllingPerson4TaxResidenceTin1?: string | undefined;
193
+ controllingPerson5TaxResidenceTin1?: string | undefined;
194
+ controllingPerson1TaxResidenceTin2?: string | undefined;
195
+ controllingPerson2TaxResidenceTin2?: string | undefined;
196
+ controllingPerson3TaxResidenceTin2?: string | undefined;
197
+ controllingPerson4TaxResidenceTin2?: string | undefined;
198
+ controllingPerson5TaxResidenceTin2?: string | undefined;
199
+ controllingPerson1TaxResidenceTin3?: string | undefined;
200
+ controllingPerson2TaxResidenceTin3?: string | undefined;
201
+ controllingPerson3TaxResidenceTin3?: string | undefined;
202
+ controllingPerson4TaxResidenceTin3?: string | undefined;
203
+ controllingPerson5TaxResidenceTin3?: string | undefined;
204
+ controllingPerson1TaxResidenceTin4?: string | undefined;
205
+ controllingPerson2TaxResidenceTin4?: string | undefined;
206
+ controllingPerson3TaxResidenceTin4?: string | undefined;
207
+ controllingPerson4TaxResidenceTin4?: string | undefined;
208
+ controllingPerson5TaxResidenceTin4?: string | undefined;
209
+ controllingPerson1TaxResidenceTin5?: string | undefined;
210
+ controllingPerson2TaxResidenceTin5?: string | undefined;
211
+ controllingPerson3TaxResidenceTin5?: string | undefined;
212
+ controllingPerson4TaxResidenceTin5?: string | undefined;
213
+ controllingPerson5TaxResidenceTin5?: string | undefined;
214
+ controllingPerson1TaxResidenceTinIsNotRequired1?: "yes" | undefined;
215
+ controllingPerson2TaxResidenceTinIsNotRequired1?: "yes" | undefined;
216
+ controllingPerson3TaxResidenceTinIsNotRequired1?: "yes" | undefined;
217
+ controllingPerson4TaxResidenceTinIsNotRequired1?: "yes" | undefined;
218
+ controllingPerson5TaxResidenceTinIsNotRequired1?: "yes" | undefined;
219
+ controllingPerson1TaxResidenceTinIsNotRequired2?: "yes" | undefined;
220
+ controllingPerson2TaxResidenceTinIsNotRequired2?: "yes" | undefined;
221
+ controllingPerson3TaxResidenceTinIsNotRequired2?: "yes" | undefined;
222
+ controllingPerson4TaxResidenceTinIsNotRequired2?: "yes" | undefined;
223
+ controllingPerson5TaxResidenceTinIsNotRequired2?: "yes" | undefined;
224
+ controllingPerson1TaxResidenceTinIsNotRequired3?: "yes" | undefined;
225
+ controllingPerson2TaxResidenceTinIsNotRequired3?: "yes" | undefined;
226
+ controllingPerson3TaxResidenceTinIsNotRequired3?: "yes" | undefined;
227
+ controllingPerson4TaxResidenceTinIsNotRequired3?: "yes" | undefined;
228
+ controllingPerson5TaxResidenceTinIsNotRequired3?: "yes" | undefined;
229
+ controllingPerson1TaxResidenceTinIsNotRequired4?: "yes" | undefined;
230
+ controllingPerson2TaxResidenceTinIsNotRequired4?: "yes" | undefined;
231
+ controllingPerson3TaxResidenceTinIsNotRequired4?: "yes" | undefined;
232
+ controllingPerson4TaxResidenceTinIsNotRequired4?: "yes" | undefined;
233
+ controllingPerson5TaxResidenceTinIsNotRequired4?: "yes" | undefined;
234
+ controllingPerson1TaxResidenceTinIsNotRequired5?: "yes" | undefined;
235
+ controllingPerson2TaxResidenceTinIsNotRequired5?: "yes" | undefined;
236
+ controllingPerson3TaxResidenceTinIsNotRequired5?: "yes" | undefined;
237
+ controllingPerson4TaxResidenceTinIsNotRequired5?: "yes" | undefined;
238
+ controllingPerson5TaxResidenceTinIsNotRequired5?: "yes" | undefined;
239
+ controllingPerson1TaxResidenceTinIsNotRequiredReason1?: string | undefined;
240
+ controllingPerson2TaxResidenceTinIsNotRequiredReason1?: string | undefined;
241
+ controllingPerson3TaxResidenceTinIsNotRequiredReason1?: string | undefined;
242
+ controllingPerson4TaxResidenceTinIsNotRequiredReason1?: string | undefined;
243
+ controllingPerson5TaxResidenceTinIsNotRequiredReason1?: string | undefined;
244
+ controllingPerson1TaxResidenceTinIsNotRequiredReason2?: string | undefined;
245
+ controllingPerson2TaxResidenceTinIsNotRequiredReason2?: string | undefined;
246
+ controllingPerson3TaxResidenceTinIsNotRequiredReason2?: string | undefined;
247
+ controllingPerson4TaxResidenceTinIsNotRequiredReason2?: string | undefined;
248
+ controllingPerson5TaxResidenceTinIsNotRequiredReason2?: string | undefined;
249
+ controllingPerson1TaxResidenceTinIsNotRequiredReason3?: string | undefined;
250
+ controllingPerson2TaxResidenceTinIsNotRequiredReason3?: string | undefined;
251
+ controllingPerson3TaxResidenceTinIsNotRequiredReason3?: string | undefined;
252
+ controllingPerson4TaxResidenceTinIsNotRequiredReason3?: string | undefined;
253
+ controllingPerson5TaxResidenceTinIsNotRequiredReason3?: string | undefined;
254
+ controllingPerson1TaxResidenceTinIsNotRequiredReason4?: string | undefined;
255
+ controllingPerson2TaxResidenceTinIsNotRequiredReason4?: string | undefined;
256
+ controllingPerson3TaxResidenceTinIsNotRequiredReason4?: string | undefined;
257
+ controllingPerson4TaxResidenceTinIsNotRequiredReason4?: string | undefined;
258
+ controllingPerson5TaxResidenceTinIsNotRequiredReason4?: string | undefined;
259
+ controllingPerson1TaxResidenceTinIsNotRequiredReason5?: string | undefined;
260
+ controllingPerson2TaxResidenceTinIsNotRequiredReason5?: string | undefined;
261
+ controllingPerson3TaxResidenceTinIsNotRequiredReason5?: string | undefined;
262
+ controllingPerson4TaxResidenceTinIsNotRequiredReason5?: string | undefined;
263
+ controllingPerson5TaxResidenceTinIsNotRequiredReason5?: string | undefined;
264
+ controllingPerson1TaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
265
+ controllingPerson2TaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
266
+ controllingPerson3TaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
267
+ controllingPerson4TaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
268
+ controllingPerson5TaxResidenceTinIsNotRequiredReasonOther1?: string | undefined;
269
+ controllingPerson1TaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
270
+ controllingPerson2TaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
271
+ controllingPerson3TaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
272
+ controllingPerson4TaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
273
+ controllingPerson5TaxResidenceTinIsNotRequiredReasonOther2?: string | undefined;
274
+ controllingPerson1TaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
275
+ controllingPerson2TaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
276
+ controllingPerson3TaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
277
+ controllingPerson4TaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
278
+ controllingPerson5TaxResidenceTinIsNotRequiredReasonOther3?: string | undefined;
279
+ controllingPerson1TaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
280
+ controllingPerson2TaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
281
+ controllingPerson3TaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
282
+ controllingPerson4TaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
283
+ controllingPerson5TaxResidenceTinIsNotRequiredReasonOther4?: string | undefined;
284
+ controllingPerson1TaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
285
+ controllingPerson2TaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
286
+ controllingPerson3TaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
287
+ controllingPerson4TaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
288
+ controllingPerson5TaxResidenceTinIsNotRequiredReasonOther5?: string | undefined;
289
+ controllingPerson1ShowTaxResidence1?: "no" | "yes" | undefined;
290
+ controllingPerson2ShowTaxResidence1?: "no" | "yes" | undefined;
291
+ controllingPerson3ShowTaxResidence1?: "no" | "yes" | undefined;
292
+ controllingPerson4ShowTaxResidence1?: "no" | "yes" | undefined;
293
+ controllingPerson5ShowTaxResidence1?: "no" | "yes" | undefined;
294
+ controllingPerson1ShowTaxResidence2?: "no" | "yes" | undefined;
295
+ controllingPerson2ShowTaxResidence2?: "no" | "yes" | undefined;
296
+ controllingPerson3ShowTaxResidence2?: "no" | "yes" | undefined;
297
+ controllingPerson4ShowTaxResidence2?: "no" | "yes" | undefined;
298
+ controllingPerson5ShowTaxResidence2?: "no" | "yes" | undefined;
299
+ controllingPerson1ShowTaxResidence3?: "no" | "yes" | undefined;
300
+ controllingPerson2ShowTaxResidence3?: "no" | "yes" | undefined;
301
+ controllingPerson3ShowTaxResidence3?: "no" | "yes" | undefined;
302
+ controllingPerson4ShowTaxResidence3?: "no" | "yes" | undefined;
303
+ controllingPerson5ShowTaxResidence3?: "no" | "yes" | undefined;
304
+ controllingPerson1ShowTaxResidence4?: "no" | "yes" | undefined;
305
+ controllingPerson2ShowTaxResidence4?: "no" | "yes" | undefined;
306
+ controllingPerson3ShowTaxResidence4?: "no" | "yes" | undefined;
307
+ controllingPerson4ShowTaxResidence4?: "no" | "yes" | undefined;
308
+ controllingPerson5ShowTaxResidence4?: "no" | "yes" | undefined;
309
+ controllingPerson1ShowTaxResidence5?: "no" | "yes" | undefined;
310
+ controllingPerson2ShowTaxResidence5?: "no" | "yes" | undefined;
311
+ controllingPerson3ShowTaxResidence5?: "no" | "yes" | undefined;
312
+ controllingPerson4ShowTaxResidence5?: "no" | "yes" | undefined;
313
+ controllingPerson5ShowTaxResidence5?: "no" | "yes" | undefined;
314
+ controllingPerson1ShowFields?: "yes" | undefined;
315
+ controllingPerson2ShowFields?: "yes" | undefined;
316
+ controllingPerson3ShowFields?: "yes" | undefined;
317
+ controllingPerson4ShowFields?: "yes" | undefined;
318
+ controllingPerson5ShowFields?: "yes" | undefined;
319
+ controllingPerson1Name?: string | undefined;
320
+ controllingPerson2Name?: string | undefined;
321
+ controllingPerson3Name?: string | undefined;
322
+ controllingPerson4Name?: string | undefined;
323
+ controllingPerson5Name?: string | undefined;
324
+ controllingPerson1Role?: string | undefined;
325
+ controllingPerson2Role?: string | undefined;
326
+ controllingPerson3Role?: string | undefined;
327
+ controllingPerson4Role?: string | undefined;
328
+ controllingPerson5Role?: string | undefined;
329
+ controllingPerson1RoleOther?: string | undefined;
330
+ controllingPerson2RoleOther?: string | undefined;
331
+ controllingPerson3RoleOther?: string | undefined;
332
+ controllingPerson4RoleOther?: string | undefined;
333
+ controllingPerson5RoleOther?: string | undefined;
334
+ controllingPerson1RoleOtherEquivalent?: string | undefined;
335
+ controllingPerson2RoleOtherEquivalent?: string | undefined;
336
+ controllingPerson3RoleOtherEquivalent?: string | undefined;
337
+ controllingPerson4RoleOtherEquivalent?: string | undefined;
338
+ controllingPerson5RoleOtherEquivalent?: string | undefined;
339
+ controllingPerson1OwnershipPercentage?: string | undefined;
340
+ controllingPerson2OwnershipPercentage?: string | undefined;
341
+ controllingPerson3OwnershipPercentage?: string | undefined;
342
+ controllingPerson4OwnershipPercentage?: string | undefined;
343
+ controllingPerson5OwnershipPercentage?: string | undefined;
344
+ controllingPerson1DateOfBirth?: string | undefined;
345
+ controllingPerson2DateOfBirth?: string | undefined;
346
+ controllingPerson3DateOfBirth?: string | undefined;
347
+ controllingPerson4DateOfBirth?: string | undefined;
348
+ controllingPerson5DateOfBirth?: string | undefined;
349
+ controllingPerson1CityOfBirth?: string | undefined;
350
+ controllingPerson2CityOfBirth?: string | undefined;
351
+ controllingPerson3CityOfBirth?: string | undefined;
352
+ controllingPerson4CityOfBirth?: string | undefined;
353
+ controllingPerson5CityOfBirth?: string | undefined;
354
+ controllingPerson1CountryOfBirth?: string | undefined;
355
+ controllingPerson2CountryOfBirth?: string | undefined;
356
+ controllingPerson3CountryOfBirth?: string | undefined;
357
+ controllingPerson4CountryOfBirth?: string | undefined;
358
+ controllingPerson5CountryOfBirth?: string | undefined;
359
+ controllingPerson1CountryOfCitizenship?: string | undefined;
360
+ controllingPerson2CountryOfCitizenship?: string | undefined;
361
+ controllingPerson3CountryOfCitizenship?: string | undefined;
362
+ controllingPerson4CountryOfCitizenship?: string | undefined;
363
+ controllingPerson5CountryOfCitizenship?: string | undefined;
364
+ controllingPerson1MailingAddressIsDifferent?: "yes" | undefined;
365
+ controllingPerson2MailingAddressIsDifferent?: "yes" | undefined;
366
+ controllingPerson3MailingAddressIsDifferent?: "yes" | undefined;
367
+ controllingPerson4MailingAddressIsDifferent?: "yes" | undefined;
368
+ controllingPerson5MailingAddressIsDifferent?: "yes" | undefined;
369
+ controllingPerson1Address?: string | undefined;
370
+ controllingPerson2Address?: string | undefined;
371
+ controllingPerson3Address?: string | undefined;
372
+ controllingPerson4Address?: string | undefined;
373
+ controllingPerson5Address?: string | undefined;
374
+ controllingPerson1AddressCity?: string | undefined;
375
+ controllingPerson2AddressCity?: string | undefined;
376
+ controllingPerson3AddressCity?: string | undefined;
377
+ controllingPerson4AddressCity?: string | undefined;
378
+ controllingPerson5AddressCity?: string | undefined;
379
+ controllingPerson1AddressCountry?: string | undefined;
380
+ controllingPerson2AddressCountry?: string | undefined;
381
+ controllingPerson3AddressCountry?: string | undefined;
382
+ controllingPerson4AddressCountry?: string | undefined;
383
+ controllingPerson5AddressCountry?: string | undefined;
384
+ controllingPerson1AddressState?: string | undefined;
385
+ controllingPerson2AddressState?: string | undefined;
386
+ controllingPerson3AddressState?: string | undefined;
387
+ controllingPerson4AddressState?: string | undefined;
388
+ controllingPerson5AddressState?: string | undefined;
389
+ controllingPerson1AddressStreet2?: string | undefined;
390
+ controllingPerson2AddressStreet2?: string | undefined;
391
+ controllingPerson3AddressStreet2?: string | undefined;
392
+ controllingPerson4AddressStreet2?: string | undefined;
393
+ controllingPerson5AddressStreet2?: string | undefined;
394
+ controllingPerson1AddressStreet?: string | undefined;
395
+ controllingPerson2AddressStreet?: string | undefined;
396
+ controllingPerson3AddressStreet?: string | undefined;
397
+ controllingPerson4AddressStreet?: string | undefined;
398
+ controllingPerson5AddressStreet?: string | undefined;
399
+ controllingPerson1AddressZip?: string | undefined;
400
+ controllingPerson2AddressZip?: string | undefined;
401
+ controllingPerson3AddressZip?: string | undefined;
402
+ controllingPerson4AddressZip?: string | undefined;
403
+ controllingPerson5AddressZip?: string | undefined;
404
+ controllingPerson1MailingAddress?: string | undefined;
405
+ controllingPerson2MailingAddress?: string | undefined;
406
+ controllingPerson3MailingAddress?: string | undefined;
407
+ controllingPerson4MailingAddress?: string | undefined;
408
+ controllingPerson5MailingAddress?: string | undefined;
409
+ controllingPerson1MailingAddressCity?: string | undefined;
410
+ controllingPerson2MailingAddressCity?: string | undefined;
411
+ controllingPerson3MailingAddressCity?: string | undefined;
412
+ controllingPerson4MailingAddressCity?: string | undefined;
413
+ controllingPerson5MailingAddressCity?: string | undefined;
414
+ controllingPerson1MailingAddressCountry?: string | undefined;
415
+ controllingPerson2MailingAddressCountry?: string | undefined;
416
+ controllingPerson3MailingAddressCountry?: string | undefined;
417
+ controllingPerson4MailingAddressCountry?: string | undefined;
418
+ controllingPerson5MailingAddressCountry?: string | undefined;
419
+ controllingPerson1MailingAddressState?: string | undefined;
420
+ controllingPerson2MailingAddressState?: string | undefined;
421
+ controllingPerson3MailingAddressState?: string | undefined;
422
+ controllingPerson4MailingAddressState?: string | undefined;
423
+ controllingPerson5MailingAddressState?: string | undefined;
424
+ controllingPerson1MailingAddressStreet2?: string | undefined;
425
+ controllingPerson2MailingAddressStreet2?: string | undefined;
426
+ controllingPerson3MailingAddressStreet2?: string | undefined;
427
+ controllingPerson4MailingAddressStreet2?: string | undefined;
428
+ controllingPerson5MailingAddressStreet2?: string | undefined;
429
+ controllingPerson1MailingAddressStreet?: string | undefined;
430
+ controllingPerson2MailingAddressStreet?: string | undefined;
431
+ controllingPerson3MailingAddressStreet?: string | undefined;
432
+ controllingPerson4MailingAddressStreet?: string | undefined;
433
+ controllingPerson5MailingAddressStreet?: string | undefined;
434
+ controllingPerson1MailingAddressZip?: string | undefined;
435
+ controllingPerson2MailingAddressZip?: string | undefined;
436
+ controllingPerson3MailingAddressZip?: string | undefined;
437
+ controllingPerson4MailingAddressZip?: string | undefined;
438
+ controllingPerson5MailingAddressZip?: string | undefined;
439
+ };
@@ -0,0 +1,6 @@
1
+ import { ClientTaxResidence } from '@taxbit/utilities';
2
+ type Prefix = 'accountHolder' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5';
3
+ export declare const transformInboundTaxResidencies: (taxResidences: Array<ClientTaxResidence> | undefined, prefix: Prefix) => {
4
+ [x: string]: string | undefined;
5
+ };
6
+ export {};
@@ -1,3 +1,2 @@
1
- import { TaxDocumentation } from '../types';
2
-
3
- export declare const getSteps: (data: TaxDocumentation, treatyClaims?: boolean) => ("AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "AccountHolderTreatyClaims" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "RegardedOwnerTreatyClaims" | "Summary" | "W8imyInstructions")[];
1
+ import { QuestionnaireProp, TaxDocumentation } from '../types';
2
+ export declare const getSteps: (data: TaxDocumentation, treatyClaims: boolean | undefined, questionnaire: QuestionnaireProp) => ("AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "AccountHolderTreatyClaims" | "ControllingPersonDetails1" | "ControllingPersonDetails2" | "ControllingPersonDetails3" | "ControllingPersonDetails4" | "ControllingPersonDetails5" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "RegardedOwnerTreatyClaims" | "Summary" | "W8imyInstructions")[];
@@ -1,6 +1,6 @@
1
- export * from './getInvalidFields';
2
- export * from './getRequiredFields';
3
1
  export * from './getSteps';
4
- export * from './getSupportedFields';
5
- export * from './getVisibleFields';
6
- export * from './invalidFieldRules';
2
+ export * from './invalidFields/getInvalidFields.ts';
3
+ export * from './invalidFields/invalidFieldRules.ts';
4
+ export * from './requiredFields/getRequiredFields.ts';
5
+ export * from './supportedFields/getSupportedFields.ts';
6
+ export * from './visibleFields/getVisibleFields.ts';
@@ -0,0 +1,4 @@
1
+ import { FormUIValidations } from './invalidFieldRules.ts';
2
+ type Prefix = 'accountHolder' | 'accountHolderMailing' | 'regardedOwner' | 'regardedOwnerMailing' | 'controllingPerson1' | 'controllingPerson1Mailing' | 'controllingPerson2' | 'controllingPerson2Mailing' | 'controllingPerson3' | 'controllingPerson3Mailing' | 'controllingPerson4' | 'controllingPerson4Mailing' | 'controllingPerson5' | 'controllingPerson5Mailing';
3
+ export declare const getInvalidAddressRules: (prefix: Prefix) => FormUIValidations;
4
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FormUIValidations } from './invalidFieldRules';
2
+ export declare const getInvalidControllingPersonsFields: () => FormUIValidations;
@@ -0,0 +1,4 @@
1
+ import { TaxDocumentationErrorFile } from '../../contexts';
2
+ import { QuestionnaireProp, TaxDocumentation } from '../../types';
3
+ import { ExternalValidations } from '../../types/client';
4
+ export declare const getInvalidFields: (fields: TaxDocumentation, questionnaire: QuestionnaireProp, externalValidations?: ExternalValidations) => TaxDocumentationErrorFile;
@@ -0,0 +1,4 @@
1
+ import { FormUIValidations } from './invalidFieldRules.ts';
2
+ type Prefix = 'accountHolder' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5';
3
+ export declare const getInvalidTaxResidencyFields: (prefix: Prefix) => FormUIValidations;
4
+ export {};
@@ -1,7 +1,6 @@
1
1
  import { ErrorKey } from 'i18n/types';
2
2
  import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
3
- import { ExternalValidations } from '../types/client';
4
-
3
+ import { ExternalValidations } from '../../types/client';
5
4
  export type FormUIValidation = (fields: TaxDocumentation, externalValidations?: ExternalValidations) => ErrorKey[] | undefined;
6
5
  export type FormUIValidations = {
7
6
  [key in TaxDocumentationKey]?: FormUIValidation;
@@ -0,0 +1,6 @@
1
+ import { TaxDocumentation } from '../../types';
2
+ type Prefix = 'accountHolder' | 'accountHolderMailing' | 'regardedOwner' | 'regardedOwnerMailing' | 'controllingPerson1' | 'controllingPerson1Mailing' | 'controllingPerson2' | 'controllingPerson2Mailing' | 'controllingPerson3' | 'controllingPerson3Mailing' | 'controllingPerson4' | 'controllingPerson4Mailing' | 'controllingPerson5' | 'controllingPerson5Mailing';
3
+ export declare const getRequiredAddressFields: (prefix: `${Prefix}Address`, fields: TaxDocumentation, isAddressRequired: boolean) => {
4
+ [x: string]: boolean;
5
+ };
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ import { TaxDocumentation } from '../../types';
3
+ export declare const getRequiredControllingPersonFields: (fields: TaxDocumentation, isSelfCertification: boolean) => Partial<TaxDocumentationPropertyFile>;
@@ -0,0 +1,3 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ import { QuestionnaireProp, TaxDocumentation } from '../../types';
3
+ export declare const getRequiredFields: (fields: TaxDocumentation, questionnaire: QuestionnaireProp) => TaxDocumentationPropertyFile;
@@ -0,0 +1,6 @@
1
+ import { TaxDocumentation } from '../../types';
2
+ type Prefix = 'accountHolder' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5';
3
+ export declare const getRequiredTaxResidenceFields: (prefix: Prefix, fields: TaxDocumentation) => {
4
+ [x: string]: boolean;
5
+ };
6
+ export {};
@@ -0,0 +1,5 @@
1
+ type Index = '1' | '2' | '3' | '4' | '5';
2
+ export declare const generateStrings: <T extends string>(prefix: T) => Array<`${T}${Index}`>;
3
+ export declare const generateStringSandwich: <T extends string, U extends string>(prefix: T, postfix: U) => Array<`${T}${Index}${U}`>;
4
+ export declare const generate2DStrings: <T extends string, U extends string>(prefix: T, postfix: U) => Array<`${T}${Index}${U}${Index}`>;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ declare const iterate5: readonly ["1", "2", "3", "4", "5"];
3
+ type Iterate5 = (typeof iterate5)[number];
4
+ type ControllingPersonPrefix = `controllingPerson${Iterate5}`;
5
+ type AddressPrefix = 'accountHolder' | 'accountHolderMailing' | 'regardedOwner' | 'regardedOwnerMailing' | ControllingPersonPrefix | `${ControllingPersonPrefix}Mailing`;
6
+ export declare const getSupportedAddressFields: (prefix: AddressPrefix, isSupported: boolean) => Partial<TaxDocumentationPropertyFile>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ declare const iterate5: readonly ["1", "2", "3", "4", "5"];
3
+ type Iterate5 = (typeof iterate5)[number];
4
+ type ControllingPersonPrefix = `controllingPerson${Iterate5}`;
5
+ export declare const getSupportedControllingPersonFields: (prefix: ControllingPersonPrefix, isSupported: boolean) => Partial<TaxDocumentationPropertyFile>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { QuestionnaireProp } from 'types';
2
+ import { TaxDocumentationPropertyFile } from '../../contexts';
3
+ export declare const getSupportedFields: (questionnaire: QuestionnaireProp, treatyClaims?: boolean) => Partial<TaxDocumentationPropertyFile>;
@@ -0,0 +1,7 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ declare const iterate5: readonly ["1", "2", "3", "4", "5"];
3
+ type Iterate5 = (typeof iterate5)[number];
4
+ type ControllingPersonPrefix = `controllingPerson${Iterate5}`;
5
+ type ResidencePrefix = 'accountHolder' | ControllingPersonPrefix;
6
+ export declare const getSupportedTaxResidenceFields: (prefix: ResidencePrefix, isSupported: boolean, hasReason?: boolean) => Partial<TaxDocumentationPropertyFile>;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const getSupportedTreatyClaimFields: (prefix: "accountHolder" | "regardedOwner", isSupported: boolean) => {
2
+ [x: string]: boolean;
3
+ };
@@ -0,0 +1,4 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ type Prefix = 'accountHolderAddress' | 'accountHolderMailingAddress' | 'regardedOwnerAddress' | 'regardedOwnerMailingAddress' | 'controllingPerson1Address' | 'controllingPerson2Address' | 'controllingPerson3Address' | 'controllingPerson4Address' | 'controllingPerson5Address' | 'controllingPerson1MailingAddress' | 'controllingPerson2MailingAddress' | 'controllingPerson3MailingAddress' | 'controllingPerson4MailingAddress' | 'controllingPerson5MailingAddress';
3
+ export declare const getVisibleAddressFields: (prefix: Prefix, showFields: boolean) => Partial<TaxDocumentationPropertyFile>;
4
+ export {};
@@ -0,0 +1,3 @@
1
+ import { TaxDocumentationPropertyFile } from '../../contexts';
2
+ import { TaxDocumentation } from '../../types';
3
+ export declare const getVisibleControllingPersonFields: (fields: TaxDocumentation, isSupported: boolean) => Partial<TaxDocumentationPropertyFile>;
@@ -0,0 +1,3 @@
1
+ import { QuestionnaireProp, TaxDocumentation } from 'types';
2
+ import { TaxDocumentationPropertyFile } from '../../contexts';
3
+ export declare const getVisibleFields: (fields: TaxDocumentation | undefined, questionnaire: QuestionnaireProp, treatyClaims?: boolean) => TaxDocumentationPropertyFile;
@@ -0,0 +1,8 @@
1
+ import { TaxDocumentation } from '../../types';
2
+ declare const iterate5: readonly ["1", "2", "3", "4", "5"];
3
+ type Iterate5 = (typeof iterate5)[number];
4
+ type ControllingPersonPrefix = `controllingPerson${Iterate5}`;
5
+ export declare const getVisibleTaxResidenceFields: (prefix: "accountHolder" | ControllingPersonPrefix, fields: TaxDocumentation) => {
6
+ [x: string]: boolean;
7
+ };
8
+ export {};
@@ -1,12 +1,11 @@
1
1
  import { ClientTaxDocumentation } from '@taxbit/utilities';
2
2
  import { default as React } from 'react';
3
- import { Locale, Questionnaire } from '../../types';
4
- import { TaxbitQuestionnairePersistProps } from '../../widgets';
5
-
3
+ import { Locale, QuestionnaireProp } from '../../types';
4
+ import { TaxbitQuestionnairePersistProps } from '../TaxbitQuestionnairePersist';
6
5
  export type TaxbitQuestionnaireProps = {
7
6
  data?: ClientTaxDocumentation;
8
7
  language?: Locale;
9
- questionnaire: Questionnaire;
8
+ questionnaire: QuestionnaireProp;
10
9
  treatyClaims?: TaxbitQuestionnairePersistProps['treatyClaims'];
11
10
  onProgress?: TaxbitQuestionnairePersistProps['onProgress'];
12
11
  onSubmit?: TaxbitQuestionnairePersistProps['onSubmit'];
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { UseTaxDocumentationProps } from '../../contexts';
3
3
  import { UseTaxbitPersistProps } from './useTaxbitPersist';
4
-
5
4
  export type TaxbitQuestionnairePersistProps = UseTaxDocumentationProps & UseTaxbitPersistProps & {
6
5
  loadingComponent?: React.ReactNode;
7
6
  treatyClaims?: boolean;