@delopay/sdk 0.120.0 → 0.121.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.
@@ -2309,6 +2309,22 @@ var Routing = class {
2309
2309
  async update(algorithmId, params) {
2310
2310
  return this.request("PUT", `/routing/${encodeURIComponent(algorithmId)}`, { body: params });
2311
2311
  }
2312
+ /**
2313
+ * Delete a static routing configuration.
2314
+ *
2315
+ * A soft delete: the configuration disappears from every list and read, but
2316
+ * its version history is kept server-side for audit. The live configuration
2317
+ * of a shop cannot be deleted — the backend refuses it (400, `IR_16`); deactivate it first.
2318
+ * Only `single`, `priority`, `volume_split` and `advanced` payment
2319
+ * configurations qualify (400 otherwise).
2320
+ *
2321
+ * `DELETE /routing/{algorithmId}`
2322
+ *
2323
+ * @param algorithmId - The routing algorithm to delete.
2324
+ */
2325
+ async delete(algorithmId) {
2326
+ return this.request("DELETE", `/routing/${encodeURIComponent(algorithmId)}`);
2327
+ }
2312
2328
  /**
2313
2329
  * Every content window a routing configuration has had, oldest first.
2314
2330
  *
@@ -7298,4 +7314,4 @@ export {
7298
7314
  decodeNativePanes,
7299
7315
  encodeNativePanes
7300
7316
  };
7301
- //# sourceMappingURL=chunk-IQIUYV2B.js.map
7317
+ //# sourceMappingURL=chunk-U4PY43DZ.js.map