@delopay/sdk 0.326.0 → 0.330.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-DB725WRJ.js → chunk-UOU5JU35.js} +54 -1
- package/dist/chunk-UOU5JU35.js.map +1 -0
- package/dist/{index-AF0ehsYg.d.cts → index-rPQTPa8y.d.cts} +168 -4
- package/dist/{index-AF0ehsYg.d.ts → index-rPQTPa8y.d.ts} +168 -4
- package/dist/index.cjs +53 -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 +53 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +18 -17
- package/dist/chunk-DB725WRJ.js.map +0 -1
|
@@ -1196,6 +1196,51 @@ var Customers = class {
|
|
|
1196
1196
|
constructor(request) {
|
|
1197
1197
|
this.request = request;
|
|
1198
1198
|
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Check identity import rows (email addresses, names, handles) and say what an import would do
|
|
1201
|
+
* with each. Writes nothing. Merchant-wide callers only.
|
|
1202
|
+
*/
|
|
1203
|
+
async previewIdentityImport(params, options) {
|
|
1204
|
+
return this.request("POST", "/customers/identity-history/import/preview", {
|
|
1205
|
+
body: params,
|
|
1206
|
+
...options
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* Record identity import rows in the customers' identity history, apart from their current
|
|
1211
|
+
* details. Idempotent per `idempotency_key`; the same key with different rows is refused (400, `IR_38`).
|
|
1212
|
+
* A transient failure is retried with the unchanged key when client retries are enabled.
|
|
1213
|
+
*/
|
|
1214
|
+
async importIdentityHistory(params, options) {
|
|
1215
|
+
return this.request("POST", "/customers/identity-history/import", {
|
|
1216
|
+
body: params,
|
|
1217
|
+
...options,
|
|
1218
|
+
bodyIdempotencyKey: params.idempotency_key
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
/** Read an identity import back: its rows and the history entries they map to. */
|
|
1222
|
+
async retrieveIdentityImport(runId, options) {
|
|
1223
|
+
return this.request("GET", `/customers/identity-history/import/${encodeURIComponent(runId)}`, {
|
|
1224
|
+
...options
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
/** The identity history of up to 1,000 customers. */
|
|
1228
|
+
async listIdentityHistory(params, options) {
|
|
1229
|
+
return this.request("POST", "/customers/identity-history/list", {
|
|
1230
|
+
body: params,
|
|
1231
|
+
...options
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Search the merchant's identity history for email addresses, names and handles containing a
|
|
1236
|
+
* text of at least three characters. The text travels in the body, never in the URL.
|
|
1237
|
+
*/
|
|
1238
|
+
async searchIdentityHistory(params, options) {
|
|
1239
|
+
return this.request("POST", "/customers/identity-history/search", {
|
|
1240
|
+
body: params,
|
|
1241
|
+
...options
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1199
1244
|
/** Issue a shop-scoped buyer portal link for this customer. */
|
|
1200
1245
|
async createPortalLink(customerId, params, options) {
|
|
1201
1246
|
return this.request("POST", `/customers/${encodeURIComponent(customerId)}/portal-links`, {
|
|
@@ -2034,6 +2079,14 @@ var Events = class {
|
|
|
2034
2079
|
async list(merchantId, params) {
|
|
2035
2080
|
return this.request("POST", `/events/${encodeURIComponent(merchantId)}`, { body: params });
|
|
2036
2081
|
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Every delivery attempt of one event, initial attempt first.
|
|
2084
|
+
* `GET /events/{merchant_id}/{event_id}/attempts`
|
|
2085
|
+
*
|
|
2086
|
+
* Each entry describes one attempt: `attempt_delivered` is that attempt's own
|
|
2087
|
+
* result, while `is_delivery_successful` and `delivery_terminal_reason` are
|
|
2088
|
+
* the event's and read the same on every entry.
|
|
2089
|
+
*/
|
|
2037
2090
|
async listDeliveryAttempts(merchantId, eventId) {
|
|
2038
2091
|
return this.request(
|
|
2039
2092
|
"GET",
|
|
@@ -15946,4 +15999,4 @@ export {
|
|
|
15946
15999
|
decodeNativePanes,
|
|
15947
16000
|
encodeNativePanes
|
|
15948
16001
|
};
|
|
15949
|
-
//# sourceMappingURL=chunk-
|
|
16002
|
+
//# sourceMappingURL=chunk-UOU5JU35.js.map
|