@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.
@@ -2185,6 +2185,22 @@ var Routing = class {
2185
2185
  async deactivate(params = {}) {
2186
2186
  return this.request("POST", "/routing/deactivate", { body: params });
2187
2187
  }
2188
+ /**
2189
+ * Edit a static routing configuration.
2190
+ *
2191
+ * Partial: send only the fields to change. `name`/`description` are
2192
+ * metadata-only; `algorithm` is a wholesale rule replacement, validated
2193
+ * against the shop exactly as at create. `modified_at` is bumped either way.
2194
+ *
2195
+ * `PUT /routing/{algorithmId}`
2196
+ *
2197
+ * @param algorithmId - The routing algorithm ID to edit.
2198
+ * @param params - The fields to change (at least one required).
2199
+ * @returns The updated routing configuration including the algorithm body.
2200
+ */
2201
+ async update(algorithmId, params) {
2202
+ return this.request("PUT", `/routing/${encodeURIComponent(algorithmId)}`, { body: params });
2203
+ }
2188
2204
  /**
2189
2205
  * List all routing algorithms for the current merchant.
2190
2206
  *
@@ -6221,4 +6237,4 @@ export {
6221
6237
  focusedCheckoutUrl,
6222
6238
  CHECKOUT_EVENT_KINDS
6223
6239
  };
6224
- //# sourceMappingURL=chunk-NLUEZQZF.js.map
6240
+ //# sourceMappingURL=chunk-43FRIBNT.js.map