@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/{chunk-4QNMF3GL.js → chunk-5OGNNLHP.js} +22 -3
- package/dist/chunk-5OGNNLHP.js.map +1 -0
- package/dist/{index-BDkbJukm.d.cts → index-TnZlF8q3.d.cts} +140 -23
- package/dist/{index-BDkbJukm.d.ts → index-TnZlF8q3.d.ts} +140 -23
- package/dist/index.cjs +21 -2
- 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 +21 -2
- 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 +18 -17
- package/dist/chunk-4QNMF3GL.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -4528,7 +4528,8 @@ var CheckoutThemeConversion = class {
|
|
|
4528
4528
|
* that governs seeing how a checkout looks.
|
|
4529
4529
|
*
|
|
4530
4530
|
* @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
|
|
4531
|
-
* shop,
|
|
4531
|
+
* shop, the dimension to group by, and the optional `device_class`,
|
|
4532
|
+
* `country` and `selection` filters.
|
|
4532
4533
|
*
|
|
4533
4534
|
* @example Which variant wins on which device, over the last 30 days.
|
|
4534
4535
|
* ```typescript
|
|
@@ -4551,7 +4552,10 @@ var CheckoutThemeConversion = class {
|
|
|
4551
4552
|
profile_id: params.profile_id,
|
|
4552
4553
|
start: params.start,
|
|
4553
4554
|
end: params.end,
|
|
4554
|
-
segment: params.segment
|
|
4555
|
+
segment: params.segment,
|
|
4556
|
+
device_class: params.device_class ?? void 0,
|
|
4557
|
+
country: params.country ?? void 0,
|
|
4558
|
+
selection: params.selection ?? void 0
|
|
4555
4559
|
}
|
|
4556
4560
|
});
|
|
4557
4561
|
}
|
|
@@ -9212,6 +9216,21 @@ var BuyerPortal = class {
|
|
|
9212
9216
|
async updateProfile(params, options) {
|
|
9213
9217
|
return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
|
|
9214
9218
|
}
|
|
9219
|
+
/**
|
|
9220
|
+
* Change the buyer's email address, as the profile's `email_policy` allows:
|
|
9221
|
+
* `request` names the new address, and under a `confirm_new` policy
|
|
9222
|
+
* `confirm` completes it with the proof sent there. A refusal comes back as
|
|
9223
|
+
* an outcome with `status: 'refused'`; a 403 means the policy does not let
|
|
9224
|
+
* the buyer change the address at all, and a 429 that the request limit was
|
|
9225
|
+
* reached.
|
|
9226
|
+
* `POST /buyer-portal/profile/contact-email`
|
|
9227
|
+
*/
|
|
9228
|
+
async changeContactEmail(command, options) {
|
|
9229
|
+
return this.request("POST", "/buyer-portal/profile/contact-email", {
|
|
9230
|
+
body: command,
|
|
9231
|
+
...options
|
|
9232
|
+
});
|
|
9233
|
+
}
|
|
9215
9234
|
/**
|
|
9216
9235
|
* Ask the shop for a refund of one of the buyer's purchases, named by its
|
|
9217
9236
|
* `id` from `listPurchases()`. Nothing is refunded until the shop approves
|