@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.cjs
CHANGED
|
@@ -4510,7 +4510,8 @@ var CheckoutThemeConversion = class {
|
|
|
4510
4510
|
* that governs seeing how a checkout looks.
|
|
4511
4511
|
*
|
|
4512
4512
|
* @param params - Window (RFC3339, `start` inclusive / `end` exclusive), the
|
|
4513
|
-
* shop,
|
|
4513
|
+
* shop, the dimension to group by, and the optional `device_class`,
|
|
4514
|
+
* `country` and `selection` filters.
|
|
4514
4515
|
*
|
|
4515
4516
|
* @example Which variant wins on which device, over the last 30 days.
|
|
4516
4517
|
* ```typescript
|
|
@@ -4533,7 +4534,10 @@ var CheckoutThemeConversion = class {
|
|
|
4533
4534
|
profile_id: params.profile_id,
|
|
4534
4535
|
start: params.start,
|
|
4535
4536
|
end: params.end,
|
|
4536
|
-
segment: params.segment
|
|
4537
|
+
segment: params.segment,
|
|
4538
|
+
device_class: params.device_class ?? void 0,
|
|
4539
|
+
country: params.country ?? void 0,
|
|
4540
|
+
selection: params.selection ?? void 0
|
|
4537
4541
|
}
|
|
4538
4542
|
});
|
|
4539
4543
|
}
|
|
@@ -9194,6 +9198,21 @@ var BuyerPortal = class {
|
|
|
9194
9198
|
async updateProfile(params, options) {
|
|
9195
9199
|
return this.request("POST", "/buyer-portal/profile", { body: params, ...options });
|
|
9196
9200
|
}
|
|
9201
|
+
/**
|
|
9202
|
+
* Change the buyer's email address, as the profile's `email_policy` allows:
|
|
9203
|
+
* `request` names the new address, and under a `confirm_new` policy
|
|
9204
|
+
* `confirm` completes it with the proof sent there. A refusal comes back as
|
|
9205
|
+
* an outcome with `status: 'refused'`; a 403 means the policy does not let
|
|
9206
|
+
* the buyer change the address at all, and a 429 that the request limit was
|
|
9207
|
+
* reached.
|
|
9208
|
+
* `POST /buyer-portal/profile/contact-email`
|
|
9209
|
+
*/
|
|
9210
|
+
async changeContactEmail(command, options) {
|
|
9211
|
+
return this.request("POST", "/buyer-portal/profile/contact-email", {
|
|
9212
|
+
body: command,
|
|
9213
|
+
...options
|
|
9214
|
+
});
|
|
9215
|
+
}
|
|
9197
9216
|
/**
|
|
9198
9217
|
* Ask the shop for a refund of one of the buyer's purchases, named by its
|
|
9199
9218
|
* `id` from `listPurchases()`. Nothing is refunded until the shop approves
|