@delopay/sdk 0.141.0 → 0.142.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
@@ -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
- * is a plain read — it costs the merchant nothing and is safe to call twice.
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` */