@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.
@@ -4222,7 +4222,8 @@ var CheckoutThemeConversion = class {
4222
4222
  * that governs seeing how a checkout looks.
4223
4223
  *
4224
4224
  * @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
4225
- * shop, and the dimension to group by.
4225
+ * shop, the dimension to group by, and the optional `device_class`,
4226
+ * `country` and `selection` filters.
4226
4227
  *
4227
4228
  * @example Which variant wins on which device, over the last 30 days.
4228
4229
  * ```typescript
@@ -4245,7 +4246,10 @@ var CheckoutThemeConversion = class {
4245
4246
  profile_id: params.profile_id,
4246
4247
  start: params.start,
4247
4248
  end: params.end,
4248
- segment: params.segment
4249
+ segment: params.segment,
4250
+ device_class: params.device_class ?? void 0,
4251
+ country: params.country ?? void 0,
4252
+ selection: params.selection ?? void 0
4249
4253
  }
4250
4254
  });
4251
4255
  }
@@ -8906,6 +8910,21 @@ var BuyerPortal = class {
8906
8910
  async updateProfile(params, options) {
8907
8911
  return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
8908
8912
  }
8913
+ /**
8914
+ * Change the buyer's email address, as the profile's `email_policy` allows:
8915
+ * `request` names the new address, and under a `confirm_new` policy
8916
+ * `confirm` completes it with the proof sent there. A refusal comes back as
8917
+ * an outcome with `status: 'refused'`; a 403 means the policy does not let
8918
+ * the buyer change the address at all, and a 429 that the request limit was
8919
+ * reached.
8920
+ * `POST /buyer-portal/profile/contact-email`
8921
+ */
8922
+ async changeContactEmail(command, options) {
8923
+ return this.request("POST", "/buyer-portal/profile/contact-email", {
8924
+ body: command,
8925
+ ...options
8926
+ });
8927
+ }
8909
8928
  /**
8910
8929
  * Ask the shop for a refund of one of the buyer's purchases, named by its
8911
8930
  * `id` from `listPurchases()`. Nothing is refunded until the shop approves
@@ -15859,4 +15878,4 @@ export {
15859
15878
  decodeNativePanes,
15860
15879
  encodeNativePanes
15861
15880
  };
15862
- //# sourceMappingURL=chunk-4QNMF3GL.js.map
15881
+ //# sourceMappingURL=chunk-5OGNNLHP.js.map