@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/{chunk-FAIETNTW.js → chunk-WQVV25OT.js} +69 -4
- package/dist/chunk-WQVV25OT.js.map +1 -0
- package/dist/{index-CJAsWjVo.d.cts → index-0WMSuoGo.d.cts} +345 -12
- package/dist/{index-CJAsWjVo.d.ts → index-0WMSuoGo.d.ts} +345 -12
- package/dist/index.cjs +68 -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 +68 -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
|
@@ -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) {
|
|
@@ -2694,6 +2697,21 @@ var Payments = class {
|
|
|
2694
2697
|
async buyerRisk(paymentId, options) {
|
|
2695
2698
|
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/buyer-risk`, options);
|
|
2696
2699
|
}
|
|
2700
|
+
/**
|
|
2701
|
+
* What the payment's checkout client was, for AI shopping agents: a
|
|
2702
|
+
* verified agent (with its operator, protocol and key), an agent signature
|
|
2703
|
+
* that did not verify (with the reason), an automated client, or a browser.
|
|
2704
|
+
* The hosted checkout's render and the buyer's confirm are both judged, and
|
|
2705
|
+
* the strongest observation is kept.
|
|
2706
|
+
*
|
|
2707
|
+
* A payment never observed answers 404. A caller scoped to one shop reads
|
|
2708
|
+
* only that shop's payments.
|
|
2709
|
+
*
|
|
2710
|
+
* `GET /payments/{paymentId}/agent-signal`
|
|
2711
|
+
*/
|
|
2712
|
+
async agentSignal(paymentId, options) {
|
|
2713
|
+
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/agent-signal`, options);
|
|
2714
|
+
}
|
|
2697
2715
|
/** Product names and prices as frozen when the payment was created. */
|
|
2698
2716
|
async productLines(paymentId) {
|
|
2699
2717
|
return this.request("GET", `/payments/${encodeURIComponent(paymentId)}/lines`);
|
|
@@ -4093,6 +4111,53 @@ var Routing = class {
|
|
|
4093
4111
|
body: params
|
|
4094
4112
|
});
|
|
4095
4113
|
}
|
|
4114
|
+
/**
|
|
4115
|
+
* Every connector cap override of the merchant: the accounts whose limits a
|
|
4116
|
+
* project or shop overrides.
|
|
4117
|
+
*
|
|
4118
|
+
* `GET /routing/connector-caps/overrides`
|
|
4119
|
+
*/
|
|
4120
|
+
async connectorCapOverrides() {
|
|
4121
|
+
return this.request("GET", "/routing/connector-caps/overrides");
|
|
4122
|
+
}
|
|
4123
|
+
/**
|
|
4124
|
+
* One connector account's overrides, and for every shop the account takes
|
|
4125
|
+
* payments in, which limits apply there and where they come from.
|
|
4126
|
+
*
|
|
4127
|
+
* `GET /routing/connector-caps/accounts/{merchantConnectorId}/overrides`
|
|
4128
|
+
*/
|
|
4129
|
+
async accountConnectorCapOverrides(merchantConnectorId) {
|
|
4130
|
+
return this.request(
|
|
4131
|
+
"GET",
|
|
4132
|
+
`/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides`
|
|
4133
|
+
);
|
|
4134
|
+
}
|
|
4135
|
+
/**
|
|
4136
|
+
* Override an account's limits for one project (and every shop below it) or
|
|
4137
|
+
* one shop: `unlimited` lifts them there, `own` sets limits of its own,
|
|
4138
|
+
* counted separately from the account's. Replaces an existing override of
|
|
4139
|
+
* the same target. Setting the same target again keeps the usage its
|
|
4140
|
+
* current window already counted.
|
|
4141
|
+
*
|
|
4142
|
+
* `PUT /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4143
|
+
*/
|
|
4144
|
+
async setConnectorCapOverride(merchantConnectorId, level, scopeId, params) {
|
|
4145
|
+
return this.request("PUT", this.overridePath(merchantConnectorId, level, scopeId), {
|
|
4146
|
+
body: params
|
|
4147
|
+
});
|
|
4148
|
+
}
|
|
4149
|
+
/**
|
|
4150
|
+
* Remove an account's override for one project or shop; the next level up
|
|
4151
|
+
* applies again. Answers the override removed.
|
|
4152
|
+
*
|
|
4153
|
+
* `DELETE /routing/connector-caps/accounts/{merchantConnectorId}/overrides/{level}/{scopeId}`
|
|
4154
|
+
*/
|
|
4155
|
+
async deleteConnectorCapOverride(merchantConnectorId, level, scopeId) {
|
|
4156
|
+
return this.request("DELETE", this.overridePath(merchantConnectorId, level, scopeId));
|
|
4157
|
+
}
|
|
4158
|
+
overridePath(merchantConnectorId, level, scopeId) {
|
|
4159
|
+
return `/routing/connector-caps/accounts/${encodeURIComponent(merchantConnectorId)}/overrides/${encodeURIComponent(level)}/${encodeURIComponent(scopeId)}`;
|
|
4160
|
+
}
|
|
4096
4161
|
/**
|
|
4097
4162
|
* List all routing algorithms for the current merchant.
|
|
4098
4163
|
*
|
|
@@ -16250,4 +16315,4 @@ export {
|
|
|
16250
16315
|
decodeNativePanes,
|
|
16251
16316
|
encodeNativePanes
|
|
16252
16317
|
};
|
|
16253
|
-
//# sourceMappingURL=chunk-
|
|
16318
|
+
//# sourceMappingURL=chunk-WQVV25OT.js.map
|