@delopay/sdk 0.363.0 → 0.366.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-5OPD7K5O.js → chunk-ESYKTYJA.js} +42 -1
- package/dist/chunk-ESYKTYJA.js.map +1 -0
- package/dist/{index-DI8uA8rc.d.cts → index-C2-7sIZx.d.cts} +339 -9
- package/dist/{index-DI8uA8rc.d.ts → index-C2-7sIZx.d.ts} +339 -9
- package/dist/index.cjs +41 -0
- 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 +62 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +26 -3
- package/dist/internal.d.ts +26 -3
- package/dist/internal.js +22 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5OPD7K5O.js.map +0 -1
|
@@ -2000,6 +2000,34 @@ var ChargebackPrevention = class {
|
|
|
2000
2000
|
async retrieveCase(caseId) {
|
|
2001
2001
|
return this.request("GET", `/chargeback-prevention/cases/${encodeURIComponent(caseId)}`);
|
|
2002
2002
|
}
|
|
2003
|
+
/**
|
|
2004
|
+
* The refund rule of every connected account and environment; version `0`
|
|
2005
|
+
* and off for one never saved. Needs a merchant-wide key or sign-in.
|
|
2006
|
+
*/
|
|
2007
|
+
async listRefundRules() {
|
|
2008
|
+
return this.request("GET", "/chargeback-prevention/refund-rules");
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* Save a refund rule over the version read. Dashboard sign-in only, by a
|
|
2012
|
+
* merchant-wide user who may write refunds; an API key is refused. A rule
|
|
2013
|
+
* saved since the version named is not overwritten: the call fails.
|
|
2014
|
+
*/
|
|
2015
|
+
async saveRefundRule(body) {
|
|
2016
|
+
return this.request("PUT", "/chargeback-prevention/refund-rules", { body });
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* What the stored rule, or unsaved `settings`, would do with each open
|
|
2020
|
+
* alert of the account now. Nothing is refunded.
|
|
2021
|
+
*/
|
|
2022
|
+
async previewRefundRule(body) {
|
|
2023
|
+
return this.request("POST", "/chargeback-prevention/refund-rules/preview", { body });
|
|
2024
|
+
}
|
|
2025
|
+
/** What the merchant's refund rules did, newest first. */
|
|
2026
|
+
async listRefundActions(params) {
|
|
2027
|
+
return this.request("GET", "/chargeback-prevention/refund-actions", {
|
|
2028
|
+
query: params
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2003
2031
|
};
|
|
2004
2032
|
|
|
2005
2033
|
// src/resources/paypalDisputes.ts
|
|
@@ -8473,6 +8501,19 @@ var CheckoutMethods = class {
|
|
|
8473
8501
|
query
|
|
8474
8502
|
});
|
|
8475
8503
|
}
|
|
8504
|
+
/**
|
|
8505
|
+
* What DeloPay's connector information says about a country, for any shop:
|
|
8506
|
+
* each provider's method, and whether the provider's list of countries names
|
|
8507
|
+
* it. A method with no list is `unknown`, which is no statement either way.
|
|
8508
|
+
* Nothing here comes from a merchant's accounts, and it is no promise about
|
|
8509
|
+
* what a shop's checkout offers. A role that may not read provider names gets
|
|
8510
|
+
* none. `GET /checkout-methods/coverage`
|
|
8511
|
+
*
|
|
8512
|
+
* @param country The buyer's country, ISO 3166-1 alpha-2.
|
|
8513
|
+
*/
|
|
8514
|
+
async coverage(country) {
|
|
8515
|
+
return this.request("GET", "/checkout-methods/coverage", { query: { country } });
|
|
8516
|
+
}
|
|
8476
8517
|
/**
|
|
8477
8518
|
* What DeloPay confirms beneath each item the shop can place: the card
|
|
8478
8519
|
* networks the card form's accounts accept, and the methods or coins a
|
|
@@ -16954,4 +16995,4 @@ export {
|
|
|
16954
16995
|
decodeNativePanes,
|
|
16955
16996
|
encodeNativePanes
|
|
16956
16997
|
};
|
|
16957
|
-
//# sourceMappingURL=chunk-
|
|
16998
|
+
//# sourceMappingURL=chunk-ESYKTYJA.js.map
|