@delopay/sdk 0.342.0 → 0.345.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-FAIETNTW.js → chunk-BFFKEPYF.js} +54 -4
- package/dist/chunk-BFFKEPYF.js.map +1 -0
- package/dist/{index-CJAsWjVo.d.cts → index-BXgUEVYM.d.cts} +206 -8
- package/dist/{index-CJAsWjVo.d.ts → index-BXgUEVYM.d.ts} +206 -8
- package/dist/index.cjs +53 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +53 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FAIETNTW.js.map +0 -1
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
|
|
1093
|
-
*
|
|
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
|
|
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) {
|
|
@@ -4381,6 +4384,53 @@ var Routing = class {
|
|
|
4381
4384
|
body: params
|
|
4382
4385
|
});
|
|
4383
4386
|
}
|
|
4387
|
+
/**
|
|
4388
|
+
* Every connector cap override of the merchant: the accounts whose limits a
|
|
4389
|
+
* project or shop overrides.
|
|
4390
|
+
*
|
|
4391
|
+
* `GET /routing/connector-caps/overrides`
|
|
4392
|
+
*/
|
|
4393
|
+
async connectorCapOverrides() {
|
|
4394
|
+
return this.request("GET", "/routing/connector-caps/overrides");
|
|
4395
|
+
}
|
|
4396
|
+
/**
|
|
4397
|
+
* One connector account's overrides, and for every shop the account takes
|
|
4398
|
+
* payments in, which limits apply there and where they come from.
|
|
4399
|
+
*
|
|
4400
|
+
* `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`
|
|
4401
|
+
*/
|
|
4402
|
+
async accountConnectorCapOverrides(merchantConnectorId) {
|
|
4403
|
+
return this.request(
|
|
4404
|
+
"GET",
|
|
4405
|
+
`/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`
|
|
4406
|
+
);
|
|
4407
|
+
}
|
|
4408
|
+
/**
|
|
4409
|
+
* Override an account's limits for one project (and every shop below it) or
|
|
4410
|
+
* one shop: `unlimited` lifts them there, `own` sets limits of its own,
|
|
4411
|
+
* counted separately from the account's. Replaces an existing override of
|
|
4412
|
+
* the same target. Setting the same target again keeps the usage its
|
|
4413
|
+
* current window already counted.
|
|
4414
|
+
*
|
|
4415
|
+
* `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4416
|
+
*/
|
|
4417
|
+
async setConnectorCapOverride(merchantConnectorId, level, scopeId, params) {
|
|
4418
|
+
return this.request("PUT", this.overridePath(merchantConnectorId, level, scopeId), {
|
|
4419
|
+
body: params
|
|
4420
|
+
});
|
|
4421
|
+
}
|
|
4422
|
+
/**
|
|
4423
|
+
* Remove an account's override for one project or shop; the next level up
|
|
4424
|
+
* applies again. Answers the override removed.
|
|
4425
|
+
*
|
|
4426
|
+
* `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4427
|
+
*/
|
|
4428
|
+
async deleteConnectorCapOverride(merchantConnectorId, level, scopeId) {
|
|
4429
|
+
return this.request("DELETE", this.overridePath(merchantConnectorId, level, scopeId));
|
|
4430
|
+
}
|
|
4431
|
+
overridePath(merchantConnectorId, level, scopeId) {
|
|
4432
|
+
return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;
|
|
4433
|
+
}
|
|
4384
4434
|
/**
|
|
4385
4435
|
* List all routing algorithms for the current merchant.
|
|
4386
4436
|
*
|