@delopay/sdk 0.117.0 → 0.119.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-RN4LGMQM.js → chunk-IQIUYV2B.js} +72 -4
- package/dist/chunk-IQIUYV2B.js.map +1 -0
- package/dist/index.cjs +71 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +285 -11
- package/dist/index.d.ts +285 -11
- package/dist/index.js +1 -1
- package/dist/internal.cjs +84 -3
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +42 -3
- package/dist/internal.d.ts +42 -3
- package/dist/internal.js +14 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-RN4LGMQM.js.map +0 -1
|
@@ -3709,11 +3709,79 @@ var Export = class {
|
|
|
3709
3709
|
constructor(request) {
|
|
3710
3710
|
this.request = request;
|
|
3711
3711
|
}
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3712
|
+
async transactions(params, options) {
|
|
3713
|
+
return this.request(
|
|
3714
|
+
"POST",
|
|
3715
|
+
"/export/transactions",
|
|
3716
|
+
transactionBody(params, options)
|
|
3717
|
+
);
|
|
3718
|
+
}
|
|
3719
|
+
async transactionsForProfile(params, options) {
|
|
3720
|
+
return this.request(
|
|
3721
|
+
"POST",
|
|
3722
|
+
"/export/profile/transactions",
|
|
3723
|
+
transactionBody(params, options)
|
|
3724
|
+
);
|
|
3725
|
+
}
|
|
3726
|
+
async refunds(params, options) {
|
|
3727
|
+
return this.request("POST", "/refunds/list/export", bodied(params ?? {}, options));
|
|
3728
|
+
}
|
|
3729
|
+
async refundsForProfile(params, options) {
|
|
3730
|
+
return this.request(
|
|
3731
|
+
"POST",
|
|
3732
|
+
"/refunds/profile/list/export",
|
|
3733
|
+
bodied(params ?? {}, options)
|
|
3734
|
+
);
|
|
3735
|
+
}
|
|
3736
|
+
async disputes(params, options) {
|
|
3737
|
+
return this.request("GET", "/disputes/list/export", queried(params, options));
|
|
3738
|
+
}
|
|
3739
|
+
async disputesForProfile(params, options) {
|
|
3740
|
+
return this.request(
|
|
3741
|
+
"GET",
|
|
3742
|
+
"/disputes/profile/list/export",
|
|
3743
|
+
queried(params, options)
|
|
3744
|
+
);
|
|
3745
|
+
}
|
|
3746
|
+
async payouts(params, options) {
|
|
3747
|
+
return this.request("POST", "/payouts/list/export", bodied(params, options));
|
|
3748
|
+
}
|
|
3749
|
+
async payoutsForProfile(params, options) {
|
|
3750
|
+
return this.request("POST", "/payouts/profile/list/export", bodied(params, options));
|
|
3751
|
+
}
|
|
3752
|
+
async subscriptions(profileId, params, options) {
|
|
3753
|
+
return this.request(
|
|
3754
|
+
"GET",
|
|
3755
|
+
"/subscriptions/list/export",
|
|
3756
|
+
queried(params, options, { "X-Profile-Id": profileId })
|
|
3757
|
+
);
|
|
3715
3758
|
}
|
|
3759
|
+
async auditLog(params, options) {
|
|
3760
|
+
return this.request("GET", "/audit/export", queried(params, options));
|
|
3761
|
+
}
|
|
3762
|
+
};
|
|
3763
|
+
var ACCEPT = {
|
|
3764
|
+
csv: "text/csv",
|
|
3765
|
+
json: "application/json",
|
|
3766
|
+
pdf: "application/pdf"
|
|
3716
3767
|
};
|
|
3768
|
+
function negotiated(options, format) {
|
|
3769
|
+
const headers = { ...options.headers, Accept: ACCEPT[format] };
|
|
3770
|
+
return format === "json" ? { ...options, headers } : { ...options, headers, responseType: "blob" };
|
|
3771
|
+
}
|
|
3772
|
+
function transactionBody(params, options) {
|
|
3773
|
+
const format = options?.format ?? "json";
|
|
3774
|
+
return negotiated({ body: { ...params, format } }, format);
|
|
3775
|
+
}
|
|
3776
|
+
function bodied(body, options) {
|
|
3777
|
+
return negotiated({ body }, options?.format ?? "json");
|
|
3778
|
+
}
|
|
3779
|
+
function queried(params, options, headers) {
|
|
3780
|
+
return negotiated(
|
|
3781
|
+
{ query: params ?? {}, ...headers ? { headers } : {} },
|
|
3782
|
+
options?.format ?? "json"
|
|
3783
|
+
);
|
|
3784
|
+
}
|
|
3717
3785
|
|
|
3718
3786
|
// src/resources/featureMatrix.ts
|
|
3719
3787
|
var FeatureMatrix = class {
|
|
@@ -7230,4 +7298,4 @@ export {
|
|
|
7230
7298
|
decodeNativePanes,
|
|
7231
7299
|
encodeNativePanes
|
|
7232
7300
|
};
|
|
7233
|
-
//# sourceMappingURL=chunk-
|
|
7301
|
+
//# sourceMappingURL=chunk-IQIUYV2B.js.map
|