@delopay/sdk 0.101.0 → 0.102.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-NLUEZQZF.js → chunk-43FRIBNT.js} +17 -1
- package/dist/chunk-43FRIBNT.js.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -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 +18 -17
- package/dist/chunk-NLUEZQZF.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2299,6 +2299,22 @@ var Routing = class {
|
|
|
2299
2299
|
async deactivate(params = {}) {
|
|
2300
2300
|
return this.request("POST", "/routing/deactivate", { body: params });
|
|
2301
2301
|
}
|
|
2302
|
+
/**
|
|
2303
|
+
* Edit a static routing configuration.
|
|
2304
|
+
*
|
|
2305
|
+
* Partial: send only the fields to change. `name`/`description` are
|
|
2306
|
+
* metadata-only; `algorithm` is a wholesale rule replacement, validated
|
|
2307
|
+
* against the shop exactly as at create. `modified_at` is bumped either way.
|
|
2308
|
+
*
|
|
2309
|
+
* `PUT /routing/{algorithmId}`
|
|
2310
|
+
*
|
|
2311
|
+
* @param algorithmId - The routing algorithm ID to edit.
|
|
2312
|
+
* @param params - The fields to change (at least one required).
|
|
2313
|
+
* @returns The updated routing configuration including the algorithm body.
|
|
2314
|
+
*/
|
|
2315
|
+
async update(algorithmId, params) {
|
|
2316
|
+
return this.request("PUT", `/routing/${encodeURIComponent(algorithmId)}`, { body: params });
|
|
2317
|
+
}
|
|
2302
2318
|
/**
|
|
2303
2319
|
* List all routing algorithms for the current merchant.
|
|
2304
2320
|
*
|