@delopay/sdk 0.323.0 → 0.329.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.
@@ -527,27 +527,6 @@ var Billing = class {
527
527
  }
528
528
  };
529
529
 
530
- // src/resources/blocklist.ts
531
- var Blocklist = class {
532
- constructor(request) {
533
- this.request = request;
534
- }
535
- async add(params) {
536
- return this.request("POST", "/blocklist", { body: params });
537
- }
538
- async remove(params) {
539
- return this.request("DELETE", "/blocklist", { body: params });
540
- }
541
- async list(params) {
542
- return this.request("GET", "/blocklist", {
543
- query: params
544
- });
545
- }
546
- async toggle(params) {
547
- return this.request("POST", "/blocklist/toggle", { body: params });
548
- }
549
- };
550
-
551
530
  // src/resources/connectors.ts
552
531
  var Connectors = class {
553
532
  constructor(request) {
@@ -2055,6 +2034,14 @@ var Events = class {
2055
2034
  async list(merchantId, params) {
2056
2035
  return this.request("POST", `/events/${encodeURIComponent(merchantId)}`, { body: params });
2057
2036
  }
2037
+ /**
2038
+ * Every delivery attempt of one event, initial attempt first.
2039
+ * `GET /events/{merchant_id}/{event_id}/attempts`
2040
+ *
2041
+ * Each entry describes one attempt: `attempt_delivered` is that attempt's own
2042
+ * result, while `is_delivery_successful` and `delivery_terminal_reason` are
2043
+ * the event's and read the same on every entry.
2044
+ */
2058
2045
  async listDeliveryAttempts(merchantId, eventId) {
2059
2046
  return this.request(
2060
2047
  "GET",
@@ -3648,6 +3635,30 @@ var Refunds = class {
3648
3635
  async list(params) {
3649
3636
  return this.request("POST", "/refunds/list", { body: params });
3650
3637
  }
3638
+ /**
3639
+ * Every identifier a block of each selected refund's buyer would name,
3640
+ * changing nothing: the payment's email and customer id, and every IP
3641
+ * address and device id seen on its checkout, each with where it was seen
3642
+ * and whether it is already blocked. Name the refunds by `ids` or by the
3643
+ * list's `filters`, exactly one of the two; at most `max_refunds` are read.
3644
+ *
3645
+ * `POST /refunds/bulk/block-buyer/preview`. Needs a dashboard JWT.
3646
+ */
3647
+ async bulkBlockPreview(request) {
3648
+ return this.request("POST", "/refunds/bulk/block-buyer/preview", { body: request });
3649
+ }
3650
+ /**
3651
+ * Add the buyer of each listed refund's payment to the buyer blocklist with
3652
+ * the chosen `kinds`, leaving out the `exclude`d identifiers, at most the
3653
+ * preview's `max_run_refunds` per call. The server reads each payment again;
3654
+ * it never blocks a value the request names. Identifiers already blocked
3655
+ * are not added again, and every refund gets its own result.
3656
+ *
3657
+ * `POST /refunds/bulk/block-buyer`. Needs a dashboard JWT.
3658
+ */
3659
+ async bulkBlockBuyer(request) {
3660
+ return this.request("POST", "/refunds/bulk/block-buyer", { body: request });
3661
+ }
3651
3662
  // --- OLAP extensions (Task 4.3) ---
3652
3663
  /**
3653
3664
  * Refund requests buyers raised from the customer portal, newest first.
@@ -6421,6 +6432,72 @@ var BuyerBlocklist = class {
6421
6432
  body: params ?? {}
6422
6433
  });
6423
6434
  }
6435
+ /**
6436
+ * Block the buyer of a payment by the identifiers the payment carries:
6437
+ * its card (the Stripe fingerprint), email, IP, device or customer, in the
6438
+ * payment's shop or in every shop.
6439
+ * `POST /buyer-blocklist/from-payment`
6440
+ */
6441
+ async createFromPayment(params) {
6442
+ return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
6443
+ }
6444
+ /**
6445
+ * Retry now every failed or pending Radar sync of an entry.
6446
+ * `POST /buyer-blocklist/{entry_id}/sync/retry`
6447
+ */
6448
+ async retrySync(entryId) {
6449
+ return this.request("POST", `/buyer-blocklist/${encodeURIComponent(entryId)}/sync/retry`);
6450
+ }
6451
+ /**
6452
+ * The Radar sync settings of every Stripe connection the caller sees. A
6453
+ * role that hides processor names is refused (403).
6454
+ * `GET /buyer-blocklist/radar-sync`
6455
+ */
6456
+ async listRadarSync() {
6457
+ return this.request("GET", "/buyer-blocklist/radar-sync");
6458
+ }
6459
+ /**
6460
+ * The Radar sync settings of one Stripe connection.
6461
+ * `GET /buyer-blocklist/radar-sync/{merchant_connector_id}`
6462
+ */
6463
+ async retrieveRadarSync(merchantConnectorId) {
6464
+ return this.request(
6465
+ "GET",
6466
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`
6467
+ );
6468
+ }
6469
+ /**
6470
+ * Turn Radar sync on or off for one Stripe connection and set what an
6471
+ * early fraud warning or a review does.
6472
+ * `PUT /buyer-blocklist/radar-sync/{merchant_connector_id}`
6473
+ */
6474
+ async updateRadarSync(merchantConnectorId, params) {
6475
+ return this.request(
6476
+ "PUT",
6477
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`,
6478
+ { body: params }
6479
+ );
6480
+ }
6481
+ /**
6482
+ * Remove every item DeloPay synced from this connection's Radar lists. The
6483
+ * lists themselves are kept.
6484
+ * `POST /buyer-blocklist/radar-sync/{merchant_connector_id}/remove-items`
6485
+ */
6486
+ async removeRadarItems(merchantConnectorId) {
6487
+ return this.request(
6488
+ "POST",
6489
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}/remove-items`
6490
+ );
6491
+ }
6492
+ /**
6493
+ * Stripe's fraud signals on a payment (risk, early fraud warnings,
6494
+ * reviews), what of its buyer can be blocked, and the entries that
6495
+ * already match it.
6496
+ * `GET /buyer-blocklist/fraud-signals/{payment_id}`
6497
+ */
6498
+ async fraudSignals(paymentId) {
6499
+ return this.request("GET", `/buyer-blocklist/fraud-signals/${encodeURIComponent(paymentId)}`);
6500
+ }
6424
6501
  };
6425
6502
 
6426
6503
  // src/resources/shopLabels.ts
@@ -10398,7 +10475,6 @@ var Delopay = class {
10398
10475
  this.users = new Users(request);
10399
10476
  this.apiKeys = new ApiKeys(request);
10400
10477
  this.billing = new Billing(request);
10401
- this.blocklist = new Blocklist(request);
10402
10478
  this.fees = new Fees(request);
10403
10479
  this.merchantAccounts = new MerchantAccounts(request);
10404
10480
  this.projects = new Projects(request);
@@ -15878,4 +15954,4 @@ export {
15878
15954
  decodeNativePanes,
15879
15955
  encodeNativePanes
15880
15956
  };
15881
- //# sourceMappingURL=chunk-5OGNNLHP.js.map
15957
+ //# sourceMappingURL=chunk-NKAIFOCG.js.map