@delopay/sdk 0.124.0 → 0.125.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
@@ -2541,6 +2541,23 @@ var Routing = class {
2541
2541
  async connectorCaps(profileId) {
2542
2542
  return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
2543
2543
  }
2544
+ /**
2545
+ * The live `routing_volume` counters behind a shop's active advanced
2546
+ * program: one per distinct budget the program reads, each with the window
2547
+ * it covers, the figure in the pinned threshold currency, and the rules that
2548
+ * read it. Lets a merchant see whether a `routing_volume < 50000` rule is at
2549
+ * 120 or at 499 today, and support answer why a payment went to the overflow
2550
+ * connector.
2551
+ *
2552
+ * What routing will use right now, not what the shop turned over: the
2553
+ * counters are held in Redis only and a lost Redis restarts the window at
2554
+ * zero. Read-only; needs the same permission as reading the rules.
2555
+ *
2556
+ * `GET /routing/volume-counters/{profileId}`
2557
+ */
2558
+ async volumeCounters(profileId) {
2559
+ return this.request("GET", `/routing/volume-counters/${encodeURIComponent(profileId)}`);
2560
+ }
2544
2561
  /**
2545
2562
  * Replace a shop's per-connector payment caps.
2546
2563
  *