@delopay/sdk 0.319.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