@wix/auto_sdk_payments_disputes 1.0.10 → 1.0.12
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/{index.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/{index.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.js +0 -588
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -550
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -87
- package/build/internal/index.d.ts +0 -87
- package/build/internal/index.js +0 -588
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -550
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -449
- package/build/internal/meta.d.ts +0 -449
- package/build/internal/meta.js +0 -366
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -333
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -449
- package/build/meta.d.ts +0 -449
- package/build/meta.js +0 -366
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -333
- package/build/meta.mjs.map +0 -1
package/build/index.js
DELETED
|
@@ -1,588 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
DisputeActionType: () => DisputeActionType,
|
|
24
|
-
DisputeChannel: () => DisputeChannel,
|
|
25
|
-
DisputeReason: () => DisputeReason,
|
|
26
|
-
DisputeStage: () => DisputeStage,
|
|
27
|
-
DisputeStatus: () => DisputeStatus,
|
|
28
|
-
SellerProtection: () => SellerProtection,
|
|
29
|
-
SortOrder: () => SortOrder,
|
|
30
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
31
|
-
acceptDispute: () => acceptDispute4,
|
|
32
|
-
bulkUpdateDisputeTags: () => bulkUpdateDisputeTags4,
|
|
33
|
-
bulkUpdateDisputeTagsByFilter: () => bulkUpdateDisputeTagsByFilter4,
|
|
34
|
-
getDispute: () => getDispute4,
|
|
35
|
-
getDisputeActions: () => getDisputeActions4,
|
|
36
|
-
queryDisputes: () => queryDisputes4,
|
|
37
|
-
submitDisputeEvidence: () => submitDisputeEvidence4
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(index_exports);
|
|
40
|
-
|
|
41
|
-
// src/payments-disputes-v1-dispute-disputes.universal.ts
|
|
42
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
43
|
-
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
44
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
45
|
-
|
|
46
|
-
// src/payments-disputes-v1-dispute-disputes.http.ts
|
|
47
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
48
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
49
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
50
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
51
|
-
function resolveWixPaymentsDisputesV1DisputeServiceUrl(opts) {
|
|
52
|
-
const domainToMappings = {};
|
|
53
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
54
|
-
}
|
|
55
|
-
var PACKAGE_NAME = "@wix/auto_sdk_payments_disputes";
|
|
56
|
-
function getDispute(payload) {
|
|
57
|
-
function __getDispute({ host }) {
|
|
58
|
-
const metadata = {
|
|
59
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
60
|
-
method: "GET",
|
|
61
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.GetDispute",
|
|
62
|
-
packageName: PACKAGE_NAME,
|
|
63
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
64
|
-
protoPath: "/v1/disputes/{disputeId}",
|
|
65
|
-
data: payload,
|
|
66
|
-
host
|
|
67
|
-
}),
|
|
68
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
69
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
70
|
-
{
|
|
71
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
72
|
-
paths: [
|
|
73
|
-
{ path: "dispute.dueDate" },
|
|
74
|
-
{ path: "dispute.createdDate" },
|
|
75
|
-
{ path: "dispute.updatedDate" }
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
])
|
|
79
|
-
};
|
|
80
|
-
return metadata;
|
|
81
|
-
}
|
|
82
|
-
return __getDispute;
|
|
83
|
-
}
|
|
84
|
-
function queryDisputes(payload) {
|
|
85
|
-
function __queryDisputes({ host }) {
|
|
86
|
-
const metadata = {
|
|
87
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
88
|
-
method: "POST",
|
|
89
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.QueryDisputes",
|
|
90
|
-
packageName: PACKAGE_NAME,
|
|
91
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
92
|
-
protoPath: "/v1/disputes/query",
|
|
93
|
-
data: payload,
|
|
94
|
-
host
|
|
95
|
-
}),
|
|
96
|
-
data: payload,
|
|
97
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
98
|
-
{
|
|
99
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
100
|
-
paths: [
|
|
101
|
-
{ path: "disputes.dueDate" },
|
|
102
|
-
{ path: "disputes.createdDate" },
|
|
103
|
-
{ path: "disputes.updatedDate" }
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
]),
|
|
107
|
-
fallback: [
|
|
108
|
-
{
|
|
109
|
-
method: "POST",
|
|
110
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
111
|
-
protoPath: "/v1/disputes/query",
|
|
112
|
-
data: payload,
|
|
113
|
-
host
|
|
114
|
-
}),
|
|
115
|
-
data: payload
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
};
|
|
119
|
-
return metadata;
|
|
120
|
-
}
|
|
121
|
-
return __queryDisputes;
|
|
122
|
-
}
|
|
123
|
-
function getDisputeActions(payload) {
|
|
124
|
-
function __getDisputeActions({ host }) {
|
|
125
|
-
const metadata = {
|
|
126
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
127
|
-
method: "GET",
|
|
128
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.GetDisputeActions",
|
|
129
|
-
packageName: PACKAGE_NAME,
|
|
130
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
131
|
-
protoPath: "/v1/disputes/{disputeId}/actions",
|
|
132
|
-
data: payload,
|
|
133
|
-
host
|
|
134
|
-
}),
|
|
135
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
136
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
137
|
-
{
|
|
138
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
139
|
-
paths: [{ path: "actions.dueDate" }]
|
|
140
|
-
}
|
|
141
|
-
])
|
|
142
|
-
};
|
|
143
|
-
return metadata;
|
|
144
|
-
}
|
|
145
|
-
return __getDisputeActions;
|
|
146
|
-
}
|
|
147
|
-
function acceptDispute(payload) {
|
|
148
|
-
function __acceptDispute({ host }) {
|
|
149
|
-
const metadata = {
|
|
150
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
151
|
-
method: "POST",
|
|
152
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.AcceptDispute",
|
|
153
|
-
packageName: PACKAGE_NAME,
|
|
154
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
155
|
-
protoPath: "/v1/disputes/{disputeId}/accept",
|
|
156
|
-
data: payload,
|
|
157
|
-
host
|
|
158
|
-
}),
|
|
159
|
-
data: payload,
|
|
160
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
161
|
-
{
|
|
162
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
163
|
-
paths: [
|
|
164
|
-
{ path: "dispute.dueDate" },
|
|
165
|
-
{ path: "dispute.createdDate" },
|
|
166
|
-
{ path: "dispute.updatedDate" }
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
])
|
|
170
|
-
};
|
|
171
|
-
return metadata;
|
|
172
|
-
}
|
|
173
|
-
return __acceptDispute;
|
|
174
|
-
}
|
|
175
|
-
function submitDisputeEvidence(payload) {
|
|
176
|
-
function __submitDisputeEvidence({ host }) {
|
|
177
|
-
const metadata = {
|
|
178
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
179
|
-
method: "POST",
|
|
180
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence",
|
|
181
|
-
packageName: PACKAGE_NAME,
|
|
182
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
183
|
-
protoPath: "/v1/disputes/{disputeId}/submit-evidence",
|
|
184
|
-
data: payload,
|
|
185
|
-
host
|
|
186
|
-
}),
|
|
187
|
-
data: payload,
|
|
188
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
189
|
-
{
|
|
190
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
191
|
-
paths: [
|
|
192
|
-
{ path: "dispute.dueDate" },
|
|
193
|
-
{ path: "dispute.createdDate" },
|
|
194
|
-
{ path: "dispute.updatedDate" }
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
])
|
|
198
|
-
};
|
|
199
|
-
return metadata;
|
|
200
|
-
}
|
|
201
|
-
return __submitDisputeEvidence;
|
|
202
|
-
}
|
|
203
|
-
function bulkUpdateDisputeTags(payload) {
|
|
204
|
-
function __bulkUpdateDisputeTags({ host }) {
|
|
205
|
-
const metadata = {
|
|
206
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
207
|
-
method: "POST",
|
|
208
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags",
|
|
209
|
-
packageName: PACKAGE_NAME,
|
|
210
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
211
|
-
protoPath: "/v1/bulk/disputes/update-tags",
|
|
212
|
-
data: payload,
|
|
213
|
-
host
|
|
214
|
-
}),
|
|
215
|
-
data: payload
|
|
216
|
-
};
|
|
217
|
-
return metadata;
|
|
218
|
-
}
|
|
219
|
-
return __bulkUpdateDisputeTags;
|
|
220
|
-
}
|
|
221
|
-
function bulkUpdateDisputeTagsByFilter(payload) {
|
|
222
|
-
function __bulkUpdateDisputeTagsByFilter({ host }) {
|
|
223
|
-
const metadata = {
|
|
224
|
-
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
225
|
-
method: "POST",
|
|
226
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter",
|
|
227
|
-
packageName: PACKAGE_NAME,
|
|
228
|
-
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
229
|
-
protoPath: "/v1/bulk/disputes/update-tags-by-filter",
|
|
230
|
-
data: payload,
|
|
231
|
-
host
|
|
232
|
-
}),
|
|
233
|
-
data: payload
|
|
234
|
-
};
|
|
235
|
-
return metadata;
|
|
236
|
-
}
|
|
237
|
-
return __bulkUpdateDisputeTagsByFilter;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// src/payments-disputes-v1-dispute-disputes.universal.ts
|
|
241
|
-
var DisputeStage = /* @__PURE__ */ ((DisputeStage2) => {
|
|
242
|
-
DisputeStage2["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
|
|
243
|
-
DisputeStage2["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
|
|
244
|
-
DisputeStage2["RFI"] = "RFI";
|
|
245
|
-
DisputeStage2["CHARGEBACK"] = "CHARGEBACK";
|
|
246
|
-
return DisputeStage2;
|
|
247
|
-
})(DisputeStage || {});
|
|
248
|
-
var DisputeReason = /* @__PURE__ */ ((DisputeReason2) => {
|
|
249
|
-
DisputeReason2["UNKNOWN_DISPUTE_REASON"] = "UNKNOWN_DISPUTE_REASON";
|
|
250
|
-
DisputeReason2["FRAUD_CARD_PRESENT"] = "FRAUD_CARD_PRESENT";
|
|
251
|
-
DisputeReason2["FRAUD_CARD_ABSENT"] = "FRAUD_CARD_ABSENT";
|
|
252
|
-
DisputeReason2["DUPLICATE_PROCESSING"] = "DUPLICATE_PROCESSING";
|
|
253
|
-
DisputeReason2["SERVICES_NOT_PROVIDED"] = "SERVICES_NOT_PROVIDED";
|
|
254
|
-
DisputeReason2["CANCELED_RECURRING"] = "CANCELED_RECURRING";
|
|
255
|
-
DisputeReason2["NOT_AS_DESCRIBED"] = "NOT_AS_DESCRIBED";
|
|
256
|
-
DisputeReason2["COUNTERFEIT"] = "COUNTERFEIT";
|
|
257
|
-
DisputeReason2["MISREPRESENTATION"] = "MISREPRESENTATION";
|
|
258
|
-
DisputeReason2["CANCELED"] = "CANCELED";
|
|
259
|
-
DisputeReason2["OTHER"] = "OTHER";
|
|
260
|
-
return DisputeReason2;
|
|
261
|
-
})(DisputeReason || {});
|
|
262
|
-
var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
|
|
263
|
-
DisputeStatus2["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
264
|
-
DisputeStatus2["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
265
|
-
DisputeStatus2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
266
|
-
DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
|
|
267
|
-
DisputeStatus2["WON"] = "WON";
|
|
268
|
-
DisputeStatus2["LOST"] = "LOST";
|
|
269
|
-
return DisputeStatus2;
|
|
270
|
-
})(DisputeStatus || {});
|
|
271
|
-
var SellerProtection = /* @__PURE__ */ ((SellerProtection2) => {
|
|
272
|
-
SellerProtection2["UNKNOWN_SELLER_PROTECTION"] = "UNKNOWN_SELLER_PROTECTION";
|
|
273
|
-
SellerProtection2["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
274
|
-
SellerProtection2["ELIGIBLE"] = "ELIGIBLE";
|
|
275
|
-
SellerProtection2["EXTENDED"] = "EXTENDED";
|
|
276
|
-
return SellerProtection2;
|
|
277
|
-
})(SellerProtection || {});
|
|
278
|
-
var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
|
|
279
|
-
DisputeChannel2["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
|
|
280
|
-
DisputeChannel2["INTERNAL"] = "INTERNAL";
|
|
281
|
-
DisputeChannel2["EXTERNAL"] = "EXTERNAL";
|
|
282
|
-
return DisputeChannel2;
|
|
283
|
-
})(DisputeChannel || {});
|
|
284
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
285
|
-
SortOrder2["ASC"] = "ASC";
|
|
286
|
-
SortOrder2["DESC"] = "DESC";
|
|
287
|
-
return SortOrder2;
|
|
288
|
-
})(SortOrder || {});
|
|
289
|
-
var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
|
|
290
|
-
DisputeActionType2["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
|
|
291
|
-
DisputeActionType2["ACCEPT"] = "ACCEPT";
|
|
292
|
-
DisputeActionType2["SUBMIT_EVIDENCE"] = "SUBMIT_EVIDENCE";
|
|
293
|
-
return DisputeActionType2;
|
|
294
|
-
})(DisputeActionType || {});
|
|
295
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
296
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
297
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
298
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
299
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
300
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
301
|
-
return WebhookIdentityType2;
|
|
302
|
-
})(WebhookIdentityType || {});
|
|
303
|
-
async function getDispute2(disputeId) {
|
|
304
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
305
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
306
|
-
disputeId
|
|
307
|
-
});
|
|
308
|
-
const reqOpts = getDispute(payload);
|
|
309
|
-
sideEffects?.onSiteCall?.();
|
|
310
|
-
try {
|
|
311
|
-
const result = await httpClient.request(reqOpts);
|
|
312
|
-
sideEffects?.onSuccess?.(result);
|
|
313
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.dispute;
|
|
314
|
-
} catch (err) {
|
|
315
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
316
|
-
err,
|
|
317
|
-
{
|
|
318
|
-
spreadPathsToArguments: {},
|
|
319
|
-
explicitPathsToArguments: { disputeId: "$[0]" },
|
|
320
|
-
singleArgumentUnchanged: false
|
|
321
|
-
},
|
|
322
|
-
["disputeId"]
|
|
323
|
-
);
|
|
324
|
-
sideEffects?.onError?.(err);
|
|
325
|
-
throw transformedError;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function queryDisputes2() {
|
|
329
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
330
|
-
return (0, import_query_builder.queryBuilder)({
|
|
331
|
-
func: async (payload) => {
|
|
332
|
-
const reqOpts = queryDisputes(payload);
|
|
333
|
-
sideEffects?.onSiteCall?.();
|
|
334
|
-
try {
|
|
335
|
-
const result = await httpClient.request(reqOpts);
|
|
336
|
-
sideEffects?.onSuccess?.(result);
|
|
337
|
-
return result;
|
|
338
|
-
} catch (err) {
|
|
339
|
-
sideEffects?.onError?.(err);
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
requestTransformer: (query) => {
|
|
344
|
-
const args = [query, {}];
|
|
345
|
-
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
346
|
-
...args?.[1],
|
|
347
|
-
query: args?.[0]
|
|
348
|
-
});
|
|
349
|
-
},
|
|
350
|
-
responseTransformer: ({ data }) => {
|
|
351
|
-
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(data);
|
|
352
|
-
return {
|
|
353
|
-
items: transformedData?.disputes,
|
|
354
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
355
|
-
};
|
|
356
|
-
},
|
|
357
|
-
errorTransformer: (err) => {
|
|
358
|
-
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
359
|
-
spreadPathsToArguments: {},
|
|
360
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
361
|
-
singleArgumentUnchanged: false
|
|
362
|
-
});
|
|
363
|
-
throw transformedError;
|
|
364
|
-
},
|
|
365
|
-
pagingMethod: "CURSOR",
|
|
366
|
-
transformationPaths: {}
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
async function getDisputeActions2(disputeId) {
|
|
370
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
371
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
372
|
-
disputeId
|
|
373
|
-
});
|
|
374
|
-
const reqOpts = getDisputeActions(payload);
|
|
375
|
-
sideEffects?.onSiteCall?.();
|
|
376
|
-
try {
|
|
377
|
-
const result = await httpClient.request(reqOpts);
|
|
378
|
-
sideEffects?.onSuccess?.(result);
|
|
379
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
380
|
-
} catch (err) {
|
|
381
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
382
|
-
err,
|
|
383
|
-
{
|
|
384
|
-
spreadPathsToArguments: {},
|
|
385
|
-
explicitPathsToArguments: { disputeId: "$[0]" },
|
|
386
|
-
singleArgumentUnchanged: false
|
|
387
|
-
},
|
|
388
|
-
["disputeId"]
|
|
389
|
-
);
|
|
390
|
-
sideEffects?.onError?.(err);
|
|
391
|
-
throw transformedError;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
async function acceptDispute2(disputeId) {
|
|
395
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
396
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
397
|
-
disputeId
|
|
398
|
-
});
|
|
399
|
-
const reqOpts = acceptDispute(payload);
|
|
400
|
-
sideEffects?.onSiteCall?.();
|
|
401
|
-
try {
|
|
402
|
-
const result = await httpClient.request(reqOpts);
|
|
403
|
-
sideEffects?.onSuccess?.(result);
|
|
404
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
405
|
-
} catch (err) {
|
|
406
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
407
|
-
err,
|
|
408
|
-
{
|
|
409
|
-
spreadPathsToArguments: {},
|
|
410
|
-
explicitPathsToArguments: { disputeId: "$[0]" },
|
|
411
|
-
singleArgumentUnchanged: false
|
|
412
|
-
},
|
|
413
|
-
["disputeId"]
|
|
414
|
-
);
|
|
415
|
-
sideEffects?.onError?.(err);
|
|
416
|
-
throw transformedError;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
async function submitDisputeEvidence2(disputeId) {
|
|
420
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
421
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
422
|
-
disputeId
|
|
423
|
-
});
|
|
424
|
-
const reqOpts = submitDisputeEvidence(payload);
|
|
425
|
-
sideEffects?.onSiteCall?.();
|
|
426
|
-
try {
|
|
427
|
-
const result = await httpClient.request(reqOpts);
|
|
428
|
-
sideEffects?.onSuccess?.(result);
|
|
429
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
430
|
-
} catch (err) {
|
|
431
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
432
|
-
err,
|
|
433
|
-
{
|
|
434
|
-
spreadPathsToArguments: {},
|
|
435
|
-
explicitPathsToArguments: { disputeId: "$[0]" },
|
|
436
|
-
singleArgumentUnchanged: false
|
|
437
|
-
},
|
|
438
|
-
["disputeId"]
|
|
439
|
-
);
|
|
440
|
-
sideEffects?.onError?.(err);
|
|
441
|
-
throw transformedError;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
async function bulkUpdateDisputeTags2(ids, options) {
|
|
445
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
446
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
447
|
-
ids,
|
|
448
|
-
assignTags: options?.assignTags,
|
|
449
|
-
unassignTags: options?.unassignTags
|
|
450
|
-
});
|
|
451
|
-
const reqOpts = bulkUpdateDisputeTags(payload);
|
|
452
|
-
sideEffects?.onSiteCall?.();
|
|
453
|
-
try {
|
|
454
|
-
const result = await httpClient.request(reqOpts);
|
|
455
|
-
sideEffects?.onSuccess?.(result);
|
|
456
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
457
|
-
} catch (err) {
|
|
458
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
459
|
-
err,
|
|
460
|
-
{
|
|
461
|
-
spreadPathsToArguments: {},
|
|
462
|
-
explicitPathsToArguments: {
|
|
463
|
-
ids: "$[0]",
|
|
464
|
-
assignTags: "$[1].assignTags",
|
|
465
|
-
unassignTags: "$[1].unassignTags"
|
|
466
|
-
},
|
|
467
|
-
singleArgumentUnchanged: false
|
|
468
|
-
},
|
|
469
|
-
["ids", "options"]
|
|
470
|
-
);
|
|
471
|
-
sideEffects?.onError?.(err);
|
|
472
|
-
throw transformedError;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
async function bulkUpdateDisputeTagsByFilter2(filter, options) {
|
|
476
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
477
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
478
|
-
filter,
|
|
479
|
-
assignTags: options?.assignTags,
|
|
480
|
-
unassignTags: options?.unassignTags
|
|
481
|
-
});
|
|
482
|
-
const reqOpts = bulkUpdateDisputeTagsByFilter(
|
|
483
|
-
payload
|
|
484
|
-
);
|
|
485
|
-
sideEffects?.onSiteCall?.();
|
|
486
|
-
try {
|
|
487
|
-
const result = await httpClient.request(reqOpts);
|
|
488
|
-
sideEffects?.onSuccess?.(result);
|
|
489
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
490
|
-
} catch (err) {
|
|
491
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
492
|
-
err,
|
|
493
|
-
{
|
|
494
|
-
spreadPathsToArguments: {},
|
|
495
|
-
explicitPathsToArguments: {
|
|
496
|
-
filter: "$[0]",
|
|
497
|
-
assignTags: "$[1].assignTags",
|
|
498
|
-
unassignTags: "$[1].unassignTags"
|
|
499
|
-
},
|
|
500
|
-
singleArgumentUnchanged: false
|
|
501
|
-
},
|
|
502
|
-
["filter", "options"]
|
|
503
|
-
);
|
|
504
|
-
sideEffects?.onError?.(err);
|
|
505
|
-
throw transformedError;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
// src/payments-disputes-v1-dispute-disputes.public.ts
|
|
510
|
-
function getDispute3(httpClient) {
|
|
511
|
-
return (disputeId) => getDispute2(
|
|
512
|
-
disputeId,
|
|
513
|
-
// @ts-ignore
|
|
514
|
-
{ httpClient }
|
|
515
|
-
);
|
|
516
|
-
}
|
|
517
|
-
function queryDisputes3(httpClient) {
|
|
518
|
-
return () => queryDisputes2(
|
|
519
|
-
// @ts-ignore
|
|
520
|
-
{ httpClient }
|
|
521
|
-
);
|
|
522
|
-
}
|
|
523
|
-
function getDisputeActions3(httpClient) {
|
|
524
|
-
return (disputeId) => getDisputeActions2(
|
|
525
|
-
disputeId,
|
|
526
|
-
// @ts-ignore
|
|
527
|
-
{ httpClient }
|
|
528
|
-
);
|
|
529
|
-
}
|
|
530
|
-
function acceptDispute3(httpClient) {
|
|
531
|
-
return (disputeId) => acceptDispute2(
|
|
532
|
-
disputeId,
|
|
533
|
-
// @ts-ignore
|
|
534
|
-
{ httpClient }
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
function submitDisputeEvidence3(httpClient) {
|
|
538
|
-
return (disputeId) => submitDisputeEvidence2(
|
|
539
|
-
disputeId,
|
|
540
|
-
// @ts-ignore
|
|
541
|
-
{ httpClient }
|
|
542
|
-
);
|
|
543
|
-
}
|
|
544
|
-
function bulkUpdateDisputeTags3(httpClient) {
|
|
545
|
-
return (ids, options) => bulkUpdateDisputeTags2(
|
|
546
|
-
ids,
|
|
547
|
-
options,
|
|
548
|
-
// @ts-ignore
|
|
549
|
-
{ httpClient }
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
function bulkUpdateDisputeTagsByFilter3(httpClient) {
|
|
553
|
-
return (filter, options) => bulkUpdateDisputeTagsByFilter2(
|
|
554
|
-
filter,
|
|
555
|
-
options,
|
|
556
|
-
// @ts-ignore
|
|
557
|
-
{ httpClient }
|
|
558
|
-
);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
// src/payments-disputes-v1-dispute-disputes.context.ts
|
|
562
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
563
|
-
var getDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDispute3);
|
|
564
|
-
var queryDisputes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDisputes3);
|
|
565
|
-
var getDisputeActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDisputeActions3);
|
|
566
|
-
var acceptDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(acceptDispute3);
|
|
567
|
-
var submitDisputeEvidence4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(submitDisputeEvidence3);
|
|
568
|
-
var bulkUpdateDisputeTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTags3);
|
|
569
|
-
var bulkUpdateDisputeTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTagsByFilter3);
|
|
570
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
571
|
-
0 && (module.exports = {
|
|
572
|
-
DisputeActionType,
|
|
573
|
-
DisputeChannel,
|
|
574
|
-
DisputeReason,
|
|
575
|
-
DisputeStage,
|
|
576
|
-
DisputeStatus,
|
|
577
|
-
SellerProtection,
|
|
578
|
-
SortOrder,
|
|
579
|
-
WebhookIdentityType,
|
|
580
|
-
acceptDispute,
|
|
581
|
-
bulkUpdateDisputeTags,
|
|
582
|
-
bulkUpdateDisputeTagsByFilter,
|
|
583
|
-
getDispute,
|
|
584
|
-
getDisputeActions,
|
|
585
|
-
queryDisputes,
|
|
586
|
-
submitDisputeEvidence
|
|
587
|
-
});
|
|
588
|
-
//# sourceMappingURL=index.js.map
|