@delopay/sdk 0.338.0 → 0.342.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/index.cjs CHANGED
@@ -4367,6 +4367,20 @@ var Routing = class {
4367
4367
  body: params
4368
4368
  });
4369
4369
  }
4370
+ /**
4371
+ * Reset one limit's usage for the window open now: what settled payments
4372
+ * spent stops counting, so the account takes payments again. Payments still
4373
+ * in flight keep their hold and count once they complete. The account's
4374
+ * other limit is untouched. Offered by a router that lists `usage_reset` in
4375
+ * `features`; refused (422) for an account with no limit in that unit.
4376
+ *
4377
+ * `POST /routing/connector-caps/{profileId}/reset`
4378
+ */
4379
+ async resetConnectorCapUsage(profileId, params) {
4380
+ return this.request("POST", `/routing/connector-caps/${encodeURIComponent(profileId)}/reset`, {
4381
+ body: params
4382
+ });
4383
+ }
4370
4384
  /**
4371
4385
  * List all routing algorithms for the current merchant.
4372
4386
  *
@@ -6905,12 +6919,44 @@ var BuyerBlocklist = class {
6905
6919
  /**
6906
6920
  * Block the buyer of a payment by the identifiers the payment carries:
6907
6921
  * its card (the Stripe fingerprint), email, IP, device or customer, in the
6908
- * payment's shop or in every shop.
6922
+ * payment's shop or in every shop. With `all_ips`, also every address the
6923
+ * buyer was seen paying from, one entry each, grouped under one
6924
+ * `group_id`; the answer then carries `ip_snapshot`.
6909
6925
  * `POST /buyer-blocklist/from-payment`
6910
6926
  */
6911
6927
  async createFromPayment(params) {
6912
6928
  return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
6913
6929
  }
6930
+ /**
6931
+ * The addresses an "all IPs" block of a payment's buyer would take: the
6932
+ * payment's own, then those its device, email or card were seen at in the
6933
+ * last 90 days, newest first, at most 20. An address shared with two or
6934
+ * more other buyers is offered but not preselected. Writes nothing; needs
6935
+ * the same permissions as the block.
6936
+ * `POST /buyer-blocklist/from-payment/preview`
6937
+ */
6938
+ async previewFromPayment(params) {
6939
+ return this.request("POST", "/buyer-blocklist/from-payment/preview", { body: params });
6940
+ }
6941
+ /**
6942
+ * An entry's recorded refusals, newest first, with where each happened and
6943
+ * which identifier matched. A caller scoped to one shop reaches only its own
6944
+ * shop's entries.
6945
+ * `GET /buyer-blocklist/{entry_id}/events`
6946
+ */
6947
+ async listEvents(entryId, params) {
6948
+ return this.request("GET", `/buyer-blocklist/${encodeURIComponent(entryId)}/events`, {
6949
+ query: params
6950
+ });
6951
+ }
6952
+ /**
6953
+ * Which classes of network an `ip_class` entry can be judged by on this
6954
+ * deployment now, and by which sources.
6955
+ * `GET /buyer-blocklist/capabilities`
6956
+ */
6957
+ async capabilities() {
6958
+ return this.request("GET", "/buyer-blocklist/capabilities");
6959
+ }
6914
6960
  /**
6915
6961
  * Retry now every failed or pending Radar sync of an entry.
6916
6962
  * `POST /buyer-blocklist/{entry_id}/sync/retry`