@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.
@@ -8906,6 +8906,21 @@ var BuyerPortal = class {
8906
8906
  async updateProfile(params, options) {
8907
8907
  return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
8908
8908
  }
8909
+ /**
8910
+ * Change the buyer's email address, as the profile's `email_policy` allows:
8911
+ * `request` names the new address, and under a `confirm_new` policy
8912
+ * `confirm` completes it with the proof sent there. A refusal comes back as
8913
+ * an outcome with `status: 'refused'`; a 403 means the policy does not let
8914
+ * the buyer change the address at all, and a 429 that the request limit was
8915
+ * reached.
8916
+ * `POST /buyer-portal/profile/contact-email`
8917
+ */
8918
+ async changeContactEmail(command, options) {
8919
+ return this.request("POST", "/buyer-portal/profile/contact-email", {
8920
+ body: command,
8921
+ ...options
8922
+ });
8923
+ }
8909
8924
  /**
8910
8925
  * Ask the shop for a refund of one of the buyer's purchases, named by its
8911
8926
  * `id` from `listPurchases()`. Nothing is refunded until the shop approves
@@ -15859,4 +15874,4 @@ export {
15859
15874
  decodeNativePanes,
15860
15875
  encodeNativePanes
15861
15876
  };
15862
- //# sourceMappingURL=chunk-4QNMF3GL.js.map
15877
+ //# sourceMappingURL=chunk-SKSZ6A5U.js.map