@delopay/sdk 0.323.0 → 0.326.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) {
@@ -3648,6 +3627,30 @@ var Refunds = class {
3648
3627
  async list(params) {
3649
3628
  return this.request("POST", "/refunds/list", { body: params });
3650
3629
  }
3630
+ /**
3631
+ * Every identifier a block of each selected refund's buyer would name,
3632
+ * changing nothing: the payment's email and customer id, and every IP
3633
+ * address and device id seen on its checkout, each with where it was seen
3634
+ * and whether it is already blocked. Name the refunds by `ids` or by the
3635
+ * list's `filters`, exactly one of the two; at most `max_refunds` are read.
3636
+ *
3637
+ * `POST /refunds/bulk/block-buyer/preview`. Needs a dashboard JWT.
3638
+ */
3639
+ async bulkBlockPreview(request) {
3640
+ return this.request("POST", "/refunds/bulk/block-buyer/preview", { body: request });
3641
+ }
3642
+ /**
3643
+ * Add the buyer of each listed refund's payment to the buyer blocklist with
3644
+ * the chosen `kinds`, leaving out the `exclude`d identifiers, at most the
3645
+ * preview's `max_run_refunds` per call. The server reads each payment again;
3646
+ * it never blocks a value the request names. Identifiers already blocked
3647
+ * are not added again, and every refund gets its own result.
3648
+ *
3649
+ * `POST /refunds/bulk/block-buyer`. Needs a dashboard JWT.
3650
+ */
3651
+ async bulkBlockBuyer(request) {
3652
+ return this.request("POST", "/refunds/bulk/block-buyer", { body: request });
3653
+ }
3651
3654
  // --- OLAP extensions (Task 4.3) ---
3652
3655
  /**
3653
3656
  * Refund requests buyers raised from the customer portal, newest first.
@@ -6421,6 +6424,72 @@ var BuyerBlocklist = class {
6421
6424
  body: params ?? {}
6422
6425
  });
6423
6426
  }
6427
+ /**
6428
+ * Block the buyer of a payment by the identifiers the payment carries:
6429
+ * its card (the Stripe fingerprint), email, IP, device or customer, in the
6430
+ * payment's shop or in every shop.
6431
+ * `POST /buyer-blocklist/from-payment`
6432
+ */
6433
+ async createFromPayment(params) {
6434
+ return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
6435
+ }
6436
+ /**
6437
+ * Retry now every failed or pending Radar sync of an entry.
6438
+ * `POST /buyer-blocklist/{entry_id}/sync/retry`
6439
+ */
6440
+ async retrySync(entryId) {
6441
+ return this.request("POST", `/buyer-blocklist/${encodeURIComponent(entryId)}/sync/retry`);
6442
+ }
6443
+ /**
6444
+ * The Radar sync settings of every Stripe connection the caller sees. A
6445
+ * role that hides processor names is refused (403).
6446
+ * `GET /buyer-blocklist/radar-sync`
6447
+ */
6448
+ async listRadarSync() {
6449
+ return this.request("GET", "/buyer-blocklist/radar-sync");
6450
+ }
6451
+ /**
6452
+ * The Radar sync settings of one Stripe connection.
6453
+ * `GET /buyer-blocklist/radar-sync/{merchant_connector_id}`
6454
+ */
6455
+ async retrieveRadarSync(merchantConnectorId) {
6456
+ return this.request(
6457
+ "GET",
6458
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`
6459
+ );
6460
+ }
6461
+ /**
6462
+ * Turn Radar sync on or off for one Stripe connection and set what an
6463
+ * early fraud warning or a review does.
6464
+ * `PUT /buyer-blocklist/radar-sync/{merchant_connector_id}`
6465
+ */
6466
+ async updateRadarSync(merchantConnectorId, params) {
6467
+ return this.request(
6468
+ "PUT",
6469
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}`,
6470
+ { body: params }
6471
+ );
6472
+ }
6473
+ /**
6474
+ * Remove every item DeloPay synced from this connection's Radar lists. The
6475
+ * lists themselves are kept.
6476
+ * `POST /buyer-blocklist/radar-sync/{merchant_connector_id}/remove-items`
6477
+ */
6478
+ async removeRadarItems(merchantConnectorId) {
6479
+ return this.request(
6480
+ "POST",
6481
+ `/buyer-blocklist/radar-sync/${encodeURIComponent(merchantConnectorId)}/remove-items`
6482
+ );
6483
+ }
6484
+ /**
6485
+ * Stripe's fraud signals on a payment (risk, early fraud warnings,
6486
+ * reviews), what of its buyer can be blocked, and the entries that
6487
+ * already match it.
6488
+ * `GET /buyer-blocklist/fraud-signals/{payment_id}`
6489
+ */
6490
+ async fraudSignals(paymentId) {
6491
+ return this.request("GET", `/buyer-blocklist/fraud-signals/${encodeURIComponent(paymentId)}`);
6492
+ }
6424
6493
  };
6425
6494
 
6426
6495
  // src/resources/shopLabels.ts
@@ -10398,7 +10467,6 @@ var Delopay = class {
10398
10467
  this.users = new Users(request);
10399
10468
  this.apiKeys = new ApiKeys(request);
10400
10469
  this.billing = new Billing(request);
10401
- this.blocklist = new Blocklist(request);
10402
10470
  this.fees = new Fees(request);
10403
10471
  this.merchantAccounts = new MerchantAccounts(request);
10404
10472
  this.projects = new Projects(request);
@@ -15878,4 +15946,4 @@ export {
15878
15946
  decodeNativePanes,
15879
15947
  encodeNativePanes
15880
15948
  };
15881
- //# sourceMappingURL=chunk-5OGNNLHP.js.map
15949
+ //# sourceMappingURL=chunk-DB725WRJ.js.map