@taxbit/react-sdk 0.3.0 → 0.3.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.
- package/README.md +36 -7
- package/dist/index.d.ts +1 -1
- package/dist/src/contexts/FormUI/shiftResidence.d.ts +2 -0
- package/dist/{contexts → src/contexts}/FormUI/useFormUI.d.ts +0 -1
- package/dist/{contexts → src/contexts}/FormUI/useFormUIContext.d.ts +0 -2
- package/dist/{utils → src/utils}/getFieldsState.d.ts +1 -0
- package/dist/{validations → src/validations}/index.d.ts +0 -1
- package/dist/src/wizard/TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts +0 -0
- package/dist/src/wizard/TaxBitFormUI/steps.d.ts +9 -0
- package/dist/taxbit-react-sdk.js +1092 -1082
- package/dist/taxbit-react-sdk.umd.cjs +10 -10
- package/package.json +1 -1
- package/dist/validations/getSubmittableFields.d.ts +0 -3
- package/dist/wizard/TaxBitFormUI/steps.d.ts +0 -8
- /package/dist/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/{components → src/components}/Address/Address.d.ts +0 -0
- /package/dist/{components → src/components}/Address/index.d.ts +0 -0
- /package/dist/{components → src/components}/ErrorMessage/ErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ErrorMessage/index.d.ts +0 -0
- /package/dist/{components → src/components}/Form/Form.d.ts +0 -0
- /package/dist/{components → src/components}/Form/index.d.ts +0 -0
- /package/dist/{components → src/components}/InputStatus/InputStatus.d.ts +0 -0
- /package/dist/{components → src/components}/InputStatus/index.d.ts +0 -0
- /package/dist/{components → src/components}/Notification/Notification.d.ts +0 -0
- /package/dist/{components → src/components}/Notification/index.d.ts +0 -0
- /package/dist/{components → src/components}/Row/Row.d.ts +0 -0
- /package/dist/{components → src/components}/Row/index.d.ts +0 -0
- /package/dist/{components → src/components}/Section/Section.d.ts +0 -0
- /package/dist/{components → src/components}/Section/index.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/FormUI/FormUIProvider.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/FormUI/index.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/TaxDocumentation/TaxBitFormProvider.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/TaxDocumentation/index.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/TaxDocumentation/useTaxDocumentation.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/TaxDocumentation/useTaxDocumentationContext.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/createCtx.d.ts +0 -0
- /package/dist/{contexts → src/contexts}/index.d.ts +0 -0
- /package/dist/{entry → src/entry}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useTaxBit/__tests__/clientTaxDocumentation.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useTaxBit/__tests__/serverTaxDocumentation.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useTaxBit/index.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useTaxBit/useTaxBit.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/i18n.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/index.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/bg-bg.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/cs-cz.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/da-dk.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/de-at.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/de-de.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/el-cy.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/el-gr.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/en-gb.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/en-us.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/es-es.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/et-ee.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/fi-fi.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/fr-fr.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/fr-lu.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/ga-ie.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/hr-hr.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/hu-hu.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/index.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/it-it.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/lt-lt.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/lv-lv.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/mt-mt.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/nl-be.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/nl-nl.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/no-no.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/pl-pl.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/pt-pt.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/ro-ro.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/sk-sk.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/sl-si.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/locales/sv-se.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/types/LocalizationKey.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/types/PropertyFile.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/types/index.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/utils/getText.d.ts +0 -0
- /package/dist/{i18n → src/i18n}/utils/index.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/caProvinceOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/countryOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/dayOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/fatcaCodeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/foreignAccountHolderAccountTypeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/foreignOtherClassificationOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/foreignRegardedOwnerAccountTypeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/foreignTrustClassificationOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/index.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/localeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/monthOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/payeeCodeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/toOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/usAccountHolderAccountTypeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/usLlcAccountTypeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/usRegardedOwnerAccountTypeOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/usStateOptions.d.ts +0 -0
- /package/dist/{lookups → src/lookups}/yearOptions.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{services → src/services}/api.d.ts +0 -0
- /package/dist/{test → src/test}/Wrapper.d.ts +0 -0
- /package/dist/{test → src/test}/getWrapper.d.ts +0 -0
- /package/dist/{test → src/test}/index.d.ts +0 -0
- /package/dist/{types → src/types}/AccountType.d.ts +0 -0
- /package/dist/{types → src/types}/CaProvinceCode.d.ts +0 -0
- /package/dist/{types → src/types}/CamelCaseKeys.d.ts +0 -0
- /package/dist/{types → src/types}/CountryCode.d.ts +0 -0
- /package/dist/{types → src/types}/Locale.d.ts +0 -0
- /package/dist/{types → src/types}/MonthCode.d.ts +0 -0
- /package/dist/{types → src/types}/TaxDocumentation.d.ts +0 -0
- /package/dist/{types → src/types}/TaxForm.d.ts +0 -0
- /package/dist/{types → src/types}/UsStateCode.d.ts +0 -0
- /package/dist/{types → src/types}/Utilities.d.ts +0 -0
- /package/dist/{types → src/types}/Yes.d.ts +0 -0
- /package/dist/{types → src/types}/YesNo.d.ts +0 -0
- /package/dist/{types → src/types}/client/ClientTaxDocumentation.d.ts +0 -0
- /package/dist/{types → src/types}/client/ClientTaxDocumentationStatus.d.ts +0 -0
- /package/dist/{types → src/types}/client/index.d.ts +0 -0
- /package/dist/{types → src/types}/index.d.ts +0 -0
- /package/dist/{types → src/types}/server/ComprehensiveTaxDocumentation.d.ts +0 -0
- /package/dist/{types → src/types}/server/TaxDocumentationStatus.d.ts +0 -0
- /package/dist/{types → src/types}/server/enums.d.ts +0 -0
- /package/dist/{types → src/types}/server/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/ActionButton/ActionButton.d.ts +0 -0
- /package/dist/{ui → src/ui}/ActionButton/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/Actions/Actions.d.ts +0 -0
- /package/dist/{ui → src/ui}/Actions/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/CheckBox/CheckBox.d.ts +0 -0
- /package/dist/{ui → src/ui}/CheckBox/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/DateOfBirthInput/DateOfBirthInput.d.ts +0 -0
- /package/dist/{ui → src/ui}/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +0 -0
- /package/dist/{ui → src/ui}/DateOfBirthInput/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/DateOfBirthInput/useDateOfBirthInput.d.ts +0 -0
- /package/dist/{ui → src/ui}/HideShowButton/HideShowButton.d.ts +0 -0
- /package/dist/{ui → src/ui}/HideShowButton/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/MaskedContent/MaskedContent.d.ts +0 -0
- /package/dist/{ui → src/ui}/MaskedContent/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/MaskedInput/MaskedInput.d.ts +0 -0
- /package/dist/{ui → src/ui}/MaskedInput/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/Password/Password.d.ts +0 -0
- /package/dist/{ui → src/ui}/Password/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/RadioButtons/RadioButtons.d.ts +0 -0
- /package/dist/{ui → src/ui}/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
- /package/dist/{ui → src/ui}/RadioButtons/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/Select/Select.d.ts +0 -0
- /package/dist/{ui → src/ui}/Select/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/TextInput/TextInput.d.ts +0 -0
- /package/dist/{ui → src/ui}/TextInput/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/ToggleButton/ToggleButton.d.ts +0 -0
- /package/dist/{ui → src/ui}/ToggleButton/index.d.ts +0 -0
- /package/dist/{ui → src/ui}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/camelCaseKeys.d.ts +0 -0
- /package/dist/{utils → src/utils}/cx.d.ts +0 -0
- /package/dist/{utils → src/utils}/date.d.ts +0 -0
- /package/dist/{utils → src/utils}/getHintKeyMap.d.ts +0 -0
- /package/dist/{utils → src/utils}/getMonthlyDayCount.d.ts +0 -0
- /package/dist/{utils → src/utils}/getPromptKeyMap.d.ts +0 -0
- /package/dist/{utils → src/utils}/getVerboseDate.d.ts +0 -0
- /package/dist/{utils → src/utils}/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/isBlank.d.ts +0 -0
- /package/dist/{utils → src/utils}/kebabCase.d.ts +0 -0
- /package/dist/{utils → src/utils}/snakeCaseKeys.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/convertYesNoToBoolean.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/transformForClient.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/transformForClientAccoutHolder.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/transformForClientAddress.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/transformForClientRegardedOwner.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformForClient/transformForClientTaxResidenceFields.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/getForeignAccountType.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/getForeignOtherClassification.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/getForeignTrustClassification.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/getLLCClassification.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/getUsAccountType.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/transformInbound/transformInbound.d.ts +0 -0
- /package/dist/{validations → src/validations}/getInvalidFields.d.ts +0 -0
- /package/dist/{validations → src/validations}/getNotifiedFields.d.ts +0 -0
- /package/dist/{validations → src/validations}/getRequiredFields.d.ts +0 -0
- /package/dist/{validations → src/validations}/getSupportedFields.d.ts +0 -0
- /package/dist/{validations → src/validations}/getVisibleFields.d.ts +0 -0
- /package/dist/{validations → src/validations}/invalidFieldRules.d.ts +0 -0
- /package/dist/{validations → src/validations}/requiredFieldRules.d.ts +0 -0
- /package/dist/{widgets → src/widgets}/TaxBitForm/TaxBitDAC7Form.d.ts +0 -0
- /package/dist/{widgets → src/widgets}/TaxBitForm/TaxBitForm.d.ts +0 -0
- /package/dist/{widgets → src/widgets}/TaxBitForm/index.d.ts +0 -0
- /package/dist/{widgets → src/widgets}/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/AddressInput/AddressInput.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/AddressInput/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/LanguageSelector/LanguageSelector.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/LanguageSelector/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/PlaceOfBirthInput/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/ResidenceInput/ResidenceInput.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/ResidenceInput/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/CheckBoxRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/DateOfBirthRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/ErrorRow/ErrorRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/ErrorRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/MaskedInputRow/MaskedInputRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/MaskedInputRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/RadioButtonRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/SelectRow/SelectRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/SelectRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/TextInputRow/TextInputRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/TextInputRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/ToggleButtonRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/VisibleRow/VisibleRow.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/VisibleRow/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/RowInput/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/Exemptions/Exemptions.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/Exemptions/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/Recap.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/Summary.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/TaxBitFormUI.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/TaxBitFormUI/index.d.ts +0 -0
- /package/dist/{wizard → src/wizard}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@ npm install @taxbit/react-sdk
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
import '@taxbit/react-sdk/style/inline.css'; // other options include 'basic.css' and 'minimal.css'
|
|
13
|
-
import { TaxBitDAC7Form } from '@taxbit/react-sdk';
|
|
13
|
+
import { TaxBitDAC7Form, ClientTaxDocumentation } from '@taxbit/react-sdk';
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
### Data
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
exampleData = {
|
|
19
|
+
exampleData: ClientTaxDocumentation = {
|
|
20
20
|
accountHolder: {
|
|
21
21
|
name: 'John Smith',
|
|
22
22
|
tin: '456456456',
|
|
@@ -53,9 +53,10 @@ exampleData = {
|
|
|
53
53
|
vatinNotRequired: true,
|
|
54
54
|
financialAccountIdentifier: '123123123',
|
|
55
55
|
financialAccountName: 'John Smith',
|
|
56
|
+
businessRegistrationNumber: '123123123',
|
|
57
|
+
businessRegistrationCountry: 'GR',
|
|
56
58
|
isIndividual: true,
|
|
57
59
|
isEuResident: true,
|
|
58
|
-
isUsPerson: false,
|
|
59
60
|
},
|
|
60
61
|
};
|
|
61
62
|
```
|
|
@@ -84,10 +85,12 @@ Which is just a shortcut for this component...
|
|
|
84
85
|
There is a more basic component that simply shows the TaxBit UI and does not interact with the TaxBit server. It can be used like this...
|
|
85
86
|
|
|
86
87
|
```typescript jsx
|
|
88
|
+
import { TaxBitDAC7FormUI, ClientTaxDocumentation } from '@taxbit/react-sdk';
|
|
89
|
+
|
|
87
90
|
<TaxBitDAC7FormUI
|
|
88
91
|
data={exampleData}
|
|
89
|
-
onSubmit={(data:
|
|
90
|
-
|
|
92
|
+
onSubmit={(data: ClientTaxDocumentation) => alert(JSON.stringify(data))}
|
|
93
|
+
/>;
|
|
91
94
|
```
|
|
92
95
|
|
|
93
96
|
### Bearer Token
|
|
@@ -130,6 +133,32 @@ This can also be initially set to any one of the following:
|
|
|
130
133
|
- sl-si
|
|
131
134
|
- sv-se
|
|
132
135
|
|
|
136
|
+
### Status
|
|
137
|
+
|
|
138
|
+
The `useTaxBit` hook will return a `status` object that can be used to determine the status of the user's tax documentation. The `status` object will have the following shape:
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
{
|
|
142
|
+
submission_status: string;
|
|
143
|
+
DAC7_interview: {
|
|
144
|
+
data_collection_status: string;
|
|
145
|
+
expiration_date: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
an example is below.
|
|
151
|
+
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"submission_status": "SUBMITTED",
|
|
155
|
+
"DAC7_interview": {
|
|
156
|
+
"data_collection_status": "COMPLETE",
|
|
157
|
+
"expiration_date": "2026-11-20T00:00:00.000Z"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
133
162
|
### Staging
|
|
134
163
|
|
|
135
164
|
This can be set to `true` or `false`. Passing `staging` in the component is the same as passing `staging={true}`.
|
|
@@ -143,7 +172,7 @@ Classnames are namespaced with "taxbit-" to reduce the chance of conflict.
|
|
|
143
172
|
|
|
144
173
|
### Callbacks
|
|
145
174
|
|
|
146
|
-
The TaxBit React SDK provides callbacks for the following events:
|
|
175
|
+
The TaxBit React SDK provides callbacks for the following events on the `TaxBitDAC7Form` component:
|
|
147
176
|
|
|
148
177
|
- `onSubmit` - called when the user clicks the submit button
|
|
149
178
|
- `onSuccess` - called after the server responds with a successful submission
|
|
@@ -152,4 +181,4 @@ These callbacks can be passed in to the Component and used to trigger other acti
|
|
|
152
181
|
|
|
153
182
|
### Types
|
|
154
183
|
|
|
155
|
-
The TaxBit React SDK provides a type for the status of the most resent tax documentation submitted by the user, referred to as `ClientTaxDocumentationStatus`. The data
|
|
184
|
+
The TaxBit React SDK provides a type for the status of the most resent tax documentation submitted by the user, referred to as `ClientTaxDocumentationStatus`. The data passed to the component and returned to the callback is typed as `ClientTaxDocumentation`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './entry/index'
|
|
1
|
+
export * from './src/entry/index'
|
|
@@ -39,7 +39,6 @@ export declare const useFormUI: () => {
|
|
|
39
39
|
notifiedFields: import("../../validations/getNotifiedFields.ts").Notifications;
|
|
40
40
|
invalidFields: TaxDocumentationErrorFile;
|
|
41
41
|
requiredFields: TaxDocumentationPropertyFile;
|
|
42
|
-
submittableFields: TaxDocumentation;
|
|
43
42
|
visibleFields: TaxDocumentationPropertyFile;
|
|
44
43
|
hideField: (key: TaxDocumentationKey) => void;
|
|
45
44
|
showField: (key: TaxDocumentationKey) => void;
|
|
@@ -30,7 +30,6 @@ export declare const useFormUIContext: () => {
|
|
|
30
30
|
notifiedFields: import("../../validations/getNotifiedFields").Notifications;
|
|
31
31
|
invalidFields: import("./useFormUI").TaxDocumentationErrorFile;
|
|
32
32
|
requiredFields: import("./useFormUI").TaxDocumentationPropertyFile;
|
|
33
|
-
submittableFields: import("../../types").TaxDocumentation;
|
|
34
33
|
visibleFields: import("./useFormUI").TaxDocumentationPropertyFile;
|
|
35
34
|
hideField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | "accountHolderTaxResidences") => void;
|
|
36
35
|
showField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | "accountHolderTaxResidences") => void;
|
|
@@ -65,7 +64,6 @@ export declare const useFormUIContext: () => {
|
|
|
65
64
|
notifiedFields: import("../../validations/getNotifiedFields").Notifications;
|
|
66
65
|
invalidFields: import("./useFormUI").TaxDocumentationErrorFile;
|
|
67
66
|
requiredFields: import("./useFormUI").TaxDocumentationPropertyFile;
|
|
68
|
-
submittableFields: import("../../types").TaxDocumentation;
|
|
69
67
|
visibleFields: import("./useFormUI").TaxDocumentationPropertyFile;
|
|
70
68
|
hideField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | "accountHolderTaxResidences") => void;
|
|
71
69
|
showField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | "accountHolderTaxResidences") => void;
|
|
@@ -3,6 +3,7 @@ import { TaxForm } from '../types';
|
|
|
3
3
|
export declare const getFieldsState: (fields: TaxDocumentation, supportedForms?: TaxForm[]) => {
|
|
4
4
|
accountHolderIsDisregarded: boolean;
|
|
5
5
|
hasNoEUTaxId: boolean;
|
|
6
|
+
hasTaxResidence: boolean;
|
|
6
7
|
isDac7: boolean;
|
|
7
8
|
isW9: boolean;
|
|
8
9
|
isW8: boolean;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AccountHolderClassification';
|
|
2
|
+
export * from './AccountHolderContact';
|
|
3
|
+
export * from './AccountHolderTax';
|
|
4
|
+
export * from './AccountHolderTaxClarification';
|
|
5
|
+
export * from './Exemptions';
|
|
6
|
+
export * from './RegardedOwnerClassification';
|
|
7
|
+
export * from './RegardedOwnerContact';
|
|
8
|
+
export * from './RegardedOwnerTax';
|
|
9
|
+
export * from './Summary';
|