@delopay/sdk 0.365.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.
@@ -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
@@ -16967,4 +16995,4 @@ export {
16967
16995
  decodeNativePanes,
16968
16996
  encodeNativePanes
16969
16997
  };
16970
- //# sourceMappingURL=chunk-DBE6IDBL.js.map
16998
+ //# sourceMappingURL=chunk-ESYKTYJA.js.map