@delopay/sdk 0.141.0 → 0.143.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-YZABVF2X.js → chunk-SV2BCXV6.js} +8 -4
- package/dist/chunk-SV2BCXV6.js.map +1 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -8
- package/dist/index.d.ts +32 -8
- package/dist/index.js +1 -1
- package/dist/internal.cjs +15 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +12 -2
- package/dist/internal.d.ts +12 -2
- package/dist/internal.js +9 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-YZABVF2X.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -834,7 +834,10 @@ var Connectors = class {
|
|
|
834
834
|
* revoke an account's ability to take payments while the credentials stay
|
|
835
835
|
* perfectly valid, and then a credential check reports healthy while every
|
|
836
836
|
* checkout silently stalls. This asks the account's own status instead, and
|
|
837
|
-
*
|
|
837
|
+
* does not create a payment. By default it reads a scheduler snapshot;
|
|
838
|
+
* `refresh: true` asks for a new probe and `stale` identifies an overdue result.
|
|
839
|
+
* `test_mode` selects the requested environment; `credential_source` identifies
|
|
840
|
+
* a sandbox, live or shared credential set. Not every provider reports chargeability.
|
|
838
841
|
*
|
|
839
842
|
* Connectors with no probe answer `state: 'unknown'` with
|
|
840
843
|
* `unknown_reason: 'connector_not_supported'`, rather than an error — every
|
|
@@ -844,10 +847,11 @@ var Connectors = class {
|
|
|
844
847
|
*
|
|
845
848
|
* `GET /account/{accountId}/connectors/{connectorId}/health`
|
|
846
849
|
*/
|
|
847
|
-
async health(accountId, connectorId) {
|
|
850
|
+
async health(accountId, connectorId, options) {
|
|
848
851
|
return this.request(
|
|
849
852
|
"GET",
|
|
850
|
-
`/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/health
|
|
853
|
+
`/account/${encodeURIComponent(accountId)}/connectors/${encodeURIComponent(connectorId)}/health`,
|
|
854
|
+
{ query: options }
|
|
851
855
|
);
|
|
852
856
|
}
|
|
853
857
|
/** Verify connector credentials. `POST /account/connectors/verify` */
|