@delopay/sdk 0.220.0 → 0.221.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/internal.cjs +21 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +28 -1
- package/dist/internal.d.ts +28 -1
- package/dist/internal.js +21 -0
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
package/dist/internal.cjs
CHANGED
|
@@ -12113,6 +12113,27 @@ var AdminPortal = class {
|
|
|
12113
12113
|
constructor(request) {
|
|
12114
12114
|
this.request = request;
|
|
12115
12115
|
}
|
|
12116
|
+
/** Read refund treatment and the scope supplying its effective value. */
|
|
12117
|
+
async getRefundVolume(merchantId, query = {}) {
|
|
12118
|
+
return this.request(
|
|
12119
|
+
"GET",
|
|
12120
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,
|
|
12121
|
+
{
|
|
12122
|
+
query: { ...query }
|
|
12123
|
+
}
|
|
12124
|
+
);
|
|
12125
|
+
}
|
|
12126
|
+
/** Change future monthly tier snapshots; existing snapshots and statement lines retain their prices. */
|
|
12127
|
+
async updateRefundVolume(merchantId, body, query = {}) {
|
|
12128
|
+
return this.request(
|
|
12129
|
+
"PUT",
|
|
12130
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/refund-volume`,
|
|
12131
|
+
{
|
|
12132
|
+
query: { ...query },
|
|
12133
|
+
body
|
|
12134
|
+
}
|
|
12135
|
+
);
|
|
12136
|
+
}
|
|
12116
12137
|
async listCustomers(params) {
|
|
12117
12138
|
return this.request("GET", "/admin-portal/customers", {
|
|
12118
12139
|
query: params
|