@delopay/sdk 0.338.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-SL2XR4QR.js → chunk-BFFKEPYF.js} +101 -5
- package/dist/chunk-BFFKEPYF.js.map +1 -0
- package/dist/{index-Bng6txIS.d.cts → index-BXgUEVYM.d.cts} +574 -22
- package/dist/{index-Bng6txIS.d.ts → index-BXgUEVYM.d.ts} +574 -22
- package/dist/index.cjs +100 -4
- 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 +100 -4
- 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-SL2XR4QR.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) {
|
|
@@ -4367,6 +4370,67 @@ var Routing = class {
|
|
|
4367
4370
|
body: params
|
|
4368
4371
|
});
|
|
4369
4372
|
}
|
|
4373
|
+
/**
|
|
4374
|
+
* Reset one limit's usage for the window open now: what settled payments
|
|
4375
|
+
* spent stops counting, so the account takes payments again. Payments still
|
|
4376
|
+
* in flight keep their hold and count once they complete. The account's
|
|
4377
|
+
* other limit is untouched. Offered by a router that lists `usage_reset` in
|
|
4378
|
+
* `features`; refused (422) for an account with no limit in that unit.
|
|
4379
|
+
*
|
|
4380
|
+
* `POST /routing/connector-caps/{profileId}/reset`
|
|
4381
|
+
*/
|
|
4382
|
+
async resetConnectorCapUsage(profileId, params) {
|
|
4383
|
+
return this.request("POST", `/routing/connector-caps/${encodeURIComponent(profileId)}/reset`, {
|
|
4384
|
+
body: params
|
|
4385
|
+
});
|
|
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
|
+
}
|
|
4370
4434
|
/**
|
|
4371
4435
|
* List all routing algorithms for the current merchant.
|
|
4372
4436
|
*
|
|
@@ -6905,12 +6969,44 @@ var BuyerBlocklist = class {
|
|
|
6905
6969
|
/**
|
|
6906
6970
|
* Block the buyer of a payment by the identifiers the payment carries:
|
|
6907
6971
|
* its card (the Stripe fingerprint), email, IP, device or customer, in the
|
|
6908
|
-
* payment's shop or in every shop.
|
|
6972
|
+
* payment's shop or in every shop. With `all_ips`, also every address the
|
|
6973
|
+
* buyer was seen paying from, one entry each, grouped under one
|
|
6974
|
+
* `group_id`; the answer then carries `ip_snapshot`.
|
|
6909
6975
|
* `POST /buyer-blocklist/from-payment`
|
|
6910
6976
|
*/
|
|
6911
6977
|
async createFromPayment(params) {
|
|
6912
6978
|
return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
|
|
6913
6979
|
}
|
|
6980
|
+
/**
|
|
6981
|
+
* The addresses an "all IPs" block of a payment's buyer would take: the
|
|
6982
|
+
* payment's own, then those its device, email or card were seen at in the
|
|
6983
|
+
* last 90 days, newest first, at most 20. An address shared with two or
|
|
6984
|
+
* more other buyers is offered but not preselected. Writes nothing; needs
|
|
6985
|
+
* the same permissions as the block.
|
|
6986
|
+
* `POST /buyer-blocklist/from-payment/preview`
|
|
6987
|
+
*/
|
|
6988
|
+
async previewFromPayment(params) {
|
|
6989
|
+
return this.request("POST", "/buyer-blocklist/from-payment/preview", { body: params });
|
|
6990
|
+
}
|
|
6991
|
+
/**
|
|
6992
|
+
* An entry's recorded refusals, newest first, with where each happened and
|
|
6993
|
+
* which identifier matched. A caller scoped to one shop reaches only its own
|
|
6994
|
+
* shop's entries.
|
|
6995
|
+
* `GET /buyer-blocklist/{entry_id}/events`
|
|
6996
|
+
*/
|
|
6997
|
+
async listEvents(entryId, params) {
|
|
6998
|
+
return this.request("GET", `/buyer-blocklist/${encodeURIComponent(entryId)}/events`, {
|
|
6999
|
+
query: params
|
|
7000
|
+
});
|
|
7001
|
+
}
|
|
7002
|
+
/**
|
|
7003
|
+
* Which classes of network an `ip_class` entry can be judged by on this
|
|
7004
|
+
* deployment now, and by which sources.
|
|
7005
|
+
* `GET /buyer-blocklist/capabilities`
|
|
7006
|
+
*/
|
|
7007
|
+
async capabilities() {
|
|
7008
|
+
return this.request("GET", "/buyer-blocklist/capabilities");
|
|
7009
|
+
}
|
|
6914
7010
|
/**
|
|
6915
7011
|
* Retry now every failed or pending Radar sync of an entry.
|
|
6916
7012
|
* `POST /buyer-blocklist/{entry_id}/sync/retry`
|