@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.cjs CHANGED
@@ -4510,7 +4510,8 @@ var CheckoutThemeConversion = class {
4510
4510
  * that governs seeing how a checkout looks.
4511
4511
  *
4512
4512
  * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
4513
- * shop, and the dimension to group by.
4513
+ * shop, the dimension to group by, and the optional `device_class`,
4514
+ * `country` and `selection` filters.
4514
4515
  *
4515
4516
  * @example Which variant wins on which device, over the last 30 days.
4516
4517
  * ```typescript
@@ -4533,7 +4534,10 @@ var CheckoutThemeConversion = class {
4533
4534
  profile_id: params.profile_id,
4534
4535
  start: params.start,
4535
4536
  end: params.end,
4536
- segment: params.segment
4537
+ segment: params.segment,
4538
+ device_class: params.device_class ?? void 0,
4539
+ country: params.country ?? void 0,
4540
+ selection: params.selection ?? void 0
4537
4541
  }
4538
4542
  });
4539
4543
  }
@@ -9194,6 +9198,21 @@ var BuyerPortal = class {
9194
9198
  async updateProfile(params, options) {
9195
9199
  return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
9196
9200
  }
9201
+ /**
9202
+ * Change the buyer's email address, as the profile's `email_policy` allows:
9203
+ * `request` names the new address, and under a `confirm_new` policy
9204
+ * `confirm` completes it with the proof sent there. A refusal comes back as
9205
+ * an outcome with `status: 'refused'`; a 403 means the policy does not let
9206
+ * the buyer change the address at all, and a 429 that the request limit was
9207
+ * reached.
9208
+ * `POST /buyer-portal/profile/contact-email`
9209
+ */
9210
+ async changeContactEmail(command, options) {
9211
+ return this.request("POST", "/buyer-portal/profile/contact-email", {
9212
+ body: command,
9213
+ ...options
9214
+ });
9215
+ }
9197
9216
  /**
9198
9217
  * Ask the shop for a refund of one of the buyer's purchases, named by its
9199
9218
  * `id` from `listPurchases()`. Nothing is refunded until the shop approves