@delopay/sdk 0.123.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/{chunk-JQXBXZ2L.js → chunk-VJIRHNXT.js} +44 -1
- package/dist/chunk-VJIRHNXT.js.map +1 -0
- package/dist/index.cjs +43 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +441 -2
- package/dist/index.d.ts +441 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +43 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +17 -18
- package/dist/chunk-JQXBXZ2L.js.map +0 -1
|
@@ -640,6 +640,32 @@ var Connectors = class {
|
|
|
640
640
|
{ body: params }
|
|
641
641
|
);
|
|
642
642
|
}
|
|
643
|
+
/**
|
|
644
|
+
* What the processor says about this connector account: whether it will
|
|
645
|
+
* accept charges, which capabilities are live, and anything it is still
|
|
646
|
+
* waiting on.
|
|
647
|
+
*
|
|
648
|
+
* This is **not** {@link Connectors.verify}. That one asks whether the stored
|
|
649
|
+
* credentials work, by running a test-card authorization; a processor can
|
|
650
|
+
* revoke an account's ability to take payments while the credentials stay
|
|
651
|
+
* perfectly valid, and then a credential check reports healthy while every
|
|
652
|
+
* checkout silently stalls. This asks the account's own status instead, and
|
|
653
|
+
* is a plain read — it costs the merchant nothing and is safe to call twice.
|
|
654
|
+
*
|
|
655
|
+
* Connectors with no probe answer `state: 'unknown'` with
|
|
656
|
+
* `unknown_reason: 'connector_not_supported'`, rather than an error — every
|
|
657
|
+
* `'unknown'` carries a reason code you render your own words for. A router
|
|
658
|
+
* without this endpoint answers 404 — render that as "this build cannot
|
|
659
|
+
* report health", never as "healthy".
|
|
660
|
+
*
|
|
661
|
+
* `GET /account/{accountId}/connectors/{connectorId}/health`
|
|
662
|
+
*/
|
|
663
|
+
async health(accountId, connectorId) {
|
|
664
|
+
return this.request(
|
|
665
|
+
"GET",
|
|
666
|
+
`/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/health`
|
|
667
|
+
);
|
|
668
|
+
}
|
|
643
669
|
/** Verify connector credentials. `POST /account/connectors/verify` */
|
|
644
670
|
async verify(params) {
|
|
645
671
|
return this.request("POST", "/account/connectors/verify", { body: params });
|
|
@@ -2358,6 +2384,23 @@ var Routing = class {
|
|
|
2358
2384
|
async connectorCaps(profileId) {
|
|
2359
2385
|
return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
|
|
2360
2386
|
}
|
|
2387
|
+
/**
|
|
2388
|
+
* The live `routing_volume` counters behind a shop's active advanced
|
|
2389
|
+
* program: one per distinct budget the program reads, each with the window
|
|
2390
|
+
* it covers, the figure in the pinned threshold currency, and the rules that
|
|
2391
|
+
* read it. Lets a merchant see whether a `routing_volume < 50000` rule is at
|
|
2392
|
+
* 120 or at 499 today, and support answer why a payment went to the overflow
|
|
2393
|
+
* connector.
|
|
2394
|
+
*
|
|
2395
|
+
* What routing will use right now, not what the shop turned over: the
|
|
2396
|
+
* counters are held in Redis only and a lost Redis restarts the window at
|
|
2397
|
+
* zero. Read-only; needs the same permission as reading the rules.
|
|
2398
|
+
*
|
|
2399
|
+
* `GET /routing/volume-counters/{profileId}`
|
|
2400
|
+
*/
|
|
2401
|
+
async volumeCounters(profileId) {
|
|
2402
|
+
return this.request("GET", `/routing/volume-counters/${encodeURIComponent(profileId)}`);
|
|
2403
|
+
}
|
|
2361
2404
|
/**
|
|
2362
2405
|
* Replace a shop's per-connector payment caps.
|
|
2363
2406
|
*
|
|
@@ -7361,4 +7404,4 @@ export {
|
|
|
7361
7404
|
decodeNativePanes,
|
|
7362
7405
|
encodeNativePanes
|
|
7363
7406
|
};
|
|
7364
|
-
//# sourceMappingURL=chunk-
|
|
7407
|
+
//# sourceMappingURL=chunk-VJIRHNXT.js.map
|