@delopay/sdk 0.329.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.
@@ -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`, {
@@ -15954,4 +15999,4 @@ export {
15954
15999
  decodeNativePanes,
15955
16000
  encodeNativePanes
15956
16001
  };
15957
- //# sourceMappingURL=chunk-NKAIFOCG.js.map
16002
+ //# sourceMappingURL=chunk-UOU5JU35.js.map