@taxbit/react-sdk 2.2.0-beta.2 → 2.4.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 +44 -25
- package/dist/src/components/Section/Section.d.ts +1 -1
- package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +2 -2
- package/dist/src/contexts/QuestionnaireStep/getLocal.d.ts +3 -3
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +3 -3
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +4 -4
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +3 -1
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +10 -1
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +3 -1
- package/dist/src/hooks/useUsTinVerification/useUsTinValidation.d.ts +3 -1
- package/dist/src/i18n/json/bg.json.d.ts +5 -6
- package/dist/src/i18n/json/cs.json.d.ts +6 -7
- package/dist/src/i18n/json/da.json.d.ts +6 -7
- package/dist/src/i18n/json/de-AT.json.d.ts +1 -3
- package/dist/src/i18n/json/de.json.d.ts +5 -6
- package/dist/src/i18n/json/el-CY.json.d.ts +0 -1
- package/dist/src/i18n/json/el.json.d.ts +5 -6
- package/dist/src/i18n/json/en.json.d.ts +12 -13
- package/dist/src/i18n/json/es.json.d.ts +9 -10
- package/dist/src/i18n/json/et.json.d.ts +5 -6
- package/dist/src/i18n/json/fi.json.d.ts +5 -6
- package/dist/src/i18n/json/fr-LU.json.d.ts +0 -1
- package/dist/src/i18n/json/fr.json.d.ts +8 -9
- package/dist/src/i18n/json/ga.json.d.ts +5 -6
- package/dist/src/i18n/json/hr.json.d.ts +5 -6
- package/dist/src/i18n/json/hu.json.d.ts +6 -7
- package/dist/src/i18n/json/it.json.d.ts +5 -6
- package/dist/src/i18n/json/lt.json.d.ts +6 -7
- package/dist/src/i18n/json/lv.json.d.ts +6 -7
- package/dist/src/i18n/json/mt.json.d.ts +6 -7
- package/dist/src/i18n/json/nl.json.d.ts +6 -7
- package/dist/src/i18n/json/no.json.d.ts +5 -6
- package/dist/src/i18n/json/pl.json.d.ts +6 -7
- package/dist/src/i18n/json/pt.json.d.ts +5 -6
- package/dist/src/i18n/json/ro.json.d.ts +6 -7
- package/dist/src/i18n/json/sk.json.d.ts +7 -8
- package/dist/src/i18n/json/sl.json.d.ts +7 -8
- package/dist/src/i18n/json/sv.json.d.ts +6 -7
- package/dist/src/i18n/types/LocalizationKey.d.ts +3 -3
- package/dist/src/i18n/types/PropertyFile.d.ts +3 -3
- package/dist/src/i18n/utils/getText.d.ts +3 -3
- package/dist/src/services/api.d.ts +9 -6
- package/dist/src/services/msw.d.ts +1 -0
- package/dist/src/test/utils/helpers.d.ts +2 -0
- package/dist/src/types/TaxDocumentation.d.ts +5 -4
- package/dist/src/ui/CheckBox/CheckBox.d.ts +2 -1
- package/dist/src/ui/useAriaAttributes.d.ts +1 -0
- package/dist/src/utils/getDataFields.d.ts +489 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +2 -3
- package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +21 -6
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +1 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +3 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +1 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.WForm.test.d.ts +1 -0
- package/dist/taxbit-react-sdk.js +4655 -4640
- package/dist/taxbit-react-sdk.umd.cjs +1 -1
- package/package.json +2 -2
- package/style/basic.css +3 -0
- package/style/inline.css +3 -0
- /package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/{TaxbitWFormQuestionnaireUI.test.d.ts → TaxbitQuestionnaireUI.WForm.Summary.test.d.ts} +0 -0
- /package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/{TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts → TaxbitQuestionnaireUI.WForm.TreatyClaims.test.d.ts} +0 -0
|
@@ -48,7 +48,6 @@ declare const _default: {
|
|
|
48
48
|
"vatIsNotRequired": "Številka za VAT ni potrebna ali ni bila izdana",
|
|
49
49
|
"vatCountry": "Država članica za DDV",
|
|
50
50
|
"zip": "Poštna številka",
|
|
51
|
-
"iConfirmTheInformationIsCorrectComplete": "Potrjujem, da so podatki, navedeni tukaj, pravilni in popolni, kolikor mi je znano. Če pride do spremembe, zaradi katere bi ti podatki postali napačni ali nepopolni, se strinjam, da v 30 dneh po takšni spremembi zagotovim spremenjene podatke.",
|
|
52
51
|
"addControllingPerson": "Dodaj nadzorno osebo",
|
|
53
52
|
"removeControllingPerson": "Odstrani nadzorno osebo",
|
|
54
53
|
"otherRole": "Druga vloga",
|
|
@@ -71,13 +70,10 @@ declare const _default: {
|
|
|
71
70
|
"iAcknowledgeTheInformationMayBeProvided": "Priznavam, da se lahko informacije v tem obrazcu in informacije o imetniku računa ter katerem koli poročljivem računu poročajo davčnim organom države/jurisdikcije, kjer se ta račun vodi, in izmenjujejo z davčnimi organi druge države/jurisdikcije ali držav/jurisdikcij, kjer je imetnik računa lahko davčni rezident v skladu z medvladnimi sporazumi o izmenjavi informacij o finančnih računih.",
|
|
72
71
|
"iCertifyIAmAccountHolder": "Potrjujem, da sem imetnik računa (ali sem pooblaščen za podpis v imenu imetnika računa) za vse račune, na katere se ta obrazec nanaša.",
|
|
73
72
|
"iCertifyIAmAuthorizedToSignForAccountHolder": "Potrjujem, da sem pooblaščen za podpis v imenu imetnika računa za vse račune, na katere se ta obrazec nanaša.",
|
|
74
|
-
"iCertifyIWillNotifyPersons": "Potrjujem, da če sem posredoval informacije o kateri koli drugi osebi (kot je kontrolna oseba ali druga poročljiva oseba, na katero se ta obrazec nanaša), bom te osebe v 30 dneh po podpisu tega obrazca obvestil, da sem posredoval take informacije entiteti, kateri je ta obrazec posredovan, in da se lahko te informacije poročajo davčnim organom države/jurisdikcije, kjer se ta račun vodi, in izmenjujejo z davčnimi organi druge države/jurisdikcije ali držav/jurisdikcij, kjer je oseba lahko davčni rezident v skladu z medvladnimi sporazumi o izmenjavi informacij o finančnih računih.",
|
|
75
73
|
"iDeclareStatementsAreCorrect": "Izjavljam, da so vse izjave v tej izjavi po mojem najboljšem vedenju in prepričanju pravilne in popolne.",
|
|
76
|
-
"
|
|
77
|
-
"iWillNotifyChangeInCircumstanceForAccountHolder": "Zavezujem se, da bom entiteto, kateri je ta obrazec posredovan, v 30 dneh obvestil o kakršni koli spremembi okoliščin, ki vpliva na davčni rezidenčni status imetnika računa, navedenega zgoraj, ali ki povzroči, da so informacije tukaj nepravilne (vključno s kakršno koli spremembo informacij o kontrolnih osebah), in da bom entiteti, kateri je ta obrazec posredovan, v 90 dneh po taki spremembi okoliščin posredoval posodobljeno samoizjavo in izjavo.",
|
|
74
|
+
"iWillNotifyChangeInCircumstance": "Zavezujem se, da bom entiteto, kateri je ta obrazec posredovan, v 30 dneh obvestil o kakršni koli spremembi okoliščin, ki vpliva na davčni rezidenčni status imetnika računa, navedenega zgoraj, ali ki povzroči, da so informacije tukaj nepravilne (vključno s kakršno koli spremembo informacij o kontrolnih osebah), in da bom entiteti, kateri je ta obrazec posredovan, v 90 dneh po taki spremembi okoliščin posredoval posodobljeno samoizjavo in izjavo.",
|
|
78
75
|
"mailingAddressIsDifferent": "Poštni naslov se razlikuje od stalnega naslova",
|
|
79
76
|
"signature": "Podpis",
|
|
80
|
-
"iAcknowledgeESignIsOKForeign": "Zavedam se, da z vnosom svojega imena spodaj, skladno z zakonom o e‑podpisu<sup>1</sup>, podajam e‑podpis, ki je pravno enakovreden mojemu lastnoročnemu podpisu. Z označitvijo tega polja soglašam, da me pravno zavezujejo informacije, navedene v tem obrazcu. Če želim svoj pristanek umakniti, lahko to storim tako, da kontaktiram podporo za stranke. Nadalje razumem, da bo prenosljiva različica obrazca, ki se strinjam, da ga podpišem, na voljo na zahtevo podpori za stranke in/ali v mojem profilu računa.",
|
|
81
77
|
"iCertifyToAll": "Potrjujem vse",
|
|
82
78
|
"iHaveCapacityToSignForEntity": "Potrjujem, da imam pooblastilo za podpis v imenu zgoraj navedene entitete",
|
|
83
79
|
"iHaveCapacityToSignForIndividual": "Potrjujem, da imam pooblastilo za podpis v imenu zgoraj navedene osebe"
|
|
@@ -131,7 +127,8 @@ declare const _default: {
|
|
|
131
127
|
"controllingPerson2": "Nadzorna oseba 2",
|
|
132
128
|
"controllingPerson3": "Nadzorna oseba 3",
|
|
133
129
|
"controllingPerson4": "Nadzorna oseba 4",
|
|
134
|
-
"controllingPerson5": "Nadzorna oseba 5"
|
|
130
|
+
"controllingPerson5": "Nadzorna oseba 5",
|
|
131
|
+
"reviewAndSubmit": "Pregled in oddaja"
|
|
135
132
|
},
|
|
136
133
|
"text": {
|
|
137
134
|
"notRequired": "Ni potrebno",
|
|
@@ -139,7 +136,9 @@ declare const _default: {
|
|
|
139
136
|
"interviewIsComplete": "Vaš razgovor je končan.",
|
|
140
137
|
"retrievingInterviewStatus": "Pridobivanje stanja razgovora ...",
|
|
141
138
|
"taxDocumentationSaved": "Vaša davčna dokumentacija je shranjena",
|
|
142
|
-
"eSignActReference": "<sup>1</sup> Zakon o elektronskih podpisih v globalnem in nacionalnem gospodarstvu, 15 U.S.C. §7001 in naslednji (\"Zakon o e-podpisih\"), je bil podpisan v zakon 30. junija 2000 in določa splošno pravilo za veljavnost elektronskih zapisov in podpisov za transakcije v ali ki vplivajo na meddržavno ali tujo trgovino."
|
|
139
|
+
"eSignActReference": "<sup>1</sup> Zakon o elektronskih podpisih v globalnem in nacionalnem gospodarstvu, 15 U.S.C. §7001 in naslednji (\"Zakon o e-podpisih\"), je bil podpisan v zakon 30. junija 2000 in določa splošno pravilo za veljavnost elektronskih zapisov in podpisov za transakcije v ali ki vplivajo na meddržavno ali tujo trgovino.",
|
|
140
|
+
"iCertifyHaveCapacity": "Z klikom na Pošlji potrjujem, da sem pooblaščen za podpis. Soglašam, da me informacije v tem obrazcu pravno zavezujejo, priznavam, da lahko svojo privolitev prekličem tako, da stopim v stik s podporo strankam, in razumem, da mi je na zahtevo lahko na voljo prenosljiva različica tega obrazca.",
|
|
141
|
+
"iCertifyIsCorrect": "Z klikom na Pošlji potrjujem, da so tukaj navedeni podatki po najboljšem mojem vedenju pravilni in popolni. Če pride do spremembe, zaradi katere ti podatki postanejo nepravilni ali nepopolni, se strinjam, da bom v 30 dneh od take spremembe posredoval(-a) popravljene podatke."
|
|
143
142
|
},
|
|
144
143
|
"error": {
|
|
145
144
|
"countryMustBeAResidenceCountry": "Država mora biti država rezidence",
|
|
@@ -181,7 +180,7 @@ declare const _default: {
|
|
|
181
180
|
"accountHolderActiveNonFinancialEntityType_GOVERNMENT_ENTITY": "Vladna entiteta",
|
|
182
181
|
"INSURANCE_COMPANY": "Zavarovalnica",
|
|
183
182
|
"INVESTMENT_ENTITY": "Investicijska entiteta",
|
|
184
|
-
"entityType_TRUST": "
|
|
183
|
+
"entityType_TRUST": "Zaupniški sklad",
|
|
185
184
|
"entityType_SIMILAR_TO_TRUST": "Pravna ureditev podobna trustu",
|
|
186
185
|
"entityType_OTHER": "Druga vrsta entitete",
|
|
187
186
|
"accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION": "Javna korporacija",
|
|
@@ -50,7 +50,6 @@ declare const _default: {
|
|
|
50
50
|
"vatIsNotRequired": "VAT krävs inte eller har inte utfärdats",
|
|
51
51
|
"vatCountry": "Momsmedlemsstat",
|
|
52
52
|
"zip": "Postnummer",
|
|
53
|
-
"iConfirmTheInformationIsCorrectComplete": "Jag bekräftar att informationen som lämnas här är korrekt och fullständig, enligt min bästa kunskap. Om en ändring inträffar som gör att denna information blir felaktig eller ofullständig, samtycker jag till att lämna den reviderade informationen inom 30 dagar efter en sådan ändring.",
|
|
54
53
|
"addControllingPerson": "Lägg till kontrollerande person",
|
|
55
54
|
"removeControllingPerson": "Ta bort kontrollerande person",
|
|
56
55
|
"otherRole": "Annan roll",
|
|
@@ -73,13 +72,10 @@ declare const _default: {
|
|
|
73
72
|
"iAcknowledgeTheInformationMayBeProvided": "Jag erkänner att informationen i detta formulär och informationen om kontoinnehavaren och alla rapporterbara konton kan rapporteras till skattemyndigheterna i det land/jurisdiktion där detta konto hålls och utbytas med skattemyndigheterna i ett annat land/jurisdiktion eller länder/jurisdiktioner där kontoinnehavaren kan vara skatteresident i enlighet med mellanstatliga avtal om utbyte av information om finansiella konton.",
|
|
74
73
|
"iCertifyIAmAccountHolder": "Jag intygar att jag är kontoinnehavaren (eller är behörig att underteckna för kontoinnehavarens räkning) för alla konton som detta formulär gäller.",
|
|
75
74
|
"iCertifyIAmAuthorizedToSignForAccountHolder": "Jag intygar att jag är behörig att underteckna för kontoinnehavarens räkning för alla konton som detta formulär gäller.",
|
|
76
|
-
"iCertifyIWillNotifyPersons": "Jag intygar att om jag har lämnat information om någon annan person (såsom en kontrollerande person eller annan rapporterbar person som detta formulär gäller), kommer jag att informera dessa personer inom 30 dagar efter undertecknandet av detta formulär att jag har lämnat sådan information till den enhet som detta formulär tillhandahålls till, och att denna information kan rapporteras till skattemyndigheterna i det land/jurisdiktion där detta konto hålls och utbytas med skattemyndigheterna i ett annat land/jurisdiktion eller länder/jurisdiktioner där personen kan vara skatteresident i enlighet med mellanstatliga avtal om utbyte av information om finansiella konton.",
|
|
77
75
|
"iDeclareStatementsAreCorrect": "Jag förklarar att alla uttalanden i denna deklaration, enligt min bästa kunskap och övertygelse, är korrekta och fullständiga.",
|
|
78
|
-
"
|
|
79
|
-
"iWillNotifyChangeInCircumstanceForAccountHolder": "Jag åtar mig att informera den enhet som detta formulär tillhandahålls till inom 30 dagar om eventuella förändringar i omständigheterna som påverkar skatteresidentstatusen för kontoinnehavaren som identifieras ovan eller som gör att informationen här blir felaktig (inklusive eventuella förändringar i informationen om kontrollerande personer), och att tillhandahålla den enhet som detta formulär tillhandahålls till en uppdaterad självdeklaration och förklaring inom 90 dagar efter en sådan förändring i omständigheterna.",
|
|
76
|
+
"iWillNotifyChangeInCircumstance": "Jag åtar mig att informera den enhet som detta formulär tillhandahålls till inom 30 dagar om eventuella förändringar i omständigheterna som påverkar skatteresidentstatusen för kontoinnehavaren som identifieras ovan eller som gör att informationen här blir felaktig (inklusive eventuella förändringar i informationen om kontrollerande personer), och att tillhandahålla den enhet som detta formulär tillhandahålls till en uppdaterad självdeklaration och förklaring inom 90 dagar efter en sådan förändring i omständigheterna.",
|
|
80
77
|
"mailingAddressIsDifferent": "Postadressen är annorlunda än den permanenta adressen",
|
|
81
78
|
"signature": "Signatur",
|
|
82
|
-
"iAcknowledgeESignIsOKForeign": "Jag erkänner att genom att skriva mitt namn nedan, i enlighet med lagen om e‑signaturer<sup>1</sup>, lämnar jag en e‑underskrift som är rättsligt likvärdig med min manuella underskrift. Genom att markera denna ruta samtycker jag till att vara rättsligt bunden av den information som lämnats i detta formulär. Om jag vill återkalla mitt samtycke kan jag göra det genom att kontakta kundsupport. Jag förstår vidare att en nedladdningsbar version av formuläret som jag samtycker till att underteckna också kommer att finnas tillgänglig på begäran till kundsupport och/eller i min kontoprofil.",
|
|
83
79
|
"iCertifyToAll": "Intygar allt",
|
|
84
80
|
"iHaveCapacityToSignForEntity": "Jag intygar att jag har kapacitet att underteckna för den ovan angivna enheten",
|
|
85
81
|
"iHaveCapacityToSignForIndividual": "Jag intygar att jag har kapacitet att underteckna för den ovan angivna personen"
|
|
@@ -113,6 +109,7 @@ declare const _default: {
|
|
|
113
109
|
"accountHolderAdditionalInfo": "Skatteinformation (mer)",
|
|
114
110
|
"address": "Adress",
|
|
115
111
|
"acknowledge": "Bekräfta och underteckna",
|
|
112
|
+
"reviewAndSubmit": "Granska och skicka in",
|
|
116
113
|
"certify": "Jag intygar följande:",
|
|
117
114
|
"confirmation": "Bekräftelse",
|
|
118
115
|
"countryOfCitizenship": "Medborgarskap",
|
|
@@ -143,7 +140,9 @@ declare const _default: {
|
|
|
143
140
|
"interviewIsComplete": "Din intervju är klar.",
|
|
144
141
|
"retrievingInterviewStatus": "Hämtar intervjustatus ...",
|
|
145
142
|
"taxDocumentationSaved": "Din skattedokumentation är sparad",
|
|
146
|
-
"eSignActReference": "<sup>1</sup> Elektroniska signaturer i Global and National Commerce Act, 15 U.S.C. §7001, et seq., (\"E-sign-Act\") undertecknades i lag den 30 juni 2000 och ger en allmän regel för validering av elektroniska register och signaturer för transaktioner i eller som påverkar mellanstatlig eller utländsk handel."
|
|
143
|
+
"eSignActReference": "<sup>1</sup> Elektroniska signaturer i Global and National Commerce Act, 15 U.S.C. §7001, et seq., (\"E-sign-Act\") undertecknades i lag den 30 juni 2000 och ger en allmän regel för validering av elektroniska register och signaturer för transaktioner i eller som påverkar mellanstatlig eller utländsk handel.",
|
|
144
|
+
"iCertifyHaveCapacity": "Genom att klicka på Skicka intygar jag att jag har behörighet att underteckna. Jag samtycker till att vara rättsligt bunden av informationen i detta formulär, erkänner att jag kan återkalla mitt samtycke genom att kontakta kundsupport och förstår att en nedladdningsbar version av detta formulär kan göras tillgänglig för mig på begäran.",
|
|
145
|
+
"iCertifyIsCorrect": "Genom att klicka på Skicka intygar jag att jag har behörighet att underteckna. Jag samtycker till att vara rättsligt bunden av informationen i detta formulär, erkänner att jag kan återkalla mitt samtycke genom att kontakta kundsupport och förstår att en nedladdningsbar version av detta formulär kan göras tillgänglig för mig på begäran."
|
|
147
146
|
},
|
|
148
147
|
"error": {
|
|
149
148
|
"countryMustBeAResidenceCountry": "Landet måste vara ett skattehemvistland",
|
|
@@ -185,7 +184,7 @@ declare const _default: {
|
|
|
185
184
|
"accountHolderActiveNonFinancialEntityType_GOVERNMENT_ENTITY": "Statlig enhet",
|
|
186
185
|
"INSURANCE_COMPANY": "Försäkringsbolag",
|
|
187
186
|
"INVESTMENT_ENTITY": "Investeringsenhet",
|
|
188
|
-
"entityType_TRUST": "
|
|
187
|
+
"entityType_TRUST": "Förtroendefond",
|
|
189
188
|
"entityType_SIMILAR_TO_TRUST": "Juridiskt arrangemang liknande en trust",
|
|
190
189
|
"entityType_OTHER": "Annan typ av enhet",
|
|
191
190
|
"accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION": "Offentligt bolag",
|
|
@@ -3,11 +3,11 @@ export type BadgeKey = 'validTin' | 'invalidTin' | 'pendingTin';
|
|
|
3
3
|
export type ErrorKey = 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeABNFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeInVatinFormat' | 'mustBeValidBirthDate' | 'mustBeAtLeast18' | 'mustMatchName' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'residencesMustIncludeBusinessRegistrationCountry' | 'tooLong' | 'tooShort' | 'usTinDoesNotMatchName' | 'vatinMustNotMatchResidencyTin';
|
|
4
4
|
export type SubOptionKey = 'accountHolderUsAccountType_SOLE_PROPRIETOR' | 'accountHolderUsAccountType_SM_LLC' | 'accountHolderUsAccountType_DISREGARDED_ENTITY' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'accountHolderSelfCertificationAccountType_FINANCIAL_INSTITUTION' | 'accountHolderSelfCertificationAccountType_ACTIVE_NON_FINANCIAL_ENTITY' | 'accountHolderSelfCertificationAccountType_PASSIVE_NON_FINANCIAL_ENTITY' | 'accountHolderAccountOwnerType_ENTITY' | 'accountHolderAccountOwnerType_INTERMEDIARY' | 'regardedOwnerAccountOwnerType_ENTITY' | 'regardedOwnerAccountOwnerType_INTERMEDIARY';
|
|
5
5
|
export type OptionKey = TreatyClaimOption | 'accountHolderUsPerson_yes' | 'accountHolderUsPerson_no' | 'usTrustEstateEin_yes' | 'usTrustEstateEin_no' | 'usSoleProprietorEin_yes' | 'usSoleProprietorEin_no' | 'regardedOwnerUsPerson_yes' | 'regardedOwnerUsPerson_no' | 'smllcOwnerUsPerson_yes' | 'smllcOwnerUsPerson_no' | 'smllcElection_yes' | 'smllcElection_no' | 'isIndividual_yes' | 'isIndividual_no' | 'investmentEntityManaged_yes' | 'investmentEntityManaged_no' | 'assumesChapters3And4Responsibility_yes' | 'assumesChapters3And4Responsibility_no' | 'assumes1099Responsibility_yes' | 'assumes1099Responsibility_no' | 'usPersonElection_yes' | 'usPersonElection_no' | 'providesAdditionalDocumentation_yes' | 'providesAdditionalDocumentation_no' | 'no' | 'yes' | 'no_not_applicable' | 'ACTIVE_NON_FINANCIAL_ENTITY' | 'CENTRAL_BANK_OF_ISSUE' | 'COMPLEX_TRUST' | 'CORPORATION' | 'CUSTODIAL_INSTITUTION' | 'C_CORPORATION' | 'DEPOSITORY_INSTITUTION' | 'DISREGARDED_ENTITY' | 'ENTITY' | 'entityType_TRUST' | 'entityType_SIMILAR_TO_TRUST' | 'entityType_OTHER' | 'ESTATE' | 'FINANCIAL_INSTITUTION' | 'FOREIGN_GOVERNMENT_CONTROLLED_ENTITY' | 'FOREIGN_GOVERNMENT_INTEGRAL_PART' | 'accountHolderActiveNonFinancialEntityType_GOVERNMENT_ENTITY' | 'GRANTOR_TRUST' | 'INDIVIDUAL' | 'INTERMEDIARY' | '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' | 'accountHolderActiveNonFinancialEntityType_INTERNATIONAL_ORGANIZATION' | 'INTERNATIONAL_ORGANIZATION' | 'INVESTMENT_ENTITY' | 'INSURANCE_COMPANY' | 'LLC' | 'OTHER' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'PARTNERSHIP' | 'PASSIVE_NON_FINANCIAL_ENTITY' | 'PRIVATE_FOUNDATION' | 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'signatureCapacity_EXECUTOR' | 'signatureCapacity_OFFICER' | 'signatureCapacity_OTHER_CAPACITY' | 'SIMPLE_TRUST' | 'SM_LLC' | 'SOLE_PROPRIETOR' | 'S_CORPORATION' | 'TAX_EXEMPT_ORGANIZATION' | 'TRUST' | 'TRUST_ESTATE' | 'controllingPersonRole_SETTLOR' | 'controllingPersonRole_TRUSTEE' | 'controllingPersonRole_PROTECTOR' | 'controllingPersonRole_BENEFICIARY' | 'controllingPersonRole_OTHER' | 'controllingPersonRole_SETTLOR_EQUIVALENT' | 'controllingPersonRole_TRUSTEE_EQUIVALENT' | 'controllingPersonRole_PROTECTOR_EQUIVALENT' | 'controllingPersonRole_BENEFICIARY_EQUIVALENT' | 'controllingPersonRole_OTHER_EQUIVALENT' | 'controllingPersonRole_OWNER' | 'controllingPersonRole_OTHER_MEANS' | 'controllingPersonRole_SENIOR_MANAGING_OFFICIAL' | 'missingTinNotRequiredReason_NOT_ISSUED' | 'missingTinNotRequiredReason_NOT_REQUIRED' | 'missingTinNotRequiredReason_OTHER';
|
|
6
|
-
export type PromptKey = TreatyClaimPrompt | 'accountHolderAccountOwnerType' | 'accountHolderIntermediaryAccountType' | 'accountHolderEntityAccountType' | 'activeNonFinancialEntityType' | 'addAdditionalResidence' | 'addControllingPerson' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'dbaName' | 'emailAddress' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'foreignAccountType' | 'financialInstitutionType' | 'foreignTin' | 'foreignTinIsNotRequired' | 'investmentEntityManaged' | 'isIndividual' | '
|
|
6
|
+
export type PromptKey = TreatyClaimPrompt | 'accountHolderAccountOwnerType' | 'accountHolderIntermediaryAccountType' | 'accountHolderEntityAccountType' | 'activeNonFinancialEntityType' | 'addAdditionalResidence' | 'addControllingPerson' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationCountry' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'dbaName' | 'emailAddress' | 'exemptPayeeCode' | 'exemptFatcaCode' | 'foreignAccountType' | 'financialInstitutionType' | 'foreignTin' | 'foreignTinIsNotRequired' | 'investmentEntityManaged' | 'isIndividual' | 'iWillResubmitIfIncorrect' | 'iAmACitizenOfTheUs' | 'iAmExemptFromFatcaReporting' | 'iAmNotSubjectToBackupWithholding' | 'iAuthorizeWithholdingAgent' | 'iConfirmIncomeIsNonUs' | 'iConfirmTheBeneficialOwnerIsExempt' | 'iConfirmTheEntityIsNotAUsPerson' | 'iConfirmTheEntityIsTheBeneficialOwner' | 'iConfirmTheIndividualIsNotAUsPerson' | 'iConfirmTheIndividualIsTheBeneficialOwner' | 'iConfirmTheIndividualIsResidentOfTreatyCountry' | 'iConfirmTheTaxIdIsCorrect' | 'iDeclareStatementsAreCorrect' | 'iUnderstandTheInformationIsCovered' | 'iAcknowledgeTheInformationMayBeProvided' | 'iCertifyIAmAccountHolder' | 'iCertifyIAmAuthorizedToSignForAccountHolder' | 'iWillNotifyChangeInCircumstance' | 'mailingAddress' | 'mailingAddressIsDifferent' | 'month' | 'name' | 'nameOfDisregardedEntity' | 'nameOfEntity' | 'nameOfCCorporation' | 'nameOfCorporation' | 'nameOfIndividual' | 'nameOfIndividualSoleProprietor' | 'nameOfLlc' | 'nameOfOrganization' | 'nameOfPartnership' | 'nameOfSCorporation' | 'nameOfSmllc' | 'nameOfSmllcOwner' | 'nameOfSoleProprietor' | 'nameOfTrustEstate' | 'nameOfComplexTrust' | 'nameOfTaxExemptOrganization' | 'nameOfPrivateFoundation' | 'nameOfInternationalOrganization' | 'nameOfCentralBankOfIssue' | 'nameOfForeignGovernmentControlledEntity' | 'nameOfForeignGovernmentIntegralPart' | 'nameOfEstate' | 'nameOfQualifiedIntermediary' | 'nameOfNonqualifiedIntermediary' | 'nameOfTerritoryFinancialInstitution' | 'nameOfUsBranch' | 'nameOfWithholdingForeignPartnership' | 'nameOfWithholdingForeignTrust' | 'nameOfNonwithholdingForeignPartnership' | 'nameOfNonwithholdingForeignSimpleTrust' | 'nameOfNonwithholdingForeignGrantorTrust' | 'otherRole' | 'otherEquivalentRole' | 'ownershipPercentage' | 'managedEntityType' | 'passiveEntityType' | 'phoneNumber' | 'phoneNumberCode' | 'phoneNumberNumber' | 'province' | 'referenceNumbers' | 'regardedOwnerUsPerson' | 'regardedOwnerAccountType' | 'regardedOwnerEntityAccountType' | 'regardedOwnerIntermediaryAccountType' | 'relatedCorporation' | 'removeResidence' | 'removeControllingPerson' | 'role' | 'securitiesMarket' | 'signature' | 'signatureCapacity' | 'signatureCapacityOther' | 'smllcElection' | 'smllcOwnerAccountType' | 'smllcOwnerUsPerson' | 'countyRegion' | 'stateProvince' | 'street' | 'street2' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'taxIdNumberIsNotRequiredReason' | 'taxIdNumberIsNotRequiredReasonOther' | 'tin' | 'tinAuAbn' | 'tinUkCrn' | 'tinUkNino' | 'type' | 'usAccountType' | 'usLlcClassification' | 'usOtherClassification' | 'usPerson' | 'usEin' | 'usSoleProprietorEin' | 'usSsn' | 'usTin' | 'usTinIsValid' | 'usTinMatchVerification' | 'usTrustEstateEin' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'vatCountry' | 'year' | 'zip' | 'isQiCertified' | 'assumesChapters3And4Responsibility' | 'assumes1099Responsibility' | 'usPersonElection' | 'providesAdditionalDocumentation' | 'assumesChapters3And4ResponsibilityCertified' | 'assumes1099ResponsibilityCertified' | 'notAssume1099ResponsibilityCertified' | 'meetsQiRegulationsRequirementsCertified' | 'obtainsDocumentationCertified' | 'notActingAsQiCertified' | 'transmitsNqiDocumentationCertified' | 'representsWithholdingStatementsCertified' | 'isFinancialInstitutionCertified' | 'tfiUsPersonElectionCertified' | 'transmitsTfiDocumentationCertified' | 'usbPaymentsCertified' | 'usbUsPersonElectionCertified' | 'transmitsUsbDocumentationCertified' | 'isCompliantCertified' | 'entityPaymentsCertified' | 'providesWithholdingStatementCertified';
|
|
7
7
|
export type SubPromptKey = TreatyClaimSubPrompt | 'accountHolderTaxResidences' | 'isQiCertified' | 'smllcElection' | 'iAmNotSubjectToBackupWithholding' | 'iConfirmIncomeIsNonUs' | 'isIndividual' | 'transmitsTfiDocumentationCertified' | 'transmitsUsbDocumentationCertified' | 'entityPaymentsCertified' | 'enterAbnWithResidency' | 'financialInstitutionType' | 'vatIdentificationNumber' | 'placeOfBirth' | 'referenceNumbers' | 'relatedCorporation' | 'role' | 'securitiesMarket' | 'signature' | 'signatureCapacityOther' | 'streetIsPermanent' | 'usPerson' | 'usTin' | 'usTinMatchVerification';
|
|
8
|
-
export type TitleKey = 'accountHolder' | 'accountHolderCertifications' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountTypeCertifications' | 'accountHolderUsTinValidation' | 'address' | 'additionalConditions' | '
|
|
8
|
+
export type TitleKey = 'accountHolder' | 'accountHolderCertifications' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderAdditionalInfo' | 'accountHolderTreatyClaims' | 'accountTypeCertifications' | 'accountHolderUsTinValidation' | 'address' | 'additionalConditions' | 'carfClassificationDetails' | 'certificationStatements' | 'certify' | 'confirmation' | 'controllingPersonDetails' | 'controllingPersons' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'exemptions' | 'mailingAddress' | 'primaryAddress' | 'permanentAddress' | 'placeOfBirth' | 'regardedOwner' | 'regardedOwnerCertifications' | 'regardedOwnerClassification' | 'regardedOwnerContactInformation' | 'regardedOwnerTaxInformation' | 'regardedOwnerTreatyClaims' | 'regardedOwnerUsTinValidation' | 'reviewAndSubmit' | 'signature' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5';
|
|
9
9
|
export type SubTitleKey = 'controllingPersonDetails' | 'taxResidences' | 'permanentAddress' | 'taxInformationTreatyClaims';
|
|
10
|
-
export type TextKey = '
|
|
10
|
+
export type TextKey = 'subjectToBackupWithholding' | 'irsRequiresBackupWithholdingConsent' | 'iCertifyIsCorrectAndHaveCapacity' | 'iCertifyHaveCapacity' | 'iCertifyIsCorrect' | 'notRequired' | 'notRequiredOrNotIssued' | 'interviewIsComplete' | 'penaltyOfPerjury' | 'penaltiesOfPerjury' | 'penaltiesOfPerjuryIAcknowledge' | 'retrievingInterviewStatus' | 'taxDocumentationSaved';
|
|
11
11
|
type TreatyClaimPrompt = 'eligibleForTreatyClaim' | 'iCertifyBeneficialOwnerIsResident' | 'iCertifyBeneficialOwnerMeetsRequirements' | 'treatyCountry' | 'typeOfIncome' | 'withholdingRateArticleParagraph' | 'iMeetRequiredTermsOfTreaty' | 'limitationOnBenefitsProvisions' | 'limitationOnBenefitsSpecifyArticleParagraph';
|
|
12
12
|
type TreatyClaimSubPrompt = 'eligibleForTreatyClaim' | 'withholdingRateArticleParagraph' | 'iMeetRequiredTermsOfTreaty' | 'limitationOnBenefitsProvisions';
|
|
13
13
|
type TreatyClaimOption = 'eligibleForTreatyClaim_yes' | 'eligibleForTreatyClaim_no' | 'BUSINESS_PROFITS' | 'ROYALTIES_OTHER' | 'SERVICES' | 'GOVERNMENT' | 'TAX_EXEMPT_PENSION' | 'OTHER_TAX_EXEMPT_ORGANIZATION' | 'PUBLICLY_TRADED_CORPORATION' | 'SUBSIDIARY' | 'COMPANY_MEETS_EROSION_TEST' | 'COMPANY_MEETS_DERIVATIVE_TEST' | 'COMPANY_MEETS_BUSINESS_TEST' | 'FAVORABLE_DETERMINATION' | 'NO_LOB_ARTICLE' | 'OTHER_ARTICLE_PARAGRAPH';
|
|
@@ -34,11 +34,11 @@ export type PropertyFile = {
|
|
|
34
34
|
};
|
|
35
35
|
export type ForeignPropertyFile = {
|
|
36
36
|
button: PropertyFile['button'];
|
|
37
|
-
prompt: Pick<PropertyFile['prompt'], 'addAdditionalResidence' | 'addControllingPerson' | 'foreignAccountType' | 'financialInstitutionType' | 'activeNonFinancialEntityType' | 'passiveEntityType' | 'managedEntityType' | 'investmentEntityManaged' | 'iUnderstandTheInformationIsCovered' | 'iAcknowledgeTheInformationMayBeProvided' | '
|
|
37
|
+
prompt: Pick<PropertyFile['prompt'], 'addAdditionalResidence' | 'addControllingPerson' | 'foreignAccountType' | 'financialInstitutionType' | 'activeNonFinancialEntityType' | 'passiveEntityType' | 'managedEntityType' | 'investmentEntityManaged' | 'iUnderstandTheInformationIsCovered' | 'iAcknowledgeTheInformationMayBeProvided' | 'iCertifyIAmAccountHolder' | 'iCertifyIAmAuthorizedToSignForAccountHolder' | 'iDeclareStatementsAreCorrect' | 'iWillNotifyChangeInCircumstance' | 'otherRole' | 'otherEquivalentRole' | 'ownershipPercentage' | 'relatedCorporation' | 'removeControllingPerson' | 'role' | 'securitiesMarket' | 'taxIdNumberIsNotRequiredReason' | 'taxIdNumberIsNotRequiredReasonOther' | 'address' | 'mailingAddressIsDifferent' | 'businessRegistrationCountry' | 'businessRegistrationNumber' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'emailAddress' | 'isIndividual' | 'month' | 'name' | 'nameOfEntity' | 'nameOfIndividual' | 'phoneNumber' | 'phoneNumberCode' | 'phoneNumberNumber' | 'province' | 'removeResidence' | 'countyRegion' | 'stateProvince' | 'street' | 'street2' | 'signature' | 'signatureCapacity' | 'signatureCapacityOther' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkCrn' | 'tinUkNino' | 'type' | 'usTin' | 'vatCountry' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'year' | 'zip'>;
|
|
38
38
|
subPrompt: Pick<PropertyFile['subPrompt'], 'financialInstitutionType' | 'isIndividual' | 'placeOfBirth' | 'relatedCorporation' | 'role' | 'securitiesMarket' | 'signatureCapacityOther' | 'streetIsPermanent' | 'vatIdentificationNumber'>;
|
|
39
39
|
subTitle: Pick<PropertyFile['subTitle'], 'taxResidences' | 'controllingPersonDetails' | 'permanentAddress'>;
|
|
40
|
-
title: Pick<PropertyFile['title'], '
|
|
41
|
-
text: Pick<PropertyFile['text'], '
|
|
40
|
+
title: Pick<PropertyFile['title'], 'certify' | 'carfClassificationDetails' | 'controllingPersonDetails' | 'controllingPersons' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5' | 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderAdditionalInfo' | 'address' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'placeOfBirth' | 'mailingAddress' | 'permanentAddress' | 'primaryAddress' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5'>;
|
|
41
|
+
text: Pick<PropertyFile['text'], 'interviewIsComplete' | 'notRequired' | 'notRequiredOrNotIssued' | 'retrievingInterviewStatus' | 'taxDocumentationSaved' | 'iCertifyIsCorrect' | 'iCertifyHaveCapacity'>;
|
|
42
42
|
error: Pick<PropertyFile['error'], 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeABNFormat' | 'mustBeAtLeast18' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeInVatinFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeValidBirthDate' | 'mustNotMatchVatin' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'residencesMustIncludeBusinessRegistrationCountry' | 'tooLong' | 'tooShort' | 'vatinMustNotMatchResidencyTin'>;
|
|
43
43
|
option: Pick<PropertyFile['option'], 'no' | 'yes' | 'isIndividual_yes' | 'isIndividual_no' | 'investmentEntityManaged_yes' | 'investmentEntityManaged_no' | 'ACTIVE_NON_FINANCIAL_ENTITY' | 'PASSIVE_NON_FINANCIAL_ENTITY' | 'CUSTODIAL_INSTITUTION' | 'accountHolderActiveNonFinancialEntityType_GOVERNMENT_ENTITY' | 'INSURANCE_COMPANY' | 'INVESTMENT_ENTITY' | 'entityType_TRUST' | 'entityType_SIMILAR_TO_TRUST' | 'entityType_OTHER' | 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'accountHolderActiveNonFinancialEntityType_INTERNATIONAL_ORGANIZATION' | 'signatureCapacity_EXECUTOR' | 'signatureCapacity_OFFICER' | 'signatureCapacity_OTHER_CAPACITY' | 'DEPOSITORY_INSTITUTION' | 'FINANCIAL_INSTITUTION' | 'controllingPersonRole_SETTLOR' | 'controllingPersonRole_TRUSTEE' | 'controllingPersonRole_PROTECTOR' | 'controllingPersonRole_BENEFICIARY' | 'controllingPersonRole_OTHER' | 'controllingPersonRole_SETTLOR_EQUIVALENT' | 'controllingPersonRole_TRUSTEE_EQUIVALENT' | 'controllingPersonRole_PROTECTOR_EQUIVALENT' | 'controllingPersonRole_BENEFICIARY_EQUIVALENT' | 'controllingPersonRole_OTHER_EQUIVALENT' | 'controllingPersonRole_OWNER' | 'controllingPersonRole_OTHER_MEANS' | 'controllingPersonRole_SENIOR_MANAGING_OFFICIAL' | 'missingTinNotRequiredReason_NOT_ISSUED' | 'missingTinNotRequiredReason_NOT_REQUIRED' | 'missingTinNotRequiredReason_OTHER'>;
|
|
44
44
|
subOption: Pick<PropertyFile['subOption'], 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'accountHolderSelfCertificationAccountType_FINANCIAL_INSTITUTION' | 'accountHolderSelfCertificationAccountType_ACTIVE_NON_FINANCIAL_ENTITY' | 'accountHolderSelfCertificationAccountType_PASSIVE_NON_FINANCIAL_ENTITY'>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Locale, TaxDocumentation } from '../../types';
|
|
2
|
-
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey
|
|
2
|
+
import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubOptionKey, SubPromptKey } from '../types';
|
|
3
3
|
|
|
4
4
|
export declare const getPromptText: (key: PromptKey, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
5
5
|
export declare const getSubPromptText: (key: SubPromptKey, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
6
6
|
export declare const getErrorText: (key: ErrorKey, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
7
7
|
export declare const getBadgeText: (key: string, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
8
|
-
export declare const getTextText: (key:
|
|
8
|
+
export declare const getTextText: (key: string, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
9
9
|
export declare const getTitleText: (key: string, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
10
|
-
export declare const getSubTitleText: (key:
|
|
10
|
+
export declare const getSubTitleText: (key: string, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
11
11
|
export declare const getButtonText: (key: ButtonKey, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
12
12
|
export declare const getOptionText: (key: OptionKey | undefined, data: TaxDocumentation, locale: Locale | undefined) => string;
|
|
13
13
|
export declare const getSubOptionText: (key: SubOptionKey | undefined, data: TaxDocumentation, locale: Locale | undefined) => string | undefined;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { QuestionnaireProp } from 'types';
|
|
2
2
|
|
|
3
|
+
type Environment = 'PRODUCTION' | 'STAGING';
|
|
4
|
+
type Region = 'US' | 'EU' | string;
|
|
3
5
|
export declare const TAX_DOCUMENTATION_SUBMISSIONS_PATH = "tax-documentation/submissions";
|
|
4
6
|
export declare const TAX_DOCUMENTATION_STATUS_PATH = "tax-documentation-status";
|
|
5
7
|
export declare const TAX_DOCUMENT_PATH = "tax-documentation/document";
|
|
6
8
|
export declare const US_TIN_VALIDATION_PATH = "embedded-validations/us-tin";
|
|
7
9
|
export declare const api: {
|
|
8
10
|
taxDocumentationSubmissions: {
|
|
9
|
-
post: (environment:
|
|
10
|
-
get: (environment:
|
|
11
|
+
post: (environment: Environment, region: Region | undefined, proxyDomain: string | undefined) => string;
|
|
12
|
+
get: (environment: Environment, questionnaire: QuestionnaireProp, region: Region | undefined, proxyDomain: string | undefined) => string;
|
|
11
13
|
};
|
|
12
14
|
taxDocumentationStatus: {
|
|
13
|
-
get: (environment:
|
|
15
|
+
get: (environment: Environment, region: Region | undefined, proxyDomain: string | undefined) => string;
|
|
14
16
|
};
|
|
15
17
|
taxDocument: {
|
|
16
|
-
post: (environment:
|
|
17
|
-
get: (documentId: string, environment:
|
|
18
|
+
post: (environment: Environment, region: Region | undefined, proxyDomain: string | undefined) => string;
|
|
19
|
+
get: (documentId: string, environment: Environment, region?: Region, proxyDomain?: string) => string;
|
|
18
20
|
};
|
|
19
21
|
usTinValidation: {
|
|
20
|
-
post: (environment:
|
|
22
|
+
post: (environment: Environment, region: Region | undefined, proxyDomain: string | undefined) => string;
|
|
21
23
|
};
|
|
22
24
|
};
|
|
25
|
+
export {};
|
|
@@ -17,6 +17,7 @@ export declare const mockApi: {
|
|
|
17
17
|
get: {
|
|
18
18
|
success: (options?: ResponseOptions) => import('msw').HttpHandler;
|
|
19
19
|
unauthorized: (options?: ResponseOptions) => import('msw').HttpHandler;
|
|
20
|
+
forbidden: (options?: ResponseOptions) => import('msw').HttpHandler;
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
taxDocument: {
|
|
@@ -13,6 +13,8 @@ export declare const expectSection: (title: string) => void;
|
|
|
13
13
|
export declare const expectNoSection: (title: string) => void;
|
|
14
14
|
export declare const expectDisabledInput: (ariaLabel: string) => void;
|
|
15
15
|
export declare const expectInputValue: (ariaLabel: string, value: string) => void;
|
|
16
|
+
export declare const expectChecked: (label: string) => void;
|
|
17
|
+
export declare const expectUnchecked: (ariaLabel: string) => void;
|
|
16
18
|
export declare const clickLabel: (ariaLabel: string) => void;
|
|
17
19
|
export declare const clickShow: (text: string) => void;
|
|
18
20
|
export declare const changeInput: (ariaLabel: string, value: string) => void;
|
|
@@ -208,12 +208,10 @@ export type RegardedOwnerTaxData = {
|
|
|
208
208
|
export type SummaryData = {
|
|
209
209
|
exemptFatcaCode?: string;
|
|
210
210
|
exemptPayeeCode?: string;
|
|
211
|
-
iAcknowledgeESignIsOk?: Yes;
|
|
212
211
|
iAmACitizenOfTheUs?: Yes;
|
|
213
212
|
iAmExemptFromFatcaReporting?: Yes;
|
|
214
213
|
iAmNotSubjectToBackupWithholding?: Yes;
|
|
215
214
|
iAuthorizeWithholdingAgent?: Yes;
|
|
216
|
-
iCertifyToAll?: Yes;
|
|
217
215
|
iConfirmIncomeIsNonUs?: Yes;
|
|
218
216
|
iConfirmTheBeneficialOwnerIsExempt?: Yes;
|
|
219
217
|
iConfirmNotAUsPerson?: Yes;
|
|
@@ -226,7 +224,6 @@ export type SummaryData = {
|
|
|
226
224
|
iUnderstandTheInformationIsCovered?: Yes;
|
|
227
225
|
iAcknowledgeTheInformationMayBeProvided?: Yes;
|
|
228
226
|
iCertifyIAmAccountHolder?: Yes;
|
|
229
|
-
iCertifyIWillNotifyPersons?: Yes;
|
|
230
227
|
iDeclareStatementsAreCorrect?: Yes;
|
|
231
228
|
iWillNotifyChangeInCircumstance?: Yes;
|
|
232
229
|
signature?: string;
|
|
@@ -241,6 +238,10 @@ export type CalculatedData = {
|
|
|
241
238
|
regardedOwnerAddress?: string;
|
|
242
239
|
regardedOwnerMailingAddress?: string;
|
|
243
240
|
};
|
|
244
|
-
export type
|
|
241
|
+
export type InformationalText = {
|
|
242
|
+
subjectToBackupWithholding?: undefined;
|
|
243
|
+
irsRequiresBackupWithholdingConsent?: undefined;
|
|
244
|
+
};
|
|
245
|
+
export type TaxDocumentation = AccountHolderContactData & AccountHolderCertifications & AccountHolderTaxData & AccountHolderClassificationData & RegardedOwnerCertifications & RegardedOwnerContactData & RegardedOwnerClassificationData & RegardedOwnerTaxData & SummaryData & CalculatedData & AccountHolderTreatyClaimData & RegardedOwnerTreatyClaimData & ControllingPersonClassificationData & InformationalText;
|
|
245
246
|
export type TaxDocumentationKey = keyof TaxDocumentation;
|
|
246
247
|
export {};
|
|
@@ -9,5 +9,6 @@ export type CheckBoxProps = {
|
|
|
9
9
|
onClick?: (val: Yes | undefined) => void;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
indicateRequired?: boolean;
|
|
12
|
+
defaultChecked?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, indicateRequired, }: CheckBoxProps) => React.JSX.Element;
|
|
14
|
+
export declare const CheckBox: ({ label, subLabel, name, onClick, disabled, indicateRequired, defaultChecked, }: CheckBoxProps) => React.JSX.Element;
|