@delopay/sdk 0.342.0 → 0.348.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
@@ -1089,8 +1089,10 @@ var Connectors = class {
1089
1089
  }
1090
1090
  /**
1091
1091
  * Set the transaction currencies a connector may process in every shop it
1092
- * serves. `allowed_currencies: null` allows every currency the provider
1093
- * supports. With `dry_run`, nothing is saved and `impact` reports the effect.
1092
+ * serves, and what it does with a payment in a currency it does not take
1093
+ * (`conversion`). `allowed_currencies: null` allows every currency the
1094
+ * provider supports; a field left out stays as it is. With `dry_run`,
1095
+ * nothing is saved and `impact` reports the effect.
1094
1096
  * `PUT /account/{accountId}/connectors/{connectorId}/currencies`
1095
1097
  */
1096
1098
  async setCurrencies(accountId, connectorId, params) {
@@ -1102,7 +1104,8 @@ var Connectors = class {
1102
1104
  }
1103
1105
  /**
1104
1106
  * Narrow a connector's currencies in one shop it serves, within the
1105
- * connector's own list. `allowed_currencies: null` returns the shop to it.
1107
+ * connector's own list, or set the shop's own `conversion`. `null` returns
1108
+ * the shop to the connector's setting; a field left out stays as it is.
1106
1109
  * `PUT /account/{accountId}/connectors/{connectorId}/shops/{profileId}/currencies`
1107
1110
  */
1108
1111
  async setShopCurrencies(accountId, connectorId, profileId, params) {
@@ -2982,6 +2985,21 @@ var Payments = class {
2982
2985
  async buyerRisk(paymentId, options) {
2983
2986
  return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/buyer-risk`, options);
2984
2987
  }
2988
+ /**
2989
+ * What the payment's checkout client was, for AI shopping agents: a
2990
+ * verified agent (with its operator, protocol and key), an agent signature
2991
+ * that did not verify (with the reason), an automated client, or a browser.
2992
+ * The hosted checkout's render and the buyer's confirm are both judged, and
2993
+ * the strongest observation is kept.
2994
+ *
2995
+ * A payment never observed answers 404. A caller scoped to one shop reads
2996
+ * only that shop's payments.
2997
+ *
2998
+ * `GET /payments/{paymentId}/agent-signal`
2999
+ */
3000
+ async agentSignal(paymentId, options) {
3001
+ return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/agent-signal`, options);
3002
+ }
2985
3003
  /** Product names and prices as frozen when the payment was created. */
2986
3004
  async productLines(paymentId) {
2987
3005
  return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/lines`);
@@ -4381,6 +4399,53 @@ var Routing = class {
4381
4399
  body: params
4382
4400
  });
4383
4401
  }
4402
+ /**
4403
+ * Every connector cap override of the merchant: the accounts whose limits a
4404
+ * project or shop overrides.
4405
+ *
4406
+ * `GET /routing/connector-caps/overrides`
4407
+ */
4408
+ async connectorCapOverrides() {
4409
+ return this.request("GET", "/routing/connector-caps/overrides");
4410
+ }
4411
+ /**
4412
+ * One connector account's overrides, and for every shop the account takes
4413
+ * payments in, which limits apply there and where they come from.
4414
+ *
4415
+ * `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`
4416
+ */
4417
+ async accountConnectorCapOverrides(merchantConnectorId) {
4418
+ return this.request(
4419
+ "GET",
4420
+ `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`
4421
+ );
4422
+ }
4423
+ /**
4424
+ * Override an account's limits for one project (and every shop below it) or
4425
+ * one shop: `unlimited` lifts them there, `own` sets limits of its own,
4426
+ * counted separately from the account's. Replaces an existing override of
4427
+ * the same target. Setting the same target again keeps the usage its
4428
+ * current window already counted.
4429
+ *
4430
+ * `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
4431
+ */
4432
+ async setConnectorCapOverride(merchantConnectorId, level, scopeId, params) {
4433
+ return this.request("PUT", this.overridePath(merchantConnectorId, level, scopeId), {
4434
+ body: params
4435
+ });
4436
+ }
4437
+ /**
4438
+ * Remove an account's override for one project or shop; the next level up
4439
+ * applies again. Answers the override removed.
4440
+ *
4441
+ * `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
4442
+ */
4443
+ async deleteConnectorCapOverride(merchantConnectorId, level, scopeId) {
4444
+ return this.request("DELETE", this.overridePath(merchantConnectorId, level, scopeId));
4445
+ }
4446
+ overridePath(merchantConnectorId, level, scopeId) {
4447
+ return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;
4448
+ }
4384
4449
  /**
4385
4450
  * List all routing algorithms for the current merchant.
4386
4451
  *