@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
|
@@ -801,8 +801,10 @@ var Connectors = class {
|
|
|
801
801
|
}
|
|
802
802
|
/**
|
|
803
803
|
* Set the transaction currencies a connector may process in every shop it
|
|
804
|
-
* serves
|
|
805
|
-
*
|
|
804
|
+
* serves, and what it does with a payment in a currency it does not take
|
|
805
|
+
* (`conversion`). `allowed_currencies: null` allows every currency the
|
|
806
|
+
* provider supports; a field left out stays as it is. With `dry_run`,
|
|
807
|
+
* nothing is saved and `impact` reports the effect.
|
|
806
808
|
* `PUT /account/{accountId}/connectors/{connectorId}/currencies`
|
|
807
809
|
*/
|
|
808
810
|
async setCurrencies(accountId, connectorId, params) {
|
|
@@ -814,7 +816,8 @@ var Connectors = class {
|
|
|
814
816
|
}
|
|
815
817
|
/**
|
|
816
818
|
* Narrow a connector's currencies in one shop it serves, within the
|
|
817
|
-
* connector's own list
|
|
819
|
+
* connector's own list, or set the shop's own `conversion`. `null` returns
|
|
820
|
+
* the shop to the connector's setting; a field left out stays as it is.
|
|
818
821
|
* `PUT /account/{accountId}/connectors/{connectorId}/shops/{profileId}/currencies`
|
|
819
822
|
*/
|
|
820
823
|
async setShopCurrencies(accountId, connectorId, profileId, params) {
|
|
@@ -4079,6 +4082,67 @@ var Routing = class {
|
|
|
4079
4082
|
body: params
|
|
4080
4083
|
});
|
|
4081
4084
|
}
|
|
4085
|
+
/**
|
|
4086
|
+
* Reset one limit's usage for the window open now: what settled payments
|
|
4087
|
+
* spent stops counting, so the account takes payments again. Payments still
|
|
4088
|
+
* in flight keep their hold and count once they complete. The account's
|
|
4089
|
+
* other limit is untouched. Offered by a router that lists `usage_reset` in
|
|
4090
|
+
* `features`; refused (422) for an account with no limit in that unit.
|
|
4091
|
+
*
|
|
4092
|
+
* `POST /routing/connector-caps/{profileId}/reset`
|
|
4093
|
+
*/
|
|
4094
|
+
async resetConnectorCapUsage(profileId, params) {
|
|
4095
|
+
return this.request("POST", `/routing/connector-caps/${encodeURIComponent(profileId)}/reset`, {
|
|
4096
|
+
body: params
|
|
4097
|
+
});
|
|
4098
|
+
}
|
|
4099
|
+
/**
|
|
4100
|
+
* Every connector cap override of the merchant: the accounts whose limits a
|
|
4101
|
+
* project or shop overrides.
|
|
4102
|
+
*
|
|
4103
|
+
* `GET /routing/connector-caps/overrides`
|
|
4104
|
+
*/
|
|
4105
|
+
async connectorCapOverrides() {
|
|
4106
|
+
return this.request("GET", "/routing/connector-caps/overrides");
|
|
4107
|
+
}
|
|
4108
|
+
/**
|
|
4109
|
+
* One connector account's overrides, and for every shop the account takes
|
|
4110
|
+
* payments in, which limits apply there and where they come from.
|
|
4111
|
+
*
|
|
4112
|
+
* `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`
|
|
4113
|
+
*/
|
|
4114
|
+
async accountConnectorCapOverrides(merchantConnectorId) {
|
|
4115
|
+
return this.request(
|
|
4116
|
+
"GET",
|
|
4117
|
+
`/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`
|
|
4118
|
+
);
|
|
4119
|
+
}
|
|
4120
|
+
/**
|
|
4121
|
+
* Override an account's limits for one project (and every shop below it) or
|
|
4122
|
+
* one shop: `unlimited` lifts them there, `own` sets limits of its own,
|
|
4123
|
+
* counted separately from the account's. Replaces an existing override of
|
|
4124
|
+
* the same target. Setting the same target again keeps the usage its
|
|
4125
|
+
* current window already counted.
|
|
4126
|
+
*
|
|
4127
|
+
* `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4128
|
+
*/
|
|
4129
|
+
async setConnectorCapOverride(merchantConnectorId, level, scopeId, params) {
|
|
4130
|
+
return this.request("PUT", this.overridePath(merchantConnectorId, level, scopeId), {
|
|
4131
|
+
body: params
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Remove an account's override for one project or shop; the next level up
|
|
4136
|
+
* applies again. Answers the override removed.
|
|
4137
|
+
*
|
|
4138
|
+
* `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4139
|
+
*/
|
|
4140
|
+
async deleteConnectorCapOverride(merchantConnectorId, level, scopeId) {
|
|
4141
|
+
return this.request("DELETE", this.overridePath(merchantConnectorId, level, scopeId));
|
|
4142
|
+
}
|
|
4143
|
+
overridePath(merchantConnectorId, level, scopeId) {
|
|
4144
|
+
return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;
|
|
4145
|
+
}
|
|
4082
4146
|
/**
|
|
4083
4147
|
* List all routing algorithms for the current merchant.
|
|
4084
4148
|
*
|
|
@@ -6617,12 +6681,44 @@ var BuyerBlocklist = class {
|
|
|
6617
6681
|
/**
|
|
6618
6682
|
* Block the buyer of a payment by the identifiers the payment carries:
|
|
6619
6683
|
* its card (the Stripe fingerprint), email, IP, device or customer, in the
|
|
6620
|
-
* payment's shop or in every shop.
|
|
6684
|
+
* payment's shop or in every shop. With `all_ips`, also every address the
|
|
6685
|
+
* buyer was seen paying from, one entry each, grouped under one
|
|
6686
|
+
* `group_id`; the answer then carries `ip_snapshot`.
|
|
6621
6687
|
* `POST /buyer-blocklist/from-payment`
|
|
6622
6688
|
*/
|
|
6623
6689
|
async createFromPayment(params) {
|
|
6624
6690
|
return this.request("POST", "/buyer-blocklist/from-payment", { body: params });
|
|
6625
6691
|
}
|
|
6692
|
+
/**
|
|
6693
|
+
* The addresses an "all IPs" block of a payment's buyer would take: the
|
|
6694
|
+
* payment's own, then those its device, email or card were seen at in the
|
|
6695
|
+
* last 90 days, newest first, at most 20. An address shared with two or
|
|
6696
|
+
* more other buyers is offered but not preselected. Writes nothing; needs
|
|
6697
|
+
* the same permissions as the block.
|
|
6698
|
+
* `POST /buyer-blocklist/from-payment/preview`
|
|
6699
|
+
*/
|
|
6700
|
+
async previewFromPayment(params) {
|
|
6701
|
+
return this.request("POST", "/buyer-blocklist/from-payment/preview", { body: params });
|
|
6702
|
+
}
|
|
6703
|
+
/**
|
|
6704
|
+
* An entry's recorded refusals, newest first, with where each happened and
|
|
6705
|
+
* which identifier matched. A caller scoped to one shop reaches only its own
|
|
6706
|
+
* shop's entries.
|
|
6707
|
+
* `GET /buyer-blocklist/{entry_id}/events`
|
|
6708
|
+
*/
|
|
6709
|
+
async listEvents(entryId, params) {
|
|
6710
|
+
return this.request("GET", `/buyer-blocklist/${encodeURIComponent(entryId)}/events`, {
|
|
6711
|
+
query: params
|
|
6712
|
+
});
|
|
6713
|
+
}
|
|
6714
|
+
/**
|
|
6715
|
+
* Which classes of network an `ip_class` entry can be judged by on this
|
|
6716
|
+
* deployment now, and by which sources.
|
|
6717
|
+
* `GET /buyer-blocklist/capabilities`
|
|
6718
|
+
*/
|
|
6719
|
+
async capabilities() {
|
|
6720
|
+
return this.request("GET", "/buyer-blocklist/capabilities");
|
|
6721
|
+
}
|
|
6626
6722
|
/**
|
|
6627
6723
|
* Retry now every failed or pending Radar sync of an entry.
|
|
6628
6724
|
* `POST /buyer-blocklist/{entry_id}/sync/retry`
|
|
@@ -16204,4 +16300,4 @@ export {
|
|
|
16204
16300
|
decodeNativePanes,
|
|
16205
16301
|
encodeNativePanes
|
|
16206
16302
|
};
|
|
16207
|
-
//# sourceMappingURL=chunk-
|
|
16303
|
+
//# sourceMappingURL=chunk-BFFKEPYF.js.map
|