@delopay/sdk 0.27.0 → 0.28.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/{chunk-TE4LLC2R.js → chunk-U6GMDSVQ.js} +22 -25
- package/dist/chunk-U6GMDSVQ.js.map +1 -0
- package/dist/index.cjs +22 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -49
- package/dist/index.d.ts +41 -49
- package/dist/index.js +1 -1
- package/dist/internal.cjs +22 -25
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +3 -3
- package/dist/internal.d.ts +3 -3
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TE4LLC2R.js.map +0 -1
|
@@ -352,8 +352,8 @@ var Connectors = class {
|
|
|
352
352
|
* `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
|
|
353
353
|
*
|
|
354
354
|
* @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
|
|
355
|
-
*
|
|
356
|
-
* to
|
|
355
|
+
* when omitted; pass `{ event_type: { specific_event: '…' } }` to scope
|
|
356
|
+
* to a single event.
|
|
357
357
|
*/
|
|
358
358
|
async registerWebhook(merchantId, connectorId, params) {
|
|
359
359
|
const path = `/account/${encodeURIComponent(merchantId)}/connectors/webhooks/${encodeURIComponent(connectorId)}`;
|
|
@@ -949,13 +949,12 @@ var Payments = class {
|
|
|
949
949
|
* Retrieve a payment by its ID.
|
|
950
950
|
*
|
|
951
951
|
* @param paymentId - The unique payment intent ID.
|
|
952
|
-
* @param options - Optional query flags. `force_sync`
|
|
953
|
-
*
|
|
954
|
-
* stuck intent when a webhook was lost). `all_keys_required`
|
|
955
|
-
*
|
|
956
|
-
*
|
|
957
|
-
*
|
|
958
|
-
* helpers; API-key callers can use them too where the backend allows.
|
|
952
|
+
* @param options - Optional query flags. `force_sync` reconciles the
|
|
953
|
+
* intent's state with the connector before returning (useful to recover
|
|
954
|
+
* a stuck intent when a webhook was lost). `all_keys_required` forces a
|
|
955
|
+
* connector sync even for intents in early states like
|
|
956
|
+
* `requires_payment_method` that would otherwise return the local
|
|
957
|
+
* snapshot. Both flags work with JWT and API-key authentication.
|
|
959
958
|
* @returns The payment intent.
|
|
960
959
|
*
|
|
961
960
|
* @example
|
|
@@ -1897,16 +1896,15 @@ var Users = class {
|
|
|
1897
1896
|
return this.request("POST", "/user/signout");
|
|
1898
1897
|
}
|
|
1899
1898
|
/**
|
|
1900
|
-
* Paginated login history for the authenticated user
|
|
1901
|
-
* country / city / lat-lon (when GeoIP is enabled
|
|
1902
|
-
*
|
|
1903
|
-
*
|
|
1899
|
+
* Paginated login history for the authenticated user -- IP, User-Agent,
|
|
1900
|
+
* country / city / lat-lon (when GeoIP is enabled), success and failure
|
|
1901
|
+
* events with their reasons. Strictly scoped to the JWT subject; a user
|
|
1902
|
+
* can only see their own activity.
|
|
1904
1903
|
*
|
|
1905
1904
|
* `GET /user/me/login-activity`. Requires a logged-in JWT.
|
|
1906
1905
|
*
|
|
1907
|
-
*
|
|
1908
|
-
*
|
|
1909
|
-
* merchant dashboard.
|
|
1906
|
+
* Returns an empty page when a Delopay admin is impersonating a merchant,
|
|
1907
|
+
* so the admin's metadata is not exposed inside the merchant dashboard.
|
|
1910
1908
|
*/
|
|
1911
1909
|
async listLoginActivity(params) {
|
|
1912
1910
|
if (params === void 0) {
|
|
@@ -1953,15 +1951,14 @@ var Users = class {
|
|
|
1953
1951
|
}
|
|
1954
1952
|
/**
|
|
1955
1953
|
* Permanently delete the caller's account. Requires a fresh password
|
|
1956
|
-
* (and a current 6-digit TOTP code if the user has TOTP enrolled).
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
*
|
|
1960
|
-
* caller should clear local credentials and route to the login page.
|
|
1954
|
+
* (and a current 6-digit TOTP code if the user has TOTP enrolled). On
|
|
1955
|
+
* success all role assignments are removed, the user record is
|
|
1956
|
+
* deactivated, and all in-flight sessions are invalidated. The caller
|
|
1957
|
+
* should clear local credentials and route to the login page.
|
|
1961
1958
|
*
|
|
1962
|
-
*
|
|
1963
|
-
* owner-level admin of an org / merchant / profile
|
|
1964
|
-
* ownership first.
|
|
1959
|
+
* Returns `InvalidDeleteOperation` when the caller is the sole
|
|
1960
|
+
* owner-level admin of an org / merchant / profile -- they must
|
|
1961
|
+
* transfer ownership first.
|
|
1965
1962
|
*/
|
|
1966
1963
|
async deleteAccount(params) {
|
|
1967
1964
|
return this.request("DELETE", "/user/account", { body: params });
|
|
@@ -3625,4 +3622,4 @@ export {
|
|
|
3625
3622
|
applyBrandingVariables,
|
|
3626
3623
|
shadowFor
|
|
3627
3624
|
};
|
|
3628
|
-
//# sourceMappingURL=chunk-
|
|
3625
|
+
//# sourceMappingURL=chunk-U6GMDSVQ.js.map
|