@delopay/sdk 0.123.0 → 0.124.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-4TVKPQTZ.js} +27 -1
- package/dist/chunk-4TVKPQTZ.js.map +1 -0
- package/dist/index.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -1
- package/dist/index.d.ts +138 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +26 -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 });
|
|
@@ -7361,4 +7387,4 @@ export {
|
|
|
7361
7387
|
decodeNativePanes,
|
|
7362
7388
|
encodeNativePanes
|
|
7363
7389
|
};
|
|
7364
|
-
//# sourceMappingURL=chunk-
|
|
7390
|
+
//# sourceMappingURL=chunk-4TVKPQTZ.js.map
|