@delopay/sdk 0.318.0 → 0.322.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-4QNMF3GL.js → chunk-SKSZ6A5U.js} +16 -1
- package/dist/chunk-SKSZ6A5U.js.map +1 -0
- package/dist/{index-BDkbJukm.d.cts → index-DhWICEM_.d.cts} +116 -21
- package/dist/{index-BDkbJukm.d.ts → index-DhWICEM_.d.ts} +116 -21
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +62 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +300 -10
- package/dist/internal.d.ts +300 -10
- package/dist/internal.js +48 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-4QNMF3GL.js.map +0 -1
package/dist/internal.js
CHANGED
|
@@ -265,7 +265,7 @@ import {
|
|
|
265
265
|
visibleCustomFields,
|
|
266
266
|
whopAccentSwatch,
|
|
267
267
|
whopCardElement
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-SKSZ6A5U.js";
|
|
269
269
|
|
|
270
270
|
// src/internal/resources/admin.ts
|
|
271
271
|
var Admin = class {
|
|
@@ -1531,6 +1531,53 @@ var AdminPortal = class {
|
|
|
1531
1531
|
{ body: params }
|
|
1532
1532
|
);
|
|
1533
1533
|
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action
|
|
1536
|
+
* with a reason: what it blocked is allowed again, and nothing else
|
|
1537
|
+
* changes. The merchant stays in its stage and the action stays lifted for
|
|
1538
|
+
* the rest of that stage entry. An action that is not applied, not one of
|
|
1539
|
+
* those kinds, or already lifted is refused with `DE_19` (HTTP 409).
|
|
1540
|
+
*
|
|
1541
|
+
* `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`
|
|
1542
|
+
*/
|
|
1543
|
+
async liftMerchantRiskAction(merchantId, actionId, params) {
|
|
1544
|
+
return this.request(
|
|
1545
|
+
"POST",
|
|
1546
|
+
`${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,
|
|
1547
|
+
{ body: params }
|
|
1548
|
+
);
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* The payments and payouts a merchant's applied risk actions refused,
|
|
1552
|
+
* newest first; 50 unless `limit` (at most 200) says otherwise.
|
|
1553
|
+
*
|
|
1554
|
+
* `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`
|
|
1555
|
+
*/
|
|
1556
|
+
async listMerchantRiskBlockedAttempts(merchantId, params) {
|
|
1557
|
+
return this.request("GET", `${adminAccount(merchantId)}/risk/blocked-attempts`, {
|
|
1558
|
+
query: params === void 0 ? void 0 : { ...params }
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Every merchant risk action kind and whether this platform can use it,
|
|
1563
|
+
* with its default mode, its scopes and what it blocks.
|
|
1564
|
+
*
|
|
1565
|
+
* `GET /admin-portal/risk/actions/catalog`
|
|
1566
|
+
*/
|
|
1567
|
+
async getMerchantRiskActionCatalog() {
|
|
1568
|
+
return this.request("GET", "/admin-portal/risk/actions/catalog");
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Which merchants a risk policy, saved or not, would put in each stage now,
|
|
1572
|
+
* from their stored signals, and what each action would block there.
|
|
1573
|
+
* Writes nothing. A policy a settings write would refuse is refused the
|
|
1574
|
+
* same way (HTTP 422).
|
|
1575
|
+
*
|
|
1576
|
+
* `POST /admin-portal/risk/policy/preview`
|
|
1577
|
+
*/
|
|
1578
|
+
async previewMerchantRiskPolicy(params) {
|
|
1579
|
+
return this.request("POST", "/admin-portal/risk/policy/preview", { body: params });
|
|
1580
|
+
}
|
|
1534
1581
|
};
|
|
1535
1582
|
function transactionListQuery(params) {
|
|
1536
1583
|
if (!params) return void 0;
|