@delopay/sdk 0.334.0 → 0.338.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/README.md +2 -2
- package/dist/{chunk-GHDAF4L4.js → chunk-SL2XR4QR.js} +125 -11
- package/dist/chunk-SL2XR4QR.js.map +1 -0
- package/dist/{index-BsFcLSe4.d.cts → index-Bng6txIS.d.cts} +554 -54
- package/dist/{index-BsFcLSe4.d.ts → index-Bng6txIS.d.ts} +554 -54
- package/dist/index.cjs +124 -10
- 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 +155 -11
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +76 -21
- package/dist/internal.d.ts +76 -21
- package/dist/internal.js +32 -2
- package/dist/internal.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-GHDAF4L4.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-SL2XR4QR.js";
|
|
269
269
|
|
|
270
270
|
// src/internal/resources/admin.ts
|
|
271
271
|
var Admin = class {
|
|
@@ -542,6 +542,18 @@ var AdminPortal = class {
|
|
|
542
542
|
async getTransaction(paymentId) {
|
|
543
543
|
return this.request("GET", `/admin-portal/transactions/${encodeURIComponent(paymentId)}`);
|
|
544
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* A payment's buyer risk evaluations, newest first, across every merchant:
|
|
547
|
+
* the same answer as the merchant's `payments.buyerRisk()`.
|
|
548
|
+
*
|
|
549
|
+
* `GET /admin-portal/transactions/{paymentId}/buyer-risk`
|
|
550
|
+
*/
|
|
551
|
+
async getTransactionBuyerRisk(paymentId) {
|
|
552
|
+
return this.request(
|
|
553
|
+
"GET",
|
|
554
|
+
`/admin-portal/transactions/${encodeURIComponent(paymentId)}/buyer-risk`
|
|
555
|
+
);
|
|
556
|
+
}
|
|
545
557
|
/** The same frozen purchase lines available on the merchant payment read. */
|
|
546
558
|
async getTransactionProductLines(paymentId) {
|
|
547
559
|
return this.request(
|
|
@@ -1547,6 +1559,22 @@ var AdminPortal = class {
|
|
|
1547
1559
|
{ body: params }
|
|
1548
1560
|
);
|
|
1549
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Stop new payments of one shop (`profile_id`), or of every shop of the
|
|
1564
|
+
* merchant, with a required reason. The stop is an
|
|
1565
|
+
* applied `restrict_payments` action of mode `operator`: payment create,
|
|
1566
|
+
* every confirm, the hosted checkout and its provider routes are refused
|
|
1567
|
+
* with `DE_22` before any provider is called. No template, connector
|
|
1568
|
+
* account, visibility, routing or stage change ends it; only
|
|
1569
|
+
* `liftMerchantRiskAction`, with a reason, does. A blank reason is
|
|
1570
|
+
* refused (HTTP 400), a shop of another merchant is not found (404), and a
|
|
1571
|
+
* scope an applied stop already covers is refused with `DE_19` (409).
|
|
1572
|
+
*
|
|
1573
|
+
* `POST /admin-portal/accounts/{merchant_id}/risk/stops`
|
|
1574
|
+
*/
|
|
1575
|
+
async stopMerchantPayments(merchantId, params) {
|
|
1576
|
+
return this.request("POST", `${adminAccount(merchantId)}/risk/stops`, { body: params });
|
|
1577
|
+
}
|
|
1550
1578
|
/**
|
|
1551
1579
|
* The payments and payouts a merchant's applied risk actions refused,
|
|
1552
1580
|
* newest first; 50 unless `limit` (at most 200) says otherwise.
|
|
@@ -1592,6 +1620,7 @@ function transactionListQuery(params) {
|
|
|
1592
1620
|
routing_approaches,
|
|
1593
1621
|
failure_substatuses,
|
|
1594
1622
|
product_ids,
|
|
1623
|
+
buyer_risk_band,
|
|
1595
1624
|
...query
|
|
1596
1625
|
} = params;
|
|
1597
1626
|
return {
|
|
@@ -1605,7 +1634,8 @@ function transactionListQuery(params) {
|
|
|
1605
1634
|
...connector_settlement_statuses?.length ? { connector_settlement_statuses: connector_settlement_statuses.join(",") } : {},
|
|
1606
1635
|
...routing_approaches?.length ? { routing_approaches: routing_approaches.join(",") } : {},
|
|
1607
1636
|
...failure_substatuses?.length ? { failure_substatuses: failure_substatuses.join(",") } : {},
|
|
1608
|
-
...product_ids?.length ? { product_ids: product_ids.join(",") } : {}
|
|
1637
|
+
...product_ids?.length ? { product_ids: product_ids.join(",") } : {},
|
|
1638
|
+
...buyer_risk_band?.length ? { buyer_risk_band: buyer_risk_band.join(",") } : {}
|
|
1609
1639
|
};
|
|
1610
1640
|
}
|
|
1611
1641
|
function adminAccount(merchantId) {
|