@delopay/sdk 0.362.0 → 0.365.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-RI3ZRID4.js → chunk-DBE6IDBL.js} +14 -32
- package/dist/chunk-DBE6IDBL.js.map +1 -0
- package/dist/{index-Cx3eqhb9.d.cts → index-Cuci87K7.d.cts} +152 -40
- package/dist/{index-Cx3eqhb9.d.ts → index-Cuci87K7.d.ts} +152 -40
- package/dist/index.cjs +13 -31
- 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 +13 -31
- 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-RI3ZRID4.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2303,29 +2303,6 @@ var ChargebackPrevention = class {
|
|
|
2303
2303
|
async listConnections() {
|
|
2304
2304
|
return this.request("GET", "/chargeback-prevention/connections");
|
|
2305
2305
|
}
|
|
2306
|
-
/**
|
|
2307
|
-
* Connect a provider account. DeloPay checks the key with the provider,
|
|
2308
|
-
* registers its webhooks there and starts reading alerts. Dashboard session
|
|
2309
|
-
* only.
|
|
2310
|
-
*/
|
|
2311
|
-
async connect(params) {
|
|
2312
|
-
return this.request("POST", "/chargeback-prevention/connections", { body: params });
|
|
2313
|
-
}
|
|
2314
|
-
/** Replace a connection's key; reconnects one whose key was refused. */
|
|
2315
|
-
async replaceKey(connectionId, params) {
|
|
2316
|
-
return this.request(
|
|
2317
|
-
"PUT",
|
|
2318
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/key`,
|
|
2319
|
-
{ body: params }
|
|
2320
|
-
);
|
|
2321
|
-
}
|
|
2322
|
-
/** Stop reading a connection. Its cases are kept. */
|
|
2323
|
-
async disconnect(connectionId) {
|
|
2324
|
-
return this.request(
|
|
2325
|
-
"DELETE",
|
|
2326
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}`
|
|
2327
|
-
);
|
|
2328
|
-
}
|
|
2329
2306
|
/** Read the connection's alerts again as soon as the provider allows. */
|
|
2330
2307
|
async syncNow(connectionId) {
|
|
2331
2308
|
return this.request(
|
|
@@ -2333,14 +2310,6 @@ var ChargebackPrevention = class {
|
|
|
2333
2310
|
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`
|
|
2334
2311
|
);
|
|
2335
2312
|
}
|
|
2336
|
-
/** Set the shops a provider business account sells through; its cases are matched again. */
|
|
2337
|
-
async mapAccount(connectionId, providerAccountId, params) {
|
|
2338
|
-
return this.request(
|
|
2339
|
-
"PUT",
|
|
2340
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/accounts/${encodeURIComponent(providerAccountId)}`,
|
|
2341
|
-
{ body: params }
|
|
2342
|
-
);
|
|
2343
|
-
}
|
|
2344
2313
|
/** Cases with what DeloPay's records say happened to each payment. */
|
|
2345
2314
|
async listCases(params) {
|
|
2346
2315
|
return this.request("GET", "/chargeback-prevention/cases", {
|
|
@@ -8824,6 +8793,19 @@ var CheckoutMethods = class {
|
|
|
8824
8793
|
query
|
|
8825
8794
|
});
|
|
8826
8795
|
}
|
|
8796
|
+
/**
|
|
8797
|
+
* What DeloPay's connector information says about a country, for any shop:
|
|
8798
|
+
* each provider's method, and whether the provider's list of countries names
|
|
8799
|
+
* it. A method with no list is `unknown`, which is no statement either way.
|
|
8800
|
+
* Nothing here comes from a merchant's accounts, and it is no promise about
|
|
8801
|
+
* what a shop's checkout offers. A role that may not read provider names gets
|
|
8802
|
+
* none. `GET /checkout-methods/coverage`
|
|
8803
|
+
*
|
|
8804
|
+
* @param country The buyer's country, ISO 3166-1 alpha-2.
|
|
8805
|
+
*/
|
|
8806
|
+
async coverage(country) {
|
|
8807
|
+
return this.request("GET", "/checkout-methods/coverage", { query: { country } });
|
|
8808
|
+
}
|
|
8827
8809
|
/**
|
|
8828
8810
|
* What DeloPay confirms beneath each item the shop can place: the card
|
|
8829
8811
|
* networks the card form's accounts accept, and the methods or coins a
|