@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.
package/dist/index.cjs CHANGED
@@ -2464,6 +2464,22 @@ var Routing = class {
2464
2464
  async update(algorithmId, params) {
2465
2465
  return this.request("PUT", `/routing/${encodeURIComponent(algorithmId)}`, { body: params });
2466
2466
  }
2467
+ /**
2468
+ * Delete a static routing configuration.
2469
+ *
2470
+ * A soft delete: the configuration disappears from every list and read, but
2471
+ * its version history is kept server-side for audit. The live configuration
2472
+ * of a shop cannot be deleted — the backend refuses it (400, `IR_16`); deactivate it first.
2473
+ * Only `single`, `priority`, `volume_split` and `advanced` payment
2474
+ * configurations qualify (400 otherwise).
2475
+ *
2476
+ * `DELETE /routing/{algorithmId}`
2477
+ *
2478
+ * @param algorithmId - The routing algorithm to delete.
2479
+ */
2480
+ async delete(algorithmId) {
2481
+ return this.request("DELETE", `/routing/${encodeURIComponent(algorithmId)}`);
2482
+ }
2467
2483
  /**
2468
2484
  * Every content window a routing configuration has had, oldest first.
2469
2485
  *