@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/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
  *