@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/index.js CHANGED
@@ -262,7 +262,7 @@ import {
262
262
  visibleCustomFields,
263
263
  whopAccentSwatch,
264
264
  whopCardElement
265
- } from "./chunk-4QNMF3GL.js";
265
+ } from "./chunk-SKSZ6A5U.js";
266
266
  export {
267
267
  AIRWALLEX_AUTOFILL_TREATMENTS,
268
268
  AIRWALLEX_CARD_LAYOUTS,
package/dist/internal.cjs CHANGED
@@ -9212,6 +9212,21 @@ var BuyerPortal = class {
9212
9212
  async updateProfile(params, options) {
9213
9213
  return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
9214
9214
  }
9215
+ /**
9216
+ * Change the buyer's email address, as the profile's `email_policy` allows:
9217
+ * `request` names the new address, and under a `confirm_new` policy
9218
+ * `confirm` completes it with the proof sent there. A refusal comes back as
9219
+ * an outcome with `status: 'refused'`; a 403 means the policy does not let
9220
+ * the buyer change the address at all, and a 429 that the request limit was
9221
+ * reached.
9222
+ * `POST /buyer-portal/profile/contact-email`
9223
+ */
9224
+ async changeContactEmail(command, options) {
9225
+ return this.request("POST", "/buyer-portal/profile/contact-email", {
9226
+ body: command,
9227
+ ...options
9228
+ });
9229
+ }
9215
9230
  /**
9216
9231
  * Ask the shop for a refund of one of the buyer's purchases, named by its
9217
9232
  * `id` from `listPurchases()`. Nothing is refunded until the shop approves
@@ -17161,6 +17176,53 @@ var AdminPortal = class {
17161
17176
  { body: params }
17162
17177
  );
17163
17178
  }
17179
+ /**
17180
+ * Lift an applied `restrict_payments`, `hold_payouts` or `suspend` action
17181
+ * with a reason: what it blocked is allowed again, and nothing else
17182
+ * changes. The merchant stays in its stage and the action stays lifted for
17183
+ * the rest of that stage entry. An action that is not applied, not one of
17184
+ * those kinds, or already lifted is refused with `DE_19` (HTTP 409).
17185
+ *
17186
+ * `POST /admin-portal/accounts/{merchant_id}/risk/actions/{action_id}/lift`
17187
+ */
17188
+ async liftMerchantRiskAction(merchantId, actionId, params) {
17189
+ return this.request(
17190
+ "POST",
17191
+ `${adminAccount(merchantId)}/risk/actions/${encodeURIComponent(actionId)}/lift`,
17192
+ { body: params }
17193
+ );
17194
+ }
17195
+ /**
17196
+ * The payments and payouts a merchant's applied risk actions refused,
17197
+ * newest first; 50 unless `limit` (at most 200) says otherwise.
17198
+ *
17199
+ * `GET /admin-portal/accounts/{merchant_id}/risk/blocked-attempts`
17200
+ */
17201
+ async listMerchantRiskBlockedAttempts(merchantId, params) {
17202
+ return this.request("GET", `${adminAccount(merchantId)}/risk/blocked-attempts`, {
17203
+ query: params === void 0 ? void 0 : { ...params }
17204
+ });
17205
+ }
17206
+ /**
17207
+ * Every merchant risk action kind and whether this platform can use it,
17208
+ * with its default mode, its scopes and what it blocks.
17209
+ *
17210
+ * `GET /admin-portal/risk/actions/catalog`
17211
+ */
17212
+ async getMerchantRiskActionCatalog() {
17213
+ return this.request("GET", "/admin-portal/risk/actions/catalog");
17214
+ }
17215
+ /**
17216
+ * Which merchants a risk policy, saved or not, would put in each stage now,
17217
+ * from their stored signals, and what each action would block there.
17218
+ * Writes nothing. A policy a settings write would refuse is refused the
17219
+ * same way (HTTP 422).
17220
+ *
17221
+ * `POST /admin-portal/risk/policy/preview`
17222
+ */
17223
+ async previewMerchantRiskPolicy(params) {
17224
+ return this.request("POST", "/admin-portal/risk/policy/preview", { body: params });
17225
+ }
17164
17226
  };
17165
17227
  function transactionListQuery(params) {
17166
17228
  if (!params) return void 0;