@delopay/sdk 0.152.0 → 0.153.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-ZLD3ZEMZ.js → chunk-CRR4YKJV.js} +28 -1
- package/dist/chunk-CRR4YKJV.js.map +1 -0
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102 -1
- package/dist/index.d.ts +102 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +27 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZLD3ZEMZ.js.map +0 -1
|
@@ -939,10 +939,37 @@ var Customers = class {
|
|
|
939
939
|
};
|
|
940
940
|
|
|
941
941
|
// src/resources/disputes.ts
|
|
942
|
+
function workspaceQuery(params) {
|
|
943
|
+
if (!params) return void 0;
|
|
944
|
+
const { connector, currency, dispute_status, dispute_stage, ...query } = params;
|
|
945
|
+
return {
|
|
946
|
+
...query,
|
|
947
|
+
...connector?.length ? { connector: connector.join(",") } : {},
|
|
948
|
+
...currency?.length ? { currency: currency.join(",") } : {},
|
|
949
|
+
...dispute_status?.length ? { dispute_status: dispute_status.join(",") } : {},
|
|
950
|
+
...dispute_stage?.length ? { dispute_stage: dispute_stage.join(",") } : {}
|
|
951
|
+
};
|
|
952
|
+
}
|
|
942
953
|
var Disputes = class {
|
|
943
954
|
constructor(request) {
|
|
944
955
|
this.request = request;
|
|
945
956
|
}
|
|
957
|
+
/** Read native disputes and provider-only cases once, after shared authorization and filters. */
|
|
958
|
+
async workspace(params) {
|
|
959
|
+
return this.request("GET", "/disputes/workspace", { query: workspaceQuery(params) });
|
|
960
|
+
}
|
|
961
|
+
/** Read filter options over the same scoped case set; pagination is ignored. */
|
|
962
|
+
async workspaceFilters(params) {
|
|
963
|
+
return this.request("GET", "/disputes/workspace/filters", { query: workspaceQuery(params) });
|
|
964
|
+
}
|
|
965
|
+
/** Count the filtered case set, including unknown outcomes; pagination is ignored. */
|
|
966
|
+
async workspaceAggregate(params) {
|
|
967
|
+
return this.request("GET", "/disputes/workspace/aggregate", { query: workspaceQuery(params) });
|
|
968
|
+
}
|
|
969
|
+
/** Export the complete filtered set, or throw on the server's explicit export-limit refusal. */
|
|
970
|
+
async workspaceExport(params) {
|
|
971
|
+
return this.request("GET", "/disputes/workspace/export", { query: workspaceQuery(params) });
|
|
972
|
+
}
|
|
946
973
|
/**
|
|
947
974
|
* Retrieve a dispute by its ID.
|
|
948
975
|
*
|
|
@@ -8513,4 +8540,4 @@ export {
|
|
|
8513
8540
|
decodeNativePanes,
|
|
8514
8541
|
encodeNativePanes
|
|
8515
8542
|
};
|
|
8516
|
-
//# sourceMappingURL=chunk-
|
|
8543
|
+
//# sourceMappingURL=chunk-CRR4YKJV.js.map
|