@delopay/sdk 0.319.0 → 0.323.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-5OGNNLHP.js";
266
266
  export {
267
267
  AIRWALLEX_AUTOFILL_TREATMENTS,
268
268
  AIRWALLEX_CARD_LAYOUTS,
package/dist/internal.cjs CHANGED
@@ -4528,7 +4528,8 @@ var CheckoutThemeConversion = class {
4528
4528
  * that governs seeing how a checkout looks.
4529
4529
  *
4530
4530
  * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
4531
- * shop, and the dimension to group by.
4531
+ * shop, the dimension to group by, and the optional `device_class`,
4532
+ * `country` and `selection` filters.
4532
4533
  *
4533
4534
  * @example Which variant wins on which device, over the last 30 days.
4534
4535
  * ```typescript
@@ -4551,7 +4552,10 @@ var CheckoutThemeConversion = class {
4551
4552
  profile_id: params.profile_id,
4552
4553
  start: params.start,
4553
4554
  end: params.end,
4554
- segment: params.segment
4555
+ segment: params.segment,
4556
+ device_class: params.device_class ?? void 0,
4557
+ country: params.country ?? void 0,
4558
+ selection: params.selection ?? void 0
4555
4559
  }
4556
4560
  });
4557
4561
  }
@@ -9212,6 +9216,21 @@ var BuyerPortal = class {
9212
9216
  async updateProfile(params, options) {
9213
9217
  return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
9214
9218
  }
9219
+ /**
9220
+ * Change the buyer's email address, as the profile's `email_policy` allows:
9221
+ * `request` names the new address, and under a `confirm_new` policy
9222
+ * `confirm` completes it with the proof sent there. A refusal comes back as
9223
+ * an outcome with `status: 'refused'`; a 403 means the policy does not let
9224
+ * the buyer change the address at all, and a 429 that the request limit was
9225
+ * reached.
9226
+ * `POST /buyer-portal/profile/contact-email`
9227
+ */
9228
+ async changeContactEmail(command, options) {
9229
+ return this.request("POST", "/buyer-portal/profile/contact-email", {
9230
+ body: command,
9231
+ ...options
9232
+ });
9233
+ }
9215
9234
  /**
9216
9235
  * Ask the shop for a refund of one of the buyer's purchases, named by its
9217
9236
  * `id` from `listPurchases()`. Nothing is refunded until the shop approves