@wix/auto_sdk_payments_disputes 1.0.31 → 1.0.32
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 +70 -37
- package/build/cjs/index.js +53 -34
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +48 -29
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +73 -41
- package/build/cjs/meta.js +45 -26
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +70 -37
- package/build/es/index.mjs +52 -33
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +47 -28
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +73 -41
- package/build/es/meta.mjs +44 -25
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +16 -16
- package/build/internal/cjs/index.js +53 -34
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +81 -48
- package/build/internal/cjs/index.typings.js +48 -29
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +73 -41
- package/build/internal/cjs/meta.js +45 -26
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +16 -16
- package/build/internal/es/index.mjs +52 -33
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +81 -48
- package/build/internal/es/index.typings.mjs +47 -28
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +73 -41
- package/build/internal/es/meta.mjs +44 -25
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -18,9 +18,15 @@ interface Dispute {
|
|
|
18
18
|
* @immutable
|
|
19
19
|
*/
|
|
20
20
|
providerDisputeId?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Dispute stage
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
22
25
|
stage?: DisputeStageWithLiterals;
|
|
23
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Dispute reason
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
24
30
|
reason?: DisputeReasonWithLiterals;
|
|
25
31
|
/**
|
|
26
32
|
* Dispute currency. Should be the same as the charge currency.
|
|
@@ -34,33 +40,62 @@ interface Dispute {
|
|
|
34
40
|
* @decimalValue options { gt:0, maxScale:8 }
|
|
35
41
|
*/
|
|
36
42
|
amount?: string | null;
|
|
37
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Dispute status based on provider dispute status
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
38
47
|
status?: DisputeStatusWithLiterals;
|
|
39
48
|
/** True if the merchant can do the refund with the opened dispute, false otherwise */
|
|
40
49
|
chargeRefundable?: boolean | null;
|
|
41
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Seller protection helps protect sellers from financial loss on eligible transactions due to unauthorized payments or claims that items were not received
|
|
52
|
+
* @readonly
|
|
53
|
+
*/
|
|
42
54
|
sellerProtection?: SellerProtectionWithLiterals;
|
|
43
55
|
/**
|
|
44
56
|
* Dispute Channel
|
|
45
57
|
* Internal - this dispute is created on provider side
|
|
46
58
|
* External - this dispute is created on bank side
|
|
59
|
+
* @readonly
|
|
47
60
|
*/
|
|
48
61
|
channel?: DisputeChannelWithLiterals;
|
|
49
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The latest date and time until which the dispute can remain in its current status
|
|
64
|
+
* @readonly
|
|
65
|
+
*/
|
|
50
66
|
dueDate?: Date | null;
|
|
51
67
|
/**
|
|
52
68
|
* Network reason code
|
|
53
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa
|
|
54
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard
|
|
55
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex
|
|
56
69
|
* @minLength 1
|
|
57
70
|
* @maxLength 64
|
|
58
71
|
*/
|
|
59
72
|
networkReasonCode?: string | null;
|
|
60
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* True if dispute is defendable
|
|
75
|
+
* @readonly
|
|
76
|
+
*/
|
|
61
77
|
defendable?: boolean | null;
|
|
62
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* True if it is an auto dispute
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
63
82
|
autoDefended?: boolean | null;
|
|
83
|
+
/**
|
|
84
|
+
* The dispute defense date
|
|
85
|
+
* @readonly
|
|
86
|
+
*/
|
|
87
|
+
defenseDate?: Date | null;
|
|
88
|
+
/**
|
|
89
|
+
* The dispute acceptance date
|
|
90
|
+
* @readonly
|
|
91
|
+
*/
|
|
92
|
+
acceptanceDate?: Date | null;
|
|
93
|
+
/**
|
|
94
|
+
* The actions that can be perform with the dispute
|
|
95
|
+
* @readonly
|
|
96
|
+
* @maxSize 20
|
|
97
|
+
*/
|
|
98
|
+
actions?: DisputeAction[];
|
|
64
99
|
/**
|
|
65
100
|
* The dispute created date
|
|
66
101
|
* @readonly
|
|
@@ -122,7 +157,7 @@ declare enum DisputeStatus {
|
|
|
122
157
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
123
158
|
/** Waiting for some merchant action */
|
|
124
159
|
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
125
|
-
/** Dispute is under review by PSP
|
|
160
|
+
/** Dispute is under review by PSP or Bank */
|
|
126
161
|
UNDER_REVIEW = "UNDER_REVIEW",
|
|
127
162
|
/** Waiting for some buyer action */
|
|
128
163
|
WAITING_BUYER = "WAITING_BUYER",
|
|
@@ -157,6 +192,22 @@ declare enum DisputeChannel {
|
|
|
157
192
|
}
|
|
158
193
|
/** @enumType */
|
|
159
194
|
type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
|
|
195
|
+
interface DisputeAction {
|
|
196
|
+
/** Dispute Action type */
|
|
197
|
+
type?: DisputeActionTypeWithLiterals;
|
|
198
|
+
/** The latest date and time until which the action can be performed */
|
|
199
|
+
dueDate?: Date | null;
|
|
200
|
+
}
|
|
201
|
+
declare enum DisputeActionType {
|
|
202
|
+
/** Unknown dispute status */
|
|
203
|
+
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
204
|
+
/** Accept dispute */
|
|
205
|
+
ACCEPT = "ACCEPT",
|
|
206
|
+
/** Defend evidence */
|
|
207
|
+
DEFEND = "DEFEND"
|
|
208
|
+
}
|
|
209
|
+
/** @enumType */
|
|
210
|
+
type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'DEFEND';
|
|
160
211
|
interface ExtendedFields {
|
|
161
212
|
/**
|
|
162
213
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -280,44 +331,25 @@ interface Cursors {
|
|
|
280
331
|
*/
|
|
281
332
|
prev?: string | null;
|
|
282
333
|
}
|
|
283
|
-
interface
|
|
334
|
+
interface AcceptDisputeRequest {
|
|
284
335
|
/**
|
|
285
336
|
* Dispute ID
|
|
286
337
|
* @format GUID
|
|
287
338
|
*/
|
|
288
339
|
disputeId: string;
|
|
289
340
|
}
|
|
290
|
-
interface
|
|
291
|
-
/**
|
|
292
|
-
|
|
293
|
-
* @maxSize 20
|
|
294
|
-
*/
|
|
295
|
-
actions?: DisputeAction[];
|
|
296
|
-
}
|
|
297
|
-
interface DisputeAction {
|
|
298
|
-
/** Dispute Action type */
|
|
299
|
-
type?: DisputeActionTypeWithLiterals;
|
|
300
|
-
/** The latest date and time until which the action can be performed */
|
|
301
|
-
dueDate?: Date | null;
|
|
302
|
-
}
|
|
303
|
-
declare enum DisputeActionType {
|
|
304
|
-
/** Unknown dispute status */
|
|
305
|
-
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
306
|
-
/** Accept dispute */
|
|
307
|
-
ACCEPT = "ACCEPT",
|
|
308
|
-
/** Submit evidence */
|
|
309
|
-
SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
|
|
341
|
+
interface AcceptDisputeResponse {
|
|
342
|
+
/** Dispute */
|
|
343
|
+
dispute?: Dispute;
|
|
310
344
|
}
|
|
311
|
-
|
|
312
|
-
type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'SUBMIT_EVIDENCE';
|
|
313
|
-
interface AcceptDisputeRequest {
|
|
345
|
+
interface DefendDisputeRequest {
|
|
314
346
|
/**
|
|
315
347
|
* Dispute ID
|
|
316
348
|
* @format GUID
|
|
317
349
|
*/
|
|
318
350
|
disputeId: string;
|
|
319
351
|
}
|
|
320
|
-
interface
|
|
352
|
+
interface DefendDisputeResponse {
|
|
321
353
|
/** Dispute */
|
|
322
354
|
dispute?: Dispute;
|
|
323
355
|
}
|
|
@@ -357,6 +389,7 @@ interface CreateDisputeManuallyRequest {
|
|
|
357
389
|
reason?: DisputeReasonWithLiterals;
|
|
358
390
|
/** Dispute status based on provider dispute status */
|
|
359
391
|
status?: DisputeStatusWithLiterals;
|
|
392
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
360
393
|
dueDate?: Date | null;
|
|
361
394
|
/**
|
|
362
395
|
* Dispute currency. Should be the same as the charge currency.
|
|
@@ -747,4 +780,4 @@ interface BulkUpdateDisputeTagsByFilterOptions {
|
|
|
747
780
|
unassignTags?: Tags;
|
|
748
781
|
}
|
|
749
782
|
|
|
750
|
-
export { type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type
|
|
783
|
+
export { type AcceptDisputeRequest, type AcceptDisputeResponse, type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeTagsApplicationErrors, type BulkUpdateDisputeTagsByFilterApplicationErrors, type BulkUpdateDisputeTagsByFilterOptions, type BulkUpdateDisputeTagsByFilterRequest, type BulkUpdateDisputeTagsByFilterResponse, type BulkUpdateDisputeTagsOptions, type BulkUpdateDisputeTagsRequest, type BulkUpdateDisputeTagsResponse, type BulkUpdateDisputeTagsResult, type ChangeDisputeStatusManuallyRequest, type ChangeDisputeStatusManuallyResponse, type CreateDisputeManuallyRequest, type CreateDisputeManuallyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DefendDisputeRequest, type DefendDisputeResponse, type Dispute, type DisputeAction, DisputeActionType, type DisputeActionTypeWithLiterals, DisputeChannel, type DisputeChannelWithLiterals, DisputeReason, type DisputeReasonWithLiterals, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DisputesQueryBuilder, type DisputesQueryResult, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeRequest, type GetDisputeResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type PublicTags, type QueryDisputesRequest, type QueryDisputesResponse, type RestoreInfo, SellerProtection, type SellerProtectionWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitDisputeEvidenceRequest, type SubmitDisputeEvidenceResponse, type TagList, type Tags, type TagsTagList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
|
package/build/cjs/index.js
CHANGED
|
@@ -31,8 +31,8 @@ __export(index_exports, {
|
|
|
31
31
|
acceptDispute: () => acceptDispute4,
|
|
32
32
|
bulkUpdateDisputeTags: () => bulkUpdateDisputeTags4,
|
|
33
33
|
bulkUpdateDisputeTagsByFilter: () => bulkUpdateDisputeTagsByFilter4,
|
|
34
|
+
defendDispute: () => defendDispute4,
|
|
34
35
|
getDispute: () => getDispute4,
|
|
35
|
-
getDisputeActions: () => getDisputeActions4,
|
|
36
36
|
queryDisputes: () => queryDisputes4,
|
|
37
37
|
submitDisputeEvidence: () => submitDisputeEvidence4
|
|
38
38
|
});
|
|
@@ -71,8 +71,11 @@ function getDispute(payload) {
|
|
|
71
71
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
72
72
|
paths: [
|
|
73
73
|
{ path: "dispute.dueDate" },
|
|
74
|
+
{ path: "dispute.defenseDate" },
|
|
75
|
+
{ path: "dispute.acceptanceDate" },
|
|
74
76
|
{ path: "dispute.createdDate" },
|
|
75
|
-
{ path: "dispute.updatedDate" }
|
|
77
|
+
{ path: "dispute.updatedDate" },
|
|
78
|
+
{ path: "dispute.actions.dueDate" }
|
|
76
79
|
]
|
|
77
80
|
}
|
|
78
81
|
])
|
|
@@ -99,8 +102,11 @@ function queryDisputes(payload) {
|
|
|
99
102
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
100
103
|
paths: [
|
|
101
104
|
{ path: "disputes.dueDate" },
|
|
105
|
+
{ path: "disputes.defenseDate" },
|
|
106
|
+
{ path: "disputes.acceptanceDate" },
|
|
102
107
|
{ path: "disputes.createdDate" },
|
|
103
|
-
{ path: "disputes.updatedDate" }
|
|
108
|
+
{ path: "disputes.updatedDate" },
|
|
109
|
+
{ path: "disputes.actions.dueDate" }
|
|
104
110
|
]
|
|
105
111
|
}
|
|
106
112
|
]),
|
|
@@ -120,39 +126,46 @@ function queryDisputes(payload) {
|
|
|
120
126
|
}
|
|
121
127
|
return __queryDisputes;
|
|
122
128
|
}
|
|
123
|
-
function
|
|
124
|
-
function
|
|
129
|
+
function acceptDispute(payload) {
|
|
130
|
+
function __acceptDispute({ host }) {
|
|
125
131
|
const metadata = {
|
|
126
132
|
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
127
|
-
method: "
|
|
128
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.
|
|
133
|
+
method: "POST",
|
|
134
|
+
methodFqn: "wix.payments.disputes.v1.DisputeService.AcceptDispute",
|
|
129
135
|
packageName: PACKAGE_NAME,
|
|
130
136
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
131
|
-
protoPath: "/v1/disputes/{disputeId}/
|
|
137
|
+
protoPath: "/v1/disputes/{disputeId}/accept",
|
|
132
138
|
data: payload,
|
|
133
139
|
host
|
|
134
140
|
}),
|
|
135
|
-
|
|
141
|
+
data: payload,
|
|
136
142
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
137
143
|
{
|
|
138
144
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
139
|
-
paths: [
|
|
145
|
+
paths: [
|
|
146
|
+
{ path: "dispute.dueDate" },
|
|
147
|
+
{ path: "dispute.defenseDate" },
|
|
148
|
+
{ path: "dispute.acceptanceDate" },
|
|
149
|
+
{ path: "dispute.createdDate" },
|
|
150
|
+
{ path: "dispute.updatedDate" },
|
|
151
|
+
{ path: "dispute.actions.dueDate" }
|
|
152
|
+
]
|
|
140
153
|
}
|
|
141
154
|
])
|
|
142
155
|
};
|
|
143
156
|
return metadata;
|
|
144
157
|
}
|
|
145
|
-
return
|
|
158
|
+
return __acceptDispute;
|
|
146
159
|
}
|
|
147
|
-
function
|
|
148
|
-
function
|
|
160
|
+
function defendDispute(payload) {
|
|
161
|
+
function __defendDispute({ host }) {
|
|
149
162
|
const metadata = {
|
|
150
163
|
entityFqdn: "wix.payments.disputes.v1.dispute",
|
|
151
164
|
method: "POST",
|
|
152
|
-
methodFqn: "wix.payments.disputes.v1.DisputeService.
|
|
165
|
+
methodFqn: "wix.payments.disputes.v1.DisputeService.DefendDispute",
|
|
153
166
|
packageName: PACKAGE_NAME,
|
|
154
167
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
155
|
-
protoPath: "/v1/disputes/{disputeId}/
|
|
168
|
+
protoPath: "/v1/disputes/{disputeId}/defend",
|
|
156
169
|
data: payload,
|
|
157
170
|
host
|
|
158
171
|
}),
|
|
@@ -162,15 +175,18 @@ function acceptDispute(payload) {
|
|
|
162
175
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
163
176
|
paths: [
|
|
164
177
|
{ path: "dispute.dueDate" },
|
|
178
|
+
{ path: "dispute.defenseDate" },
|
|
179
|
+
{ path: "dispute.acceptanceDate" },
|
|
165
180
|
{ path: "dispute.createdDate" },
|
|
166
|
-
{ path: "dispute.updatedDate" }
|
|
181
|
+
{ path: "dispute.updatedDate" },
|
|
182
|
+
{ path: "dispute.actions.dueDate" }
|
|
167
183
|
]
|
|
168
184
|
}
|
|
169
185
|
])
|
|
170
186
|
};
|
|
171
187
|
return metadata;
|
|
172
188
|
}
|
|
173
|
-
return
|
|
189
|
+
return __defendDispute;
|
|
174
190
|
}
|
|
175
191
|
function submitDisputeEvidence(payload) {
|
|
176
192
|
function __submitDisputeEvidence({ host }) {
|
|
@@ -190,8 +206,11 @@ function submitDisputeEvidence(payload) {
|
|
|
190
206
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
191
207
|
paths: [
|
|
192
208
|
{ path: "dispute.dueDate" },
|
|
209
|
+
{ path: "dispute.defenseDate" },
|
|
210
|
+
{ path: "dispute.acceptanceDate" },
|
|
193
211
|
{ path: "dispute.createdDate" },
|
|
194
|
-
{ path: "dispute.updatedDate" }
|
|
212
|
+
{ path: "dispute.updatedDate" },
|
|
213
|
+
{ path: "dispute.actions.dueDate" }
|
|
195
214
|
]
|
|
196
215
|
}
|
|
197
216
|
])
|
|
@@ -283,17 +302,17 @@ var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
|
|
|
283
302
|
DisputeChannel2["EXTERNAL"] = "EXTERNAL";
|
|
284
303
|
return DisputeChannel2;
|
|
285
304
|
})(DisputeChannel || {});
|
|
286
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
287
|
-
SortOrder2["ASC"] = "ASC";
|
|
288
|
-
SortOrder2["DESC"] = "DESC";
|
|
289
|
-
return SortOrder2;
|
|
290
|
-
})(SortOrder || {});
|
|
291
305
|
var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
|
|
292
306
|
DisputeActionType2["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
|
|
293
307
|
DisputeActionType2["ACCEPT"] = "ACCEPT";
|
|
294
|
-
DisputeActionType2["
|
|
308
|
+
DisputeActionType2["DEFEND"] = "DEFEND";
|
|
295
309
|
return DisputeActionType2;
|
|
296
310
|
})(DisputeActionType || {});
|
|
311
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
312
|
+
SortOrder2["ASC"] = "ASC";
|
|
313
|
+
SortOrder2["DESC"] = "DESC";
|
|
314
|
+
return SortOrder2;
|
|
315
|
+
})(SortOrder || {});
|
|
297
316
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
298
317
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
299
318
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -370,12 +389,12 @@ function queryDisputes2() {
|
|
|
370
389
|
transformationPaths: {}
|
|
371
390
|
});
|
|
372
391
|
}
|
|
373
|
-
async function
|
|
392
|
+
async function acceptDispute2(disputeId) {
|
|
374
393
|
const { httpClient, sideEffects } = arguments[1];
|
|
375
394
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
376
395
|
disputeId
|
|
377
396
|
});
|
|
378
|
-
const reqOpts =
|
|
397
|
+
const reqOpts = acceptDispute(payload);
|
|
379
398
|
sideEffects?.onSiteCall?.();
|
|
380
399
|
try {
|
|
381
400
|
const result = await httpClient.request(reqOpts);
|
|
@@ -395,12 +414,12 @@ async function getDisputeActions2(disputeId) {
|
|
|
395
414
|
throw transformedError;
|
|
396
415
|
}
|
|
397
416
|
}
|
|
398
|
-
async function
|
|
417
|
+
async function defendDispute2(disputeId) {
|
|
399
418
|
const { httpClient, sideEffects } = arguments[1];
|
|
400
419
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
401
420
|
disputeId
|
|
402
421
|
});
|
|
403
|
-
const reqOpts =
|
|
422
|
+
const reqOpts = defendDispute(payload);
|
|
404
423
|
sideEffects?.onSiteCall?.();
|
|
405
424
|
try {
|
|
406
425
|
const result = await httpClient.request(reqOpts);
|
|
@@ -524,15 +543,15 @@ function queryDisputes3(httpClient) {
|
|
|
524
543
|
{ httpClient }
|
|
525
544
|
);
|
|
526
545
|
}
|
|
527
|
-
function
|
|
528
|
-
return (disputeId) =>
|
|
546
|
+
function acceptDispute3(httpClient) {
|
|
547
|
+
return (disputeId) => acceptDispute2(
|
|
529
548
|
disputeId,
|
|
530
549
|
// @ts-ignore
|
|
531
550
|
{ httpClient }
|
|
532
551
|
);
|
|
533
552
|
}
|
|
534
|
-
function
|
|
535
|
-
return (disputeId) =>
|
|
553
|
+
function defendDispute3(httpClient) {
|
|
554
|
+
return (disputeId) => defendDispute2(
|
|
536
555
|
disputeId,
|
|
537
556
|
// @ts-ignore
|
|
538
557
|
{ httpClient }
|
|
@@ -566,8 +585,8 @@ function bulkUpdateDisputeTagsByFilter3(httpClient) {
|
|
|
566
585
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
567
586
|
var getDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDispute3);
|
|
568
587
|
var queryDisputes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDisputes3);
|
|
569
|
-
var getDisputeActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDisputeActions3);
|
|
570
588
|
var acceptDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(acceptDispute3);
|
|
589
|
+
var defendDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(defendDispute3);
|
|
571
590
|
var submitDisputeEvidence4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(submitDisputeEvidence3);
|
|
572
591
|
var bulkUpdateDisputeTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTags3);
|
|
573
592
|
var bulkUpdateDisputeTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTagsByFilter3);
|
|
@@ -584,8 +603,8 @@ var bulkUpdateDisputeTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.cr
|
|
|
584
603
|
acceptDispute,
|
|
585
604
|
bulkUpdateDisputeTags,
|
|
586
605
|
bulkUpdateDisputeTagsByFilter,
|
|
606
|
+
defendDispute,
|
|
587
607
|
getDispute,
|
|
588
|
-
getDisputeActions,
|
|
589
608
|
queryDisputes,
|
|
590
609
|
submitDisputeEvidence
|
|
591
610
|
});
|