vesant-sdk 1.7.0-dev.c2e85f3 → 1.7.0-dev.ddb1fa4
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.d.mts +1 -1
- package/dist/kyc/core.d.ts +1 -1
- package/dist/kyc/core.js +16 -2
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +16 -2
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.d.mts +52 -4
- package/dist/kyc/index.d.ts +52 -4
- package/dist/kyc/index.js +16 -2
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +16 -2
- package/dist/kyc/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2707,7 +2707,13 @@ var KycClient = class extends BaseClient {
|
|
|
2707
2707
|
*
|
|
2708
2708
|
* Generates a link that the user can visit to submit their KYC documents.
|
|
2709
2709
|
*
|
|
2710
|
-
*
|
|
2710
|
+
* Optionally pass the customer's registered identity data as
|
|
2711
|
+
* `customer_data` (same shape as the geolocation `customer_data` block).
|
|
2712
|
+
* It seeds the customer's risk profile so document verification can
|
|
2713
|
+
* cross-check the submitted document against trusted reference data;
|
|
2714
|
+
* fields never overwrite data already on the profile.
|
|
2715
|
+
*
|
|
2716
|
+
* @param request - Request containing the user ID, optional redirect URL, optional callback URL (receives POST requests), and optional customer identity data
|
|
2711
2717
|
* @returns Response containing the redirect link and KYC ID
|
|
2712
2718
|
*
|
|
2713
2719
|
* @example
|
|
@@ -2715,7 +2721,15 @@ var KycClient = class extends BaseClient {
|
|
|
2715
2721
|
* const result = await client.requestKycSubmitLink({
|
|
2716
2722
|
* user_id: "user_123",
|
|
2717
2723
|
* redirect_url: "https://merchant.com/kyc-complete", // optional
|
|
2718
|
-
* callback_url: "https://merchant.com/api/kyc-webhook" // optional - receives POST requests on status change
|
|
2724
|
+
* callback_url: "https://merchant.com/api/kyc-webhook", // optional - receives POST requests on status change
|
|
2725
|
+
* customer_data: { // optional - seeds the risk profile for document cross-checks
|
|
2726
|
+
* full_name: "John Doe",
|
|
2727
|
+
* date_of_birth: "1999-06-02", // ISO 8601
|
|
2728
|
+
* email: "john@example.com",
|
|
2729
|
+
* phone: "+94771234567",
|
|
2730
|
+
* address: "12 Main St, Colombo", // used for address verification
|
|
2731
|
+
* country: "LK"
|
|
2732
|
+
* }
|
|
2719
2733
|
* });
|
|
2720
2734
|
*
|
|
2721
2735
|
* console.log(`Redirect user to: ${result.link}`);
|