@delopay/sdk 0.69.0 → 0.70.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.
@@ -660,10 +660,14 @@ var Disputes = class {
660
660
  return this.request("PUT", "/disputes/evidence", { body: params });
661
661
  }
662
662
  /**
663
- * Retrieve previously submitted evidence for a dispute.
663
+ * Retrieve previously stored evidence for a dispute.
664
+ *
665
+ * Returns an ARRAY of file-evidence blocks (this was previously mistyped
666
+ * as the flat submit-request shape). Only file evidence is reported —
667
+ * text evidence is not retrievable once submitted.
664
668
  *
665
669
  * @param disputeId - The dispute ID.
666
- * @returns The submitted evidence.
670
+ * @returns The stored file-evidence blocks.
667
671
  */
668
672
  async retrieveEvidence(disputeId) {
669
673
  return this.request("GET", `/disputes/evidence/${encodeURIComponent(disputeId)}`);
@@ -701,16 +705,22 @@ var Disputes = class {
701
705
  return this.request("GET", "/disputes/profile/aggregate", { query: params });
702
706
  }
703
707
  /**
704
- * Fetch the latest dispute state from the connector (gateway).
705
- * `GET /disputes/{connectorId}/fetch`
708
+ * Fetch the latest dispute state from the connector (gateway) and persist it.
709
+ * `GET /disputes/{disputeId}?force_sync=true`
710
+ *
711
+ * The path parameter is the **Delopay dispute id** (`dp_…`). Force-sync asks the
712
+ * backend to pull the dispute from the connector (supported where the connector
713
+ * implements the dispute-sync flow, e.g. Stripe) and update the stored record
714
+ * before returning it.
706
715
  *
707
- * Note: the path parameter is the **connector dispute id** on the gateway, not the
708
- * Delopay dispute id. Method is GET (not POST) and this method signature was
709
- * previously wrongcallers depending on the old `POST /disputes/{id}/fetch_from_connector`
710
- * path were silently hitting 404s.
716
+ * Note: this method previously called `GET /disputes/{id}/fetch`, which is a
717
+ * different backend route a bulk import keyed by **merchant connector account
718
+ * id** with a required date range so every call with a dispute id failed.
711
719
  */
712
- async fetchFromConnector(connectorId) {
713
- return this.request("GET", `/disputes/${encodeURIComponent(connectorId)}/fetch`);
720
+ async fetchFromConnector(disputeId) {
721
+ return this.request("GET", `/disputes/${encodeURIComponent(disputeId)}`, {
722
+ query: { force_sync: "true" }
723
+ });
714
724
  }
715
725
  };
716
726
 
@@ -4360,4 +4370,4 @@ export {
4360
4370
  applyBrandingVariables,
4361
4371
  shadowFor
4362
4372
  };
4363
- //# sourceMappingURL=chunk-XIRQPEI6.js.map
4373
+ //# sourceMappingURL=chunk-ASCCS4NN.js.map