@delopay/sdk 0.362.0 → 0.363.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-5OPD7K5O.js} +1 -32
- package/dist/chunk-5OPD7K5O.js.map +1 -0
- package/dist/{index-Cx3eqhb9.d.cts → index-DI8uA8rc.d.cts} +37 -35
- package/dist/{index-Cx3eqhb9.d.ts → index-DI8uA8rc.d.ts} +37 -35
- package/dist/index.cjs +0 -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 +0 -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
|
@@ -1983,29 +1983,6 @@ var ChargebackPrevention = class {
|
|
|
1983
1983
|
async listConnections() {
|
|
1984
1984
|
return this.request("GET", "/chargeback-prevention/connections");
|
|
1985
1985
|
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Connect a provider account. DeloPay checks the key with the provider,
|
|
1988
|
-
* registers its webhooks there and starts reading alerts. Dashboard session
|
|
1989
|
-
* only.
|
|
1990
|
-
*/
|
|
1991
|
-
async connect(params) {
|
|
1992
|
-
return this.request("POST", "/chargeback-prevention/connections", { body: params });
|
|
1993
|
-
}
|
|
1994
|
-
/** Replace a connection's key; reconnects one whose key was refused. */
|
|
1995
|
-
async replaceKey(connectionId, params) {
|
|
1996
|
-
return this.request(
|
|
1997
|
-
"PUT",
|
|
1998
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/key`,
|
|
1999
|
-
{ body: params }
|
|
2000
|
-
);
|
|
2001
|
-
}
|
|
2002
|
-
/** Stop reading a connection. Its cases are kept. */
|
|
2003
|
-
async disconnect(connectionId) {
|
|
2004
|
-
return this.request(
|
|
2005
|
-
"DELETE",
|
|
2006
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}`
|
|
2007
|
-
);
|
|
2008
|
-
}
|
|
2009
1986
|
/** Read the connection's alerts again as soon as the provider allows. */
|
|
2010
1987
|
async syncNow(connectionId) {
|
|
2011
1988
|
return this.request(
|
|
@@ -2013,14 +1990,6 @@ var ChargebackPrevention = class {
|
|
|
2013
1990
|
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`
|
|
2014
1991
|
);
|
|
2015
1992
|
}
|
|
2016
|
-
/** Set the shops a provider business account sells through; its cases are matched again. */
|
|
2017
|
-
async mapAccount(connectionId, providerAccountId, params) {
|
|
2018
|
-
return this.request(
|
|
2019
|
-
"PUT",
|
|
2020
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/accounts/${encodeURIComponent(providerAccountId)}`,
|
|
2021
|
-
{ body: params }
|
|
2022
|
-
);
|
|
2023
|
-
}
|
|
2024
1993
|
/** Cases with what DeloPay's records say happened to each payment. */
|
|
2025
1994
|
async listCases(params) {
|
|
2026
1995
|
return this.request("GET", "/chargeback-prevention/cases", {
|
|
@@ -16985,4 +16954,4 @@ export {
|
|
|
16985
16954
|
decodeNativePanes,
|
|
16986
16955
|
encodeNativePanes
|
|
16987
16956
|
};
|
|
16988
|
-
//# sourceMappingURL=chunk-
|
|
16957
|
+
//# sourceMappingURL=chunk-5OPD7K5O.js.map
|