@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/{chunk-4QNMF3GL.js → chunk-SKSZ6A5U.js} +16 -1
- package/dist/chunk-SKSZ6A5U.js.map +1 -0
- package/dist/{index-BDkbJukm.d.cts → index-DhWICEM_.d.cts} +116 -21
- package/dist/{index-BDkbJukm.d.ts → index-DhWICEM_.d.ts} +116 -21
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +8 -2
- package/dist/internal.d.ts +8 -2
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4QNMF3GL.js.map +0 -1
package/dist/index.js
CHANGED
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
|