@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/{chunk-IQIUYV2B.js → chunk-U4PY43DZ.js} +17 -1
- package/dist/chunk-U4PY43DZ.js.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -1
- package/dist/index.d.ts +24 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +16 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-IQIUYV2B.js.map +0 -1
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
|
*
|