@delopay/sdk 0.318.0 → 0.319.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/internal.cjs CHANGED
@@ -17161,6 +17161,53 @@ var AdminPortal = class {
17161
17161
  { body: params }
17162
17162
  );
17163
17163
  }
17164
+ /**
17165
+ * Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action
17166
+ * with a reason: what it blocked is allowed again, and nothing else
17167
+ * changes. The merchant stays in its stage and the action stays lifted for
17168
+ * the rest of that stage entry. An action that is not applied, not one of
17169
+ * those kinds, or already lifted is refused with `DE_19` (HTTP 409).
17170
+ *
17171
+ * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`
17172
+ */
17173
+ async liftMerchantRiskAction(merchantId, actionId, params) {
17174
+ return this.request(
17175
+ "POST",
17176
+ `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,
17177
+ { body: params }
17178
+ );
17179
+ }
17180
+ /**
17181
+ * The payments and payouts a merchant's applied risk actions refused,
17182
+ * newest first; 50 unless `limit` (at most 200) says otherwise.
17183
+ *
17184
+ * `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`
17185
+ */
17186
+ async listMerchantRiskBlockedAttempts(merchantId, params) {
17187
+ return this.request("GET", `${adminAccount(merchantId)}/risk/blocked-attempts`, {
17188
+ query: params === void 0 ? void 0 : { ...params }
17189
+ });
17190
+ }
17191
+ /**
17192
+ * Every merchant risk action kind and whether this platform can use it,
17193
+ * with its default mode, its scopes and what it blocks.
17194
+ *
17195
+ * `GET /admin-portal/risk/actions/catalog`
17196
+ */
17197
+ async getMerchantRiskActionCatalog() {
17198
+ return this.request("GET", "/admin-portal/risk/actions/catalog");
17199
+ }
17200
+ /**
17201
+ * Which merchants a risk policy, saved or not, would put in each stage now,
17202
+ * from their stored signals, and what each action would block there.
17203
+ * Writes nothing. A policy a settings write would refuse is refused the
17204
+ * same way (HTTP 422).
17205
+ *
17206
+ * `POST /admin-portal/risk/policy/preview`
17207
+ */
17208
+ async previewMerchantRiskPolicy(params) {
17209
+ return this.request("POST", "/admin-portal/risk/policy/preview", { body: params });
17210
+ }
17164
17211
  };
17165
17212
  function transactionListQuery(params) {
17166
17213
  if (!params) return void 0;