@diviswap/sdk 1.7.24 → 1.7.25

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/cli/index.js CHANGED
@@ -1937,7 +1937,7 @@ async function uninstall(options = {}) {
1937
1937
  }
1938
1938
 
1939
1939
  // package.json
1940
- var version = "1.7.24";
1940
+ var version = "1.7.25";
1941
1941
 
1942
1942
  // src/cli/index.ts
1943
1943
  var program = new commander.Command();
@@ -140,12 +140,13 @@ export function DiviswapKYC({
140
140
  };
141
141
 
142
142
  // Call your KYC submission API
143
+ // Use submitKYC (not registerCustomer) since shadow user is already created by partner HMAC auth
143
144
  const response = await fetch('/api/diviswap', {
144
145
  method: 'POST',
145
146
  headers: { 'Content-Type': 'application/json' },
146
- body: JSON.stringify({
147
- action: 'registerCustomer',
148
- ...kycData
147
+ body: JSON.stringify({
148
+ action: 'submitKYC',
149
+ ...kycData
149
150
  }),
150
151
  });
151
152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviswap/sdk",
3
- "version": "1.7.24",
3
+ "version": "1.7.25",
4
4
  "description": "Official Diviswap SDK - Crypto rails made simple",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -140,12 +140,13 @@ export function DiviswapKYC({
140
140
  };
141
141
 
142
142
  // Call your KYC submission API
143
+ // Use submitKYC (not registerCustomer) since shadow user is already created by partner HMAC auth
143
144
  const response = await fetch('/api/diviswap', {
144
145
  method: 'POST',
145
146
  headers: { 'Content-Type': 'application/json' },
146
- body: JSON.stringify({
147
- action: 'registerCustomer',
148
- ...kycData
147
+ body: JSON.stringify({
148
+ action: 'submitKYC',
149
+ ...kycData
149
150
  }),
150
151
  });
151
152