@adyen/kyc-components 3.34.0 → 3.35.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/dist/es/adyen-kyc-components.es.js +1303 -1040
- package/dist/es/hide-CWI5yHxd.js +9 -0
- package/dist/es/show-Cm_JGm0K.js +8 -0
- package/dist/style.css +46 -28
- package/dist/types/components/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankVerification/types.d.ts +1 -9
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +7 -19
- package/dist/types/components/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/BusinessDetails/types.d.ts +1 -1
- package/dist/types/components/Company/types.d.ts +1 -1
- package/dist/types/components/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/CompanyRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/CompanyType/types.d.ts +1 -1
- package/dist/types/components/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Dropins/BusinessDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
- package/dist/types/components/Dropins/RoleAndTypeDropin/components/formatRoleAndEntityTypeSummary.d.ts +5 -0
- package/dist/types/components/Dropins/types.d.ts +2 -1
- package/dist/types/components/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/FinancialInformation/types.d.ts +2 -1
- package/dist/types/components/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/IdVerification/types.d.ts +3 -3
- package/dist/types/components/IdVerificationMethod/types.d.ts +3 -3
- package/dist/types/components/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/component/IndividualComponent.d.ts +1 -2
- package/dist/types/components/Individual/types.d.ts +1 -1
- package/dist/types/components/PayoutAccount/types.d.ts +4 -3
- package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +1 -4
- package/dist/types/components/PayoutDetails/rules.d.ts +1 -0
- package/dist/types/components/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts +2 -1
- package/dist/types/components/PayoutVerificationMethod/component/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +16 -3
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +13 -4
- package/dist/types/components/PersonalDetails/component/IdentityComponent/types.d.ts +1 -1
- package/dist/types/components/PersonalDetails/types.d.ts +3 -4
- package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
- package/dist/types/components/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/SoleProp/component/SolePropComponent.d.ts +8 -0
- package/dist/types/components/SoleProp/types.d.ts +3 -1
- package/dist/types/components/Trust/types.d.ts +1 -1
- package/dist/types/components/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/embedded-ui/EmbeddedStatus/EmbeddedStatus.d.ts +4 -4
- package/dist/types/components/internal/Address/types.d.ts +1 -1
- package/dist/types/components/internal/Alert/components/VerificationErrorAlert.d.ts +0 -1
- package/dist/types/components/internal/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/internal/BankCity/types.d.ts +1 -1
- package/dist/types/components/internal/BankCode/types.d.ts +1 -1
- package/dist/types/components/internal/BankName/types.d.ts +1 -1
- package/dist/types/components/internal/BranchCode/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessNameField/types.d.ts +1 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +1 -1
- package/dist/types/components/internal/CountryField/types.d.ts +1 -5
- package/dist/types/components/internal/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/internal/Currency/types.d.ts +1 -1
- package/dist/types/components/internal/DBANameField/types.d.ts +1 -1
- package/dist/types/components/internal/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/internal/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +4 -5
- package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -1
- package/dist/types/components/internal/FormFields/utils.d.ts +1 -2
- package/dist/types/components/internal/Iban/types.d.ts +1 -1
- package/dist/types/components/internal/LegalFormField/LegalFormField.d.ts +1 -2
- package/dist/types/components/internal/LegalFormField/types.d.ts +3 -2
- package/dist/types/components/internal/NaceCodeField/NaceCodeField.d.ts +1 -2
- package/dist/types/components/internal/NaceCodeField/types.d.ts +3 -2
- package/dist/types/components/internal/Name/types.d.ts +1 -1
- package/dist/types/components/internal/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/internal/PhoneInput/types.d.ts +1 -1
- package/dist/types/components/internal/StateField/types.d.ts +1 -1
- package/dist/types/components/internal/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/internal/Summary/Summary.d.ts +1 -2
- package/dist/types/components/internal/Summary/summaryItem.d.ts +11 -0
- package/dist/types/components/internal/Summary/types.d.ts +5 -2
- package/dist/types/components/internal/Svg/svgs.d.ts +2 -0
- package/dist/types/components/internal/SwiftCode/types.d.ts +1 -1
- package/dist/types/components/internal/TaxId/types.d.ts +1 -1
- package/dist/types/core/Context/ExperimentContext/types.d.ts +3 -1
- package/dist/types/core/Services/componentApi/get-bankVerification-vendor.d.ts +2 -1
- package/dist/types/core/hooks/useBusinessData/constants.d.ts +0 -2
- package/dist/types/core/models/api/legal-arrangement.d.ts +2 -1
- package/dist/types/core/models/company.d.ts +0 -3
- package/dist/types/core/models/country-config.d.ts +1 -1
- package/dist/types/core/models/errors/error-message.d.ts +0 -5
- package/dist/types/core/models/errors/maintenance-mode-error.d.ts +0 -6
- package/dist/types/core/models/identity.d.ts +6 -0
- package/dist/types/core/models/province-code.d.ts +2 -1
- package/dist/types/core/process-field-configurations.d.ts +1 -1
- package/dist/types/utils/entity-association-util.d.ts +1 -8
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/get-props.d.ts +1 -1
- package/dist/types/utils/isEmpty.d.ts +1 -1
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/perState.d.ts +0 -3
- package/dist/types/utils/validation/ValidationResult.d.ts +0 -2
- package/dist/types/utils/validation/types.d.ts +2 -16
- package/package.json +1 -1
- package/dist/types/components/internal/BankAccountNumber/index.d.ts +0 -1
- package/dist/types/components/internal/BankCity/index.d.ts +0 -1
- package/dist/types/components/internal/BankCode/index.d.ts +0 -1
- package/dist/types/components/internal/BankName/index.d.ts +0 -1
- package/dist/types/components/internal/BranchCode/index.d.ts +0 -1
- package/dist/types/components/internal/BusinessRegistrationNumber/index.d.ts +0 -1
- package/dist/types/components/internal/Iban/index.d.ts +0 -1
- package/dist/types/components/internal/Name/index.d.ts +0 -1
- package/dist/types/components/internal/SwiftCode/index.d.ts +0 -1
- package/dist/types/core/Services/componentApi/index.d.ts +0 -19
- package/dist/types/core/Services/kycExternalApi/index.d.ts +0 -6
- package/dist/types/core/hooks/useForm/index.d.ts +0 -3
- package/dist/types/utils/regex/index.d.ts +0 -7
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsxs, jsx } from "preact/compat/jsx-runtime";
|
|
2
|
+
const SvgHide = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", role: "img", ...props, children: [
|
|
3
|
+
/* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M2.99035 14.0608L14.051 3.00011L12.9903 1.93945L1.92969 13.0001L2.99035 14.0608Z" }),
|
|
4
|
+
/* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M13.9404 5.23L12.8704 6.3C13.4704 6.97 13.9004 7.62 14.1304 8C13.4704 9.07 11.2504 12.25 8.00039 12.25C7.67039 12.25 7.34039 12.22 7.03039 12.14L5.80039 13.37C6.48039 13.61 7.21039 13.75 8.00039 13.75C12.7425 13.75 15.4838 8.69421 15.6649 8.36011C15.6671 8.35603 15.6689 8.35265 15.6704 8.35L15.8504 8L15.6704 7.65C15.6204 7.55 15.0204 6.43 13.9404 5.23Z" }),
|
|
5
|
+
/* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M8.96039 3.85C8.65039 3.78 8.33039 3.75 8.00039 3.75C4.75039 3.75 2.53039 6.93 1.87039 8C2.10039 8.38 2.53039 9.02 3.12039 9.69L2.06039 10.75C0.98039 9.56 0.380391 8.45 0.330391 8.35L0.150391 8L0.330391 7.65C0.331838 7.64735 0.333668 7.64397 0.33588 7.63989C0.517034 7.30578 3.25829 2.25 8.00039 2.25C8.79039 2.25 9.52039 2.39 10.1904 2.62L8.96039 3.85Z" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
SvgHide as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsxs, jsx } from "preact/compat/jsx-runtime";
|
|
2
|
+
const SvgShow = (props) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", role: "img", ...props, children: [
|
|
3
|
+
/* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" }),
|
|
4
|
+
/* @__PURE__ */ jsx("path", { fill: "#00112C", d: "M7.99964 2.25C5.50387 2.25 3.57073 3.66588 2.3086 4.9806C1.6704 5.64539 1.18078 6.30745 0.850599 6.80272C0.685043 7.05106 0.558349 7.2593 0.471981 7.40748C0.428769 7.48162 0.395568 7.54087 0.372564 7.58275C0.36106 7.60369 0.352097 7.6203 0.345701 7.63227L0.338032 7.64672L0.335646 7.65126L0.334488 7.65348L0.154297 8L0.334225 8.34601L0.999638 8C0.334225 8.34601 0.334814 8.34715 0.334814 8.34715L0.335646 8.34874L0.338032 8.35328L0.345701 8.36773C0.352097 8.3797 0.36106 8.39631 0.372564 8.41725C0.395568 8.45913 0.428769 8.51838 0.471981 8.59252C0.558349 8.7407 0.685043 8.94894 0.850599 9.19728C1.18078 9.69255 1.6704 10.3546 2.3086 11.0194C3.57073 12.3341 5.50387 13.75 7.99964 13.75C10.4954 13.75 12.4285 12.3341 13.6907 11.0194C14.3289 10.3546 14.8185 9.69255 15.1487 9.19728C15.3142 8.94894 15.4409 8.7407 15.5273 8.59252C15.5705 8.51838 15.6037 8.45913 15.6267 8.41725C15.6382 8.39631 15.6472 8.3797 15.6536 8.36773L15.6612 8.35328L15.6636 8.34874L15.6648 8.34652L15.845 8L15.6651 7.65399L14.9996 8C15.6651 7.65399 15.6645 7.65285 15.6645 7.65285L15.6636 7.65126L15.6612 7.64672L15.6536 7.63227C15.6472 7.6203 15.6382 7.60369 15.6267 7.58275C15.6037 7.54087 15.5705 7.48162 15.5273 7.40748C15.4409 7.2593 15.3142 7.05106 15.1487 6.80272C14.8185 6.30745 14.3289 5.64539 13.6907 4.9806C12.4285 3.66588 10.4954 2.25 7.99964 2.25ZM14.9996 8L15.6648 8.34652C15.6648 8.34652 15.6651 8.34601 14.9996 8ZM0.999638 8L0.334488 7.65348C0.334488 7.65348 0.334225 7.65399 0.999638 8ZM2.09867 8.36522C2.00649 8.22694 1.92852 8.10363 1.86519 8C1.92852 7.89637 2.00649 7.77306 2.09867 7.63478C2.39349 7.19255 2.82887 6.60461 3.39068 6.0194C4.52855 4.83412 6.09541 3.75 7.99964 3.75C9.90387 3.75 11.4707 4.83412 12.6086 6.0194C13.1704 6.60461 13.6058 7.19255 13.9006 7.63478C13.9928 7.77306 14.0708 7.89637 14.1341 8C14.0708 8.10363 13.9928 8.22694 13.9006 8.36522C13.6058 8.80745 13.1704 9.39539 12.6086 9.9806C11.4707 11.1659 9.90387 12.25 7.99964 12.25C6.09541 12.25 4.52855 11.1659 3.39068 9.9806C2.82887 9.39539 2.39349 8.80745 2.09867 8.36522Z" })
|
|
5
|
+
] });
|
|
6
|
+
export {
|
|
7
|
+
SvgShow as default
|
|
8
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -979,9 +979,10 @@ button[disabled]:hover {
|
|
|
979
979
|
color: var(--adyen-sdk-color-label-on-background-success-weak, #067934);
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
.adyen-kyc-tag--
|
|
983
|
-
|
|
984
|
-
|
|
982
|
+
.adyen-kyc-tag--large {
|
|
983
|
+
font-size: var(--adyen-sdk-text-body-font-size, 14px);
|
|
984
|
+
font-weight: var(--adyen-sdk-text-body-font-weight, 400);
|
|
985
|
+
line-height: var(--adyen-sdk-text-body-line-height, 20px);
|
|
985
986
|
}/* #region Borders */
|
|
986
987
|
/* #endregion */
|
|
987
988
|
/* #region Z-index */
|
|
@@ -2051,24 +2052,6 @@ fieldset {
|
|
|
2051
2052
|
}
|
|
2052
2053
|
.adyen-kyc-bank-verification-container__fixed .adyen-kyc-bank-verification-widget-container {
|
|
2053
2054
|
flex: 1;
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
.adyen-kyc-bank-verification-success {
|
|
2057
|
-
align-items: center;
|
|
2058
|
-
background: var(--adyen-sdk-color-background-success-weak, #edfaf3);
|
|
2059
|
-
border-radius: var(--adyen-sdk-border-radius-s, 4px);
|
|
2060
|
-
color: var(--adyen-sdk-color-label-success, #07893c);
|
|
2061
|
-
display: flex;
|
|
2062
|
-
font-size: var(--adyen-sdk-text-body-font-size, 14px);
|
|
2063
|
-
padding: var(--adyen-sdk-spacer-090, 24px) var(--adyen-sdk-spacer-090, 24px);
|
|
2064
|
-
}
|
|
2065
|
-
.adyen-kyc-bank-verification-success__checkmark-icon {
|
|
2066
|
-
display: flex;
|
|
2067
|
-
font-size: var(--adyen-sdk-text-title-font-size, 16px);
|
|
2068
|
-
font-family: var(--adyen-sdk-text-title-font-family, 'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
|
|
2069
|
-
font-weight: var(--adyen-sdk-text-title-font-weight, 600);
|
|
2070
|
-
line-height: var(--adyen-sdk-text-title-line-height, 26px);
|
|
2071
|
-
margin-right: var(--adyen-sdk-spacer-070, 16px);
|
|
2072
2055
|
}/* #region Borders */
|
|
2073
2056
|
/* #endregion */
|
|
2074
2057
|
/* #region Z-index */
|
|
@@ -2345,8 +2328,9 @@ fieldset {
|
|
|
2345
2328
|
opacity: 1;
|
|
2346
2329
|
}
|
|
2347
2330
|
}.adyen-kyc-prefer-instant-verification-method {
|
|
2348
|
-
display:
|
|
2349
|
-
|
|
2331
|
+
display: flex;
|
|
2332
|
+
justify-content: center;
|
|
2333
|
+
flex-direction: column;
|
|
2350
2334
|
}
|
|
2351
2335
|
.adyen-kyc-prefer-instant-verification-method-card {
|
|
2352
2336
|
display: flex;
|
|
@@ -2364,10 +2348,11 @@ fieldset {
|
|
|
2364
2348
|
.adyen-kyc-prefer-instant-verification-method-instant-button svg {
|
|
2365
2349
|
height: 1.5rem;
|
|
2366
2350
|
}
|
|
2367
|
-
.adyen-kyc-prefer-instant-verification-method-
|
|
2368
|
-
margin-top: var(--adyen-sdk-spacer-
|
|
2351
|
+
.adyen-kyc-prefer-instant-verification-method-actions {
|
|
2352
|
+
margin-top: var(--adyen-sdk-spacer-080, 20px);
|
|
2353
|
+
text-align: center;
|
|
2369
2354
|
}
|
|
2370
|
-
.adyen-kyc-prefer-instant-verification-method-manual-button-
|
|
2355
|
+
.adyen-kyc-prefer-instant-verification-method-manual-button-darker {
|
|
2371
2356
|
color: var(--adyen-sdk-color-label-secondary, #5c687c);
|
|
2372
2357
|
}.adyen-kyc-individual .adyen-kyc-form {
|
|
2373
2358
|
margin-bottom: var(--adyen-sdk-spacer-070, 16px);
|
|
@@ -3753,6 +3738,10 @@ fieldset {
|
|
|
3753
3738
|
--adv-accordion-header-color: var(--adyen-sdk-color-label-primary, #00112c);
|
|
3754
3739
|
--adv-text-font-family: var(--adyen-sdk-text-body-font-family, 'Adyen Variable', Roboto, Oxygen, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
|
|
3755
3740
|
--adv-background-color: var(--adyen-sdk-color-background-primary, #ffffff);
|
|
3741
|
+
--adv-accordion-content-padding: 0;
|
|
3742
|
+
}.adyen-kyc-settlor-exemption-reasons-list {
|
|
3743
|
+
list-style-position: inside;
|
|
3744
|
+
padding: 0;
|
|
3756
3745
|
}.adyen-kyc-signed-alert:last-of-type {
|
|
3757
3746
|
margin-top: var(--adyen-sdk-spacer-070, 16px);
|
|
3758
3747
|
}/* #region Borders */
|
|
@@ -3799,6 +3788,10 @@ fieldset {
|
|
|
3799
3788
|
background-color: var(--adyen-sdk-color-background-secondary, #f7f7f8);
|
|
3800
3789
|
transition: background-color 0.2s;
|
|
3801
3790
|
}
|
|
3791
|
+
.adyen-kyc-embedded-status:hover:not(.adyen-kyc-embedded-status-loading) .adyen-kyc-embedded-status-action-indicator {
|
|
3792
|
+
background-color: var(--adyen-sdk-color-background-secondary, #f7f7f8);
|
|
3793
|
+
color: var(--adyen-sdk-color-label-secondary, #5c687c);
|
|
3794
|
+
}
|
|
3802
3795
|
|
|
3803
3796
|
.adyen-kyc-embedded-status-avatar {
|
|
3804
3797
|
display: flex;
|
|
@@ -3811,6 +3804,13 @@ fieldset {
|
|
|
3811
3804
|
background-color: var(--adyen-sdk-color-background-inverse-primary, #00112c);
|
|
3812
3805
|
}
|
|
3813
3806
|
|
|
3807
|
+
.adyen-kyc-embedded-status-action-indicator {
|
|
3808
|
+
border: var(--adyen-sdk-border-width-s, 1px) solid var(--adyen-sdk-color-outline-primary, #dbdee2);
|
|
3809
|
+
border-radius: var(--adyen-sdk-border-radius-m, 8px);
|
|
3810
|
+
background-color: var(--adyen-sdk-color-background-primary, #ffffff);
|
|
3811
|
+
padding: var(--adyen-sdk-spacer-010, 2px) var(--adyen-sdk-spacer-050, 10px);
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
3814
|
.adyen-kyc-embedded-status-info {
|
|
3815
3815
|
display: flex;
|
|
3816
3816
|
flex-direction: column;
|
|
@@ -4690,16 +4690,34 @@ fieldset {
|
|
|
4690
4690
|
margin: 1em;
|
|
4691
4691
|
}
|
|
4692
4692
|
|
|
4693
|
+
.adyen-kyc-debug-modal__footer {
|
|
4694
|
+
display: flex;
|
|
4695
|
+
align-items: center;
|
|
4696
|
+
justify-content: space-between;
|
|
4697
|
+
}
|
|
4698
|
+
.adyen-kyc-debug-modal__footer--copy-status {
|
|
4699
|
+
margin-left: 1em;
|
|
4700
|
+
color: var(--adyen-sdk-color-background-success-strong, #07893c);
|
|
4701
|
+
outline: 1px solid var(--adyen-sdk-color-background-success-strong, #07893c);
|
|
4702
|
+
background-color: var(--adyen-sdk-color-background-success-weak, #edfaf3);
|
|
4703
|
+
border-radius: 5px;
|
|
4704
|
+
padding: 0.5em;
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
.adyen-kyc-debug-modal__table-key {
|
|
4708
|
+
margin-right: 1em;
|
|
4709
|
+
}
|
|
4710
|
+
|
|
4693
4711
|
.adyen-kyc-debug-modal__content {
|
|
4694
4712
|
display: flex;
|
|
4695
4713
|
flex-direction: column;
|
|
4696
4714
|
gap: 24px;
|
|
4697
|
-
margin: 1em;
|
|
4715
|
+
margin: 0 1em;
|
|
4698
4716
|
}
|
|
4699
4717
|
|
|
4700
4718
|
.adyen-kyc-debug-modal__meta {
|
|
4701
4719
|
display: flex;
|
|
4702
4720
|
flex-direction: column;
|
|
4703
4721
|
gap: 4px;
|
|
4704
|
-
margin: 1em;
|
|
4722
|
+
margin: 0 1em;
|
|
4705
4723
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
3
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { BankVerificationErrorResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -33,14 +33,6 @@ export interface PayoutAccountVerificationProps extends BaseInnerFormProps<Accou
|
|
|
33
33
|
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
34
34
|
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
35
35
|
}
|
|
36
|
-
export interface InstantBankVerificationProps {
|
|
37
|
-
provider: BankVerificationVendor;
|
|
38
|
-
retrieveBankAccountInfo: (info: AccountVerificationResponse) => void;
|
|
39
|
-
setBankVerificationError: (error: InstantVerificationErrorNotification | null) => void;
|
|
40
|
-
onBack?(): void;
|
|
41
|
-
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
42
|
-
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
43
|
-
}
|
|
44
36
|
export type CountryBankVerificationVendors = Partial<Record<CountryCode, string>>;
|
|
45
37
|
export interface BankVerificationVendor {
|
|
46
38
|
name: string;
|
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
import './BankVerificationWidget.scss';
|
|
2
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
3
|
import type { BankVerificationErrorResponse } from '../../../../../core/models/api/trusted-transferInstrument';
|
|
3
4
|
import type { PayoutDetailsProps } from '../../../../PayoutDetails/types';
|
|
4
|
-
import type { AccountVerificationResponse } from '../../../types';
|
|
5
|
-
import type { AccountVerificationCallbackErrorObject } from '../iframeWidget';
|
|
6
|
-
type SuccessPayload = {
|
|
7
|
-
action: 'verification_success';
|
|
8
|
-
result: {
|
|
9
|
-
accounts: AccountVerificationResponse[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
type ExceptionPayload = {
|
|
13
|
-
action: 'handle_verification_exception';
|
|
14
|
-
err: Error | AccountVerificationCallbackErrorObject | undefined;
|
|
15
|
-
};
|
|
16
|
-
type RetryPayload = {
|
|
17
|
-
action: 'retry_verification';
|
|
18
|
-
};
|
|
19
|
-
export type VerificationWidgetCallback = (payload: SuccessPayload | ExceptionPayload | RetryPayload) => void;
|
|
5
|
+
import type { AccountVerificationResponse, InstantVerificationErrorNotification } from '../../../types';
|
|
20
6
|
export type BankVerificationWidgetProps = {
|
|
21
7
|
url: string;
|
|
22
8
|
vendor: string;
|
|
23
|
-
|
|
9
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
10
|
+
setVerificationComplete: Dispatch<StateUpdater<boolean>>;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
retrieveBankAccountInfo: (res: AccountVerificationResponse) => void;
|
|
24
13
|
createTrustedTransferInstrument: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
25
14
|
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
26
15
|
};
|
|
27
|
-
export declare function BankVerificationWidget({ url, vendor,
|
|
28
|
-
export default BankVerificationWidget;
|
|
16
|
+
export declare function BankVerificationWidget({ url, vendor, setBankVerificationError, setVerificationComplete, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, handleBankVerificationError, }: BankVerificationWidgetProps): import("preact").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
3
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
4
4
|
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
5
5
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
6
6
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
2
|
import type { HookStatus } from '../../core/hooks/types';
|
|
3
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
3
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
4
4
|
import type { CompanyDatasetResponse, CompanySearchResult } from '../../core/models/api/company-search';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
6
6
|
import type { FormModel } from '../../core/models/form';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
3
3
|
import type { LegalEntityType } from '../../core/models/api/legal-entity-type';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { CountryFieldSchema } from '../internal/CountryField/types';
|
|
4
4
|
import type { CountryOfGoverningLawFieldSchema } from '../internal/CountryOfGoverningLawField/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
import type { BusinessRegistrationNumberFieldSchema } from '../internal/BusinessRegistrationNumberField/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyDatasetResponse } from '../../core/models/api/company-search';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
export interface CompanyTypeSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
export interface ContactDetailsSchema {
|
|
4
4
|
phoneNumber?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentChild } from 'preact';
|
|
2
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { CompanyTypesValue } from '../../core/models/api/company-types-value';
|
|
4
4
|
import type { DocumentType } from '../../core/models/api/document';
|
|
5
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OuterFormLabels } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { OuterFormLabels } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { ParseConfiguration } from '../../../core/hooks/useScenarioConfiguration';
|
|
3
3
|
import type { FormModelWithValidity } from '../../../core/models/form';
|
|
4
4
|
import type Language from '../../../language/Language';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../core/hooks/useForm/types';
|
|
2
2
|
import type { CapabilityName } from '../../../core/models/api/capability';
|
|
3
3
|
import type { ExistingLegalEntity, LegalEntity } from '../../../core/models/api/legal-entity';
|
|
4
4
|
import type { CountryCode } from '../../../core/models/country-code';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type Language from '../../../../language/Language';
|
|
2
|
+
import type { SummaryOf } from '../../../internal/Summary/types';
|
|
3
|
+
import type { TrustMember } from '../../../TrustMembers/types';
|
|
4
|
+
import type { TrustRoleAndEntityTypeSchema } from '../../../TrustRoleAndEntityType/types';
|
|
5
|
+
export declare const formatRoleAndEntityTypeSummary: (data: TrustMember, i18n: Language, isOrganizationSettlorWithExemptionEnabled: boolean | undefined) => SummaryOf<TrustRoleAndEntityTypeSchema>;
|
|
@@ -13,6 +13,7 @@ import type { CreateTrustedTransferInstrumentResponse } from '../../core/models/
|
|
|
13
13
|
import type { OnboardingLinkConfig, OnboardingLinkResponse, OnboardingStatusResponse } from '../../core/models/api/view-verification-status';
|
|
14
14
|
import type { CountryCode } from '../../core/models/country-code';
|
|
15
15
|
import type { BaseTrackingPayload } from '../../core/utils';
|
|
16
|
+
import type Language from '../../language/Language';
|
|
16
17
|
import type { TranslationKey } from '../../language/types';
|
|
17
18
|
import type { TaskTypes } from '../TaskList/types';
|
|
18
19
|
interface SingpassLinkResponseItem {
|
|
@@ -38,7 +39,7 @@ export interface DropinAPIHandlers {
|
|
|
38
39
|
handleCreateDocument?(data: Document, legalEntityId: string): Promise<ExistingDocument>;
|
|
39
40
|
handleUpdateDocument?(data: Document, documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
40
41
|
handleGetDocument?(documentId: string, legalEntityId: string): Promise<ExistingDocument>;
|
|
41
|
-
handleGetBankVerificationVendors?(country: CountryCode, openBankingPartnerConfigId?: string): Promise<BankVerificationVendorsResponse>;
|
|
42
|
+
handleGetBankVerificationVendors?(country: CountryCode, openBankingPartnerConfigId?: string, locale?: Language['locale']): Promise<BankVerificationVendorsResponse>;
|
|
42
43
|
handleGetTransferInstrument?(transferInstrumentId: string): Promise<ExistingTransferInstrument>;
|
|
43
44
|
handleUpdateTransferInstrument?(data: TransferInstrument, transferInstrumentId: string): Promise<ExistingTransferInstrument>;
|
|
44
45
|
handleDeleteTransferInstrument?(transferInstrumentId: string): Promise<TransferInstrument>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type Language from '../../language/Language';
|
|
2
|
+
import type { SummaryOf } from '../internal/Summary/types';
|
|
3
|
+
import type { FinancialInformationSchema } from './types';
|
|
4
|
+
export declare const formatFinancialInformationSummary: (data: FinancialInformationSchema | undefined, i18n: Language) => SummaryOf<FinancialInformationSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { Currency } from '../../core/models/currency';
|
|
4
4
|
export type FinancialInformationSchema = {
|
|
@@ -11,4 +11,5 @@ export type FinancialInformationSchema = {
|
|
|
11
11
|
};
|
|
12
12
|
export interface FinancialInformationProps extends BaseInnerFormProps<FinancialInformationSchema> {
|
|
13
13
|
country: CountryCode;
|
|
14
|
+
id: 'companyFinancialInformation' | 'solePropFinancialInformation';
|
|
14
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import { DocumentType } from '../../core/models/api/document';
|
|
3
3
|
import type { FileSchema } from '../../core/models/file';
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|
|
@@ -30,12 +30,12 @@ export interface OnfidoCaptureSchema {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export interface IdDocumentUploadProps extends Partial<IdDocumentInstantVerificationProps>, Partial<IdDocumentManualUploadProps> {
|
|
33
|
-
formVerificationErrors
|
|
33
|
+
formVerificationErrors?: any;
|
|
34
34
|
idVerificationMethodSelected: IdVerificationMethodType;
|
|
35
35
|
name: string;
|
|
36
36
|
}
|
|
37
37
|
export interface IdDocumentInstantVerificationProps extends BaseInnerFormProps<IdDocumentUploadSchema> {
|
|
38
|
-
userDetails?: UserDetails;
|
|
38
|
+
userDetails?: UserDetails | undefined;
|
|
39
39
|
legalEntityId?: string | undefined;
|
|
40
40
|
handleGetIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
|
|
41
41
|
handleOnBack?: () => void;
|
|
@@ -8,7 +8,7 @@ export interface IdVerificationProps {
|
|
|
8
8
|
handleGetIdVerificationToken: Required<DropinAPIHandlers>['handleGetIdVerificationToken'];
|
|
9
9
|
}
|
|
10
10
|
export interface UserDetails {
|
|
11
|
-
firstName
|
|
12
|
-
lastName
|
|
13
|
-
residencyCountry
|
|
11
|
+
firstName?: string;
|
|
12
|
+
lastName?: string;
|
|
13
|
+
residencyCountry?: string;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { FormVerificationErrors } from '../../core/models/errors/form-verification-errors';
|
|
4
4
|
export declare const idVerificationMethods: readonly ["instantVerification", "manualVerification"];
|
|
@@ -7,7 +7,7 @@ export interface IdVerificationMethodSchema {
|
|
|
7
7
|
idVerificationMethod: IdVerificationMethodType;
|
|
8
8
|
}
|
|
9
9
|
export interface IdVerificationMethodProps extends BaseInnerFormProps<IdVerificationMethodSchema> {
|
|
10
|
-
formVerificationErrors
|
|
10
|
+
formVerificationErrors?: FormVerificationErrors;
|
|
11
11
|
name: string;
|
|
12
|
-
countryOfResidence
|
|
12
|
+
countryOfResidence?: CountryCode;
|
|
13
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { ValidationRuleResults } from '../../utils/validation/types';
|
|
4
4
|
import type { IndividualIdNumberType } from '../internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
@@ -3,5 +3,4 @@ import type { FormList } from '../../../core/models/form';
|
|
|
3
3
|
import type { IndividualProps } from '../types';
|
|
4
4
|
export declare const individualForms: FormList;
|
|
5
5
|
export declare const individualDocumentForms: string[];
|
|
6
|
-
declare function IndividualComponent(props: IndividualProps): import("preact").JSX.Element;
|
|
7
|
-
export default IndividualComponent;
|
|
6
|
+
export declare function IndividualComponent(props: IndividualProps): import("preact").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
4
4
|
import type { InstantIdVerificationTokenRequest, InstantIdVerificationTokenResponse } from '../../core/models/api/instant-id-verification';
|
|
5
5
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../core/hooks/useForm';
|
|
2
|
-
import type {
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
|
+
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
3
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
4
|
import type { BankAccountNumberSchema } from '../internal/BankAccountNumber/types';
|
|
5
5
|
import type { CurrencySchema } from '../internal/Currency/types';
|
|
@@ -16,7 +16,8 @@ export interface PayoutAccountSchema extends CurrencySchema, BankAccountNumberSc
|
|
|
16
16
|
}
|
|
17
17
|
export interface PayoutAccountProps extends BaseInnerFormProps<PayoutAccountSchema> {
|
|
18
18
|
country: CountryCode;
|
|
19
|
-
|
|
19
|
+
onSubmit?(data: PayoutAccountSchema): void;
|
|
20
|
+
legalEntityResponse: ExistingLegalEntity;
|
|
20
21
|
requiredFields?: Array<keyof PayoutAccountSchema>;
|
|
21
22
|
arePayoutAccountDetailsInvalid?: boolean;
|
|
22
23
|
invalidFieldNames?: string;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import '../PayoutDetails.scss';
|
|
2
|
-
import type { FormList } from '../../../core/models/form';
|
|
3
2
|
import type { BankDocumentSchema } from '../../BankDocument/types';
|
|
4
3
|
import type { AccountVerificationSchema } from '../../BankVerification/types';
|
|
5
4
|
import type { PayoutAccountSchema } from '../../PayoutAccount/types';
|
|
6
|
-
import type { PayoutVerificationMethodSchema } from '../../PayoutVerificationMethod/types';
|
|
7
5
|
import type { PayoutDetailsProps } from '../types';
|
|
8
6
|
export declare const payoutSteps: {
|
|
9
7
|
readonly payoutVerificationMethod: {
|
|
10
8
|
readonly formId: "payoutVerificationMethod";
|
|
11
9
|
readonly formName: "verificationMethod";
|
|
12
|
-
readonly fields: (
|
|
10
|
+
readonly fields: ("bankCountry" | "payoutVerificationMethod" | "verifiedBankAccountNumber" | "verifiedAccountHolder" | "verifiedCurrencyCode" | "verifiedBankCountry" | "verifiedBankName")[];
|
|
13
11
|
};
|
|
14
12
|
readonly payoutAccountDetails: {
|
|
15
13
|
readonly formId: "payoutAccountDetails";
|
|
@@ -29,5 +27,4 @@ export declare const payoutSteps: {
|
|
|
29
27
|
readonly fields: (keyof AccountVerificationSchema)[];
|
|
30
28
|
};
|
|
31
29
|
};
|
|
32
|
-
export declare const getAppropriatePayoutDetailsSteps: (isEditing: boolean, instantVerificationAvailable: boolean, canChangeCountry: boolean) => FormList;
|
|
33
30
|
export declare function PayoutDetailsComponent(props: PayoutDetailsProps): import("preact").JSX.Element;
|
|
@@ -7,5 +7,6 @@ interface VerificationAvailableArgs {
|
|
|
7
7
|
verificationVendorsCallback?: DropinAPIHandlers['handleGetBankVerificationVendors'];
|
|
8
8
|
}
|
|
9
9
|
export declare const isInstantVerificationAvailable: ({ verificationVendorsCallback, provider, }: VerificationAvailableArgs) => boolean;
|
|
10
|
+
export declare const isProviderPlaidEmbedded: (redirectUrl: string | undefined) => boolean;
|
|
10
11
|
export declare const rules: FormRules<PayoutDetailsSchema>;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
2
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
3
3
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
4
4
|
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
5
5
|
import type { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
|
package/dist/types/components/PayoutVerificationMethod/component/PayoutVerificationMethod.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../VerificationMethod.scss';
|
|
2
2
|
import type { JSX } from 'preact/jsx-runtime';
|
|
3
|
+
import type { AccountVerificationSchema } from '../../BankVerification/types';
|
|
3
4
|
import type { PayoutVerificationMethodProps, PayoutVerificationMethodSchema } from '../types';
|
|
4
|
-
export declare const payoutVerificationMethodFields: Array<keyof PayoutVerificationMethodSchema>;
|
|
5
|
+
export declare const payoutVerificationMethodFields: Array<keyof PayoutVerificationMethodSchema | keyof AccountVerificationSchema>;
|
|
5
6
|
export declare function PayoutVerificationMethod(props: PayoutVerificationMethodProps): JSX.Element;
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
+
import { type Dispatch, type StateUpdater } from 'preact/hooks';
|
|
2
|
+
import type { LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
3
|
+
import type { BankVerificationErrorResponse } from '../../../../core/models/api/trusted-transferInstrument';
|
|
4
|
+
import type { ValidatorMode } from '../../../../utils/validation/types';
|
|
5
|
+
import type { BankVerificationVendor, InstantVerificationErrorNotification } from '../../../BankVerification/types';
|
|
1
6
|
import type { LoadingStatus } from '../../../internal/LoaderWrapper/constants';
|
|
2
|
-
import type {
|
|
7
|
+
import type { PayoutDetailsProps } from '../../../PayoutDetails/types';
|
|
8
|
+
import type { PayoutVerificationMethodSchema, VerificationMethod } from '../../types';
|
|
3
9
|
interface PreferInstantVerificationMethodProps {
|
|
4
|
-
|
|
10
|
+
provider: BankVerificationVendor | undefined;
|
|
5
11
|
bankInfoValidated: boolean;
|
|
6
12
|
instantVerificationAvailable: boolean;
|
|
7
13
|
selectVerificationMethod: (method: VerificationMethod) => void;
|
|
8
14
|
loadingStatus: LoadingStatus;
|
|
15
|
+
createTrustedTransferInstrument?: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
16
|
+
setBankInfoValidated: Dispatch<StateUpdater<boolean>>;
|
|
17
|
+
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
18
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
19
|
+
refreshLegalEntity?: () => Promise<LegalEntity>;
|
|
20
|
+
handleChangeFor: (key: keyof PayoutVerificationMethodSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
21
|
+
triggerValidation: (schema?: Array<keyof PayoutVerificationMethodSchema>) => void;
|
|
9
22
|
}
|
|
10
|
-
export declare const PreferInstantVerificationMethod: ({ loadingStatus,
|
|
23
|
+
export declare const PreferInstantVerificationMethod: ({ loadingStatus, provider, bankInfoValidated, instantVerificationAvailable, selectVerificationMethod, createTrustedTransferInstrument, setBankInfoValidated, handleBankVerificationError, setBankVerificationError, refreshLegalEntity, handleChangeFor, triggerValidation, }: PreferInstantVerificationMethodProps) => import("preact").JSX.Element;
|
|
11
24
|
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
3
|
+
import type { ExistingLegalEntity, LegalEntity } from '../../core/models/api/legal-entity';
|
|
4
|
+
import type { BankVerificationErrorResponse } from '../../core/models/api/trusted-transferInstrument';
|
|
3
5
|
import type { CountryCode } from '../../core/models/country-code';
|
|
4
6
|
import type { FormModel } from '../../core/models/form';
|
|
5
|
-
import type { BankVerificationVendor } from '../BankVerification/types';
|
|
7
|
+
import type { AccountVerificationSchema, BankVerificationVendor, InstantVerificationErrorNotification } from '../BankVerification/types';
|
|
6
8
|
import type { LoadingStatus } from '../internal/LoaderWrapper/constants';
|
|
9
|
+
import type { PayoutDetailsProps } from '../PayoutDetails/types';
|
|
7
10
|
export declare const payoutVerificationMethods: readonly ["instantVerification", "manualVerification"];
|
|
8
11
|
export type VerificationMethod = (typeof payoutVerificationMethods)[number];
|
|
9
|
-
export interface PayoutVerificationMethodSchema {
|
|
12
|
+
export interface PayoutVerificationMethodSchema extends AccountVerificationSchema {
|
|
10
13
|
payoutVerificationMethod: VerificationMethod | undefined;
|
|
11
14
|
bankCountry: CountryCode;
|
|
12
15
|
}
|
|
@@ -21,4 +24,10 @@ export interface PayoutVerificationMethodProps extends BaseInnerFormProps<Payout
|
|
|
21
24
|
handleNextClick: () => void;
|
|
22
25
|
forms?: FormModel[];
|
|
23
26
|
isActiveForm: boolean;
|
|
27
|
+
setBankInfoValidated: Dispatch<StateUpdater<boolean>>;
|
|
28
|
+
createTrustedTransferInstrument?: PayoutDetailsProps['createTrustedTransferInstrument'];
|
|
29
|
+
refreshLegalEntity?: () => Promise<LegalEntity>;
|
|
30
|
+
handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
|
|
31
|
+
setBankVerificationError: Dispatch<StateUpdater<InstantVerificationErrorNotification | null>>;
|
|
32
|
+
setHideFooter?: Dispatch<StateUpdater<boolean>>;
|
|
24
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm';
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../../core/hooks/useForm/types';
|
|
2
2
|
import type { IdentityNumberSchema } from '../../../IdentityNumber/type';
|
|
3
3
|
import type { IndividualIdNumberType } from '../../../internal/IdFieldTypeSelector/countryIdNumberTypes';
|
|
4
4
|
export interface AdditionalIdentityInfoSchema {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseInnerFormProps
|
|
1
|
+
import type { BaseInnerFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { DecisionMakerType } from '../../core/models/api/decision-maker-type';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
4
4
|
import type { LegalEntityAssociation, LegalRepresentativeRelationshipType } from '../../core/models/api/legal-entity-association';
|
|
@@ -20,11 +20,11 @@ export interface PersonalDetailsSchema extends NameSchema, IdentityNumberSchema,
|
|
|
20
20
|
relationship?: LegalRepresentativeRelationshipType;
|
|
21
21
|
}
|
|
22
22
|
export interface PersonalDetailsProps extends BaseInnerFormProps<PersonalDetailsSchema> {
|
|
23
|
-
taskType
|
|
23
|
+
taskType?: TaskTypes;
|
|
24
24
|
allowedRoles?: DecisionMakerType[];
|
|
25
25
|
onResidencyCountryChange?(country: string): void;
|
|
26
26
|
parentLegalEntity?: ExistingLegalEntity;
|
|
27
|
-
trustedRoles
|
|
27
|
+
trustedRoles?: Array<LegalEntityAssociation['type']>;
|
|
28
28
|
}
|
|
29
29
|
export interface IdSchema {
|
|
30
30
|
idNumber: string;
|
|
@@ -38,4 +38,3 @@ export interface IdentityComponentProps {
|
|
|
38
38
|
idNumberType?: IndividualIdNumberType;
|
|
39
39
|
registrationNumberType?: TranslationKey;
|
|
40
40
|
}
|
|
41
|
-
export type IdFormState = FormState<IdSchema>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseOuterFormProps } from '../../core/hooks/useForm';
|
|
1
|
+
import type { BaseOuterFormProps } from '../../core/hooks/useForm/types';
|
|
2
2
|
import type { CountryCode } from '../../core/models/country-code';
|
|
3
3
|
import type { FormModel } from '../../core/models/form';
|
|
4
4
|
import type { TranslationKey } from '../../language/types';
|