@wix/auto_sdk_payments_disputes 1.0.30 → 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 +76 -39
- package/build/cjs/index.js +55 -34
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +50 -29
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +79 -43
- package/build/cjs/meta.js +45 -26
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +76 -39
- package/build/es/index.mjs +54 -33
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +49 -28
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +79 -43
- 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 +55 -34
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +87 -50
- package/build/internal/cjs/index.typings.js +50 -29
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +79 -43
- 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 +54 -33
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +87 -50
- package/build/internal/es/index.typings.mjs +49 -28
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +79 -43
- 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,17 +157,21 @@ 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",
|
|
129
164
|
/** Dispute won */
|
|
130
165
|
WON = "WON",
|
|
131
166
|
/** Dispute lost */
|
|
132
|
-
LOST = "LOST"
|
|
167
|
+
LOST = "LOST",
|
|
168
|
+
/** Evidence were submitted and are being processed on provider side */
|
|
169
|
+
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
170
|
+
/** The dispute was accepted and the acceptance is being processed on provider side */
|
|
171
|
+
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
133
172
|
}
|
|
134
173
|
/** @enumType */
|
|
135
|
-
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
|
|
174
|
+
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
136
175
|
declare enum SellerProtection {
|
|
137
176
|
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
138
177
|
/** Not Eligible */
|
|
@@ -153,6 +192,22 @@ declare enum DisputeChannel {
|
|
|
153
192
|
}
|
|
154
193
|
/** @enumType */
|
|
155
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';
|
|
156
211
|
interface ExtendedFields {
|
|
157
212
|
/**
|
|
158
213
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -276,44 +331,25 @@ interface Cursors {
|
|
|
276
331
|
*/
|
|
277
332
|
prev?: string | null;
|
|
278
333
|
}
|
|
279
|
-
interface
|
|
334
|
+
interface AcceptDisputeRequest {
|
|
280
335
|
/**
|
|
281
336
|
* Dispute ID
|
|
282
337
|
* @format GUID
|
|
283
338
|
*/
|
|
284
339
|
disputeId: string;
|
|
285
340
|
}
|
|
286
|
-
interface
|
|
287
|
-
/**
|
|
288
|
-
|
|
289
|
-
* @maxSize 20
|
|
290
|
-
*/
|
|
291
|
-
actions?: DisputeAction[];
|
|
292
|
-
}
|
|
293
|
-
interface DisputeAction {
|
|
294
|
-
/** Dispute Action type */
|
|
295
|
-
type?: DisputeActionTypeWithLiterals;
|
|
296
|
-
/** The latest date and time until which the action can be performed */
|
|
297
|
-
dueDate?: Date | null;
|
|
298
|
-
}
|
|
299
|
-
declare enum DisputeActionType {
|
|
300
|
-
/** Unknown dispute status */
|
|
301
|
-
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
302
|
-
/** Accept dispute */
|
|
303
|
-
ACCEPT = "ACCEPT",
|
|
304
|
-
/** Submit evidence */
|
|
305
|
-
SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
|
|
341
|
+
interface AcceptDisputeResponse {
|
|
342
|
+
/** Dispute */
|
|
343
|
+
dispute?: Dispute;
|
|
306
344
|
}
|
|
307
|
-
|
|
308
|
-
type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'SUBMIT_EVIDENCE';
|
|
309
|
-
interface AcceptDisputeRequest {
|
|
345
|
+
interface DefendDisputeRequest {
|
|
310
346
|
/**
|
|
311
347
|
* Dispute ID
|
|
312
348
|
* @format GUID
|
|
313
349
|
*/
|
|
314
350
|
disputeId: string;
|
|
315
351
|
}
|
|
316
|
-
interface
|
|
352
|
+
interface DefendDisputeResponse {
|
|
317
353
|
/** Dispute */
|
|
318
354
|
dispute?: Dispute;
|
|
319
355
|
}
|
|
@@ -353,6 +389,7 @@ interface CreateDisputeManuallyRequest {
|
|
|
353
389
|
reason?: DisputeReasonWithLiterals;
|
|
354
390
|
/** Dispute status based on provider dispute status */
|
|
355
391
|
status?: DisputeStatusWithLiterals;
|
|
392
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
356
393
|
dueDate?: Date | null;
|
|
357
394
|
/**
|
|
358
395
|
* Dispute currency. Should be the same as the charge currency.
|
|
@@ -743,4 +780,4 @@ interface BulkUpdateDisputeTagsByFilterOptions {
|
|
|
743
780
|
unassignTags?: Tags;
|
|
744
781
|
}
|
|
745
782
|
|
|
746
|
-
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
|
])
|
|
@@ -266,6 +285,8 @@ var DisputeStatus = /* @__PURE__ */ ((DisputeStatus2) => {
|
|
|
266
285
|
DisputeStatus2["WAITING_BUYER"] = "WAITING_BUYER";
|
|
267
286
|
DisputeStatus2["WON"] = "WON";
|
|
268
287
|
DisputeStatus2["LOST"] = "LOST";
|
|
288
|
+
DisputeStatus2["PROCESSING_EVIDENCE_SUBMISSION"] = "PROCESSING_EVIDENCE_SUBMISSION";
|
|
289
|
+
DisputeStatus2["PROCESSING_ACCEPTANCE"] = "PROCESSING_ACCEPTANCE";
|
|
269
290
|
return DisputeStatus2;
|
|
270
291
|
})(DisputeStatus || {});
|
|
271
292
|
var SellerProtection = /* @__PURE__ */ ((SellerProtection2) => {
|
|
@@ -281,17 +302,17 @@ var DisputeChannel = /* @__PURE__ */ ((DisputeChannel2) => {
|
|
|
281
302
|
DisputeChannel2["EXTERNAL"] = "EXTERNAL";
|
|
282
303
|
return DisputeChannel2;
|
|
283
304
|
})(DisputeChannel || {});
|
|
284
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
285
|
-
SortOrder2["ASC"] = "ASC";
|
|
286
|
-
SortOrder2["DESC"] = "DESC";
|
|
287
|
-
return SortOrder2;
|
|
288
|
-
})(SortOrder || {});
|
|
289
305
|
var DisputeActionType = /* @__PURE__ */ ((DisputeActionType2) => {
|
|
290
306
|
DisputeActionType2["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
|
|
291
307
|
DisputeActionType2["ACCEPT"] = "ACCEPT";
|
|
292
|
-
DisputeActionType2["
|
|
308
|
+
DisputeActionType2["DEFEND"] = "DEFEND";
|
|
293
309
|
return DisputeActionType2;
|
|
294
310
|
})(DisputeActionType || {});
|
|
311
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
312
|
+
SortOrder2["ASC"] = "ASC";
|
|
313
|
+
SortOrder2["DESC"] = "DESC";
|
|
314
|
+
return SortOrder2;
|
|
315
|
+
})(SortOrder || {});
|
|
295
316
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
296
317
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
297
318
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -368,12 +389,12 @@ function queryDisputes2() {
|
|
|
368
389
|
transformationPaths: {}
|
|
369
390
|
});
|
|
370
391
|
}
|
|
371
|
-
async function
|
|
392
|
+
async function acceptDispute2(disputeId) {
|
|
372
393
|
const { httpClient, sideEffects } = arguments[1];
|
|
373
394
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
374
395
|
disputeId
|
|
375
396
|
});
|
|
376
|
-
const reqOpts =
|
|
397
|
+
const reqOpts = acceptDispute(payload);
|
|
377
398
|
sideEffects?.onSiteCall?.();
|
|
378
399
|
try {
|
|
379
400
|
const result = await httpClient.request(reqOpts);
|
|
@@ -393,12 +414,12 @@ async function getDisputeActions2(disputeId) {
|
|
|
393
414
|
throw transformedError;
|
|
394
415
|
}
|
|
395
416
|
}
|
|
396
|
-
async function
|
|
417
|
+
async function defendDispute2(disputeId) {
|
|
397
418
|
const { httpClient, sideEffects } = arguments[1];
|
|
398
419
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
399
420
|
disputeId
|
|
400
421
|
});
|
|
401
|
-
const reqOpts =
|
|
422
|
+
const reqOpts = defendDispute(payload);
|
|
402
423
|
sideEffects?.onSiteCall?.();
|
|
403
424
|
try {
|
|
404
425
|
const result = await httpClient.request(reqOpts);
|
|
@@ -522,15 +543,15 @@ function queryDisputes3(httpClient) {
|
|
|
522
543
|
{ httpClient }
|
|
523
544
|
);
|
|
524
545
|
}
|
|
525
|
-
function
|
|
526
|
-
return (disputeId) =>
|
|
546
|
+
function acceptDispute3(httpClient) {
|
|
547
|
+
return (disputeId) => acceptDispute2(
|
|
527
548
|
disputeId,
|
|
528
549
|
// @ts-ignore
|
|
529
550
|
{ httpClient }
|
|
530
551
|
);
|
|
531
552
|
}
|
|
532
|
-
function
|
|
533
|
-
return (disputeId) =>
|
|
553
|
+
function defendDispute3(httpClient) {
|
|
554
|
+
return (disputeId) => defendDispute2(
|
|
534
555
|
disputeId,
|
|
535
556
|
// @ts-ignore
|
|
536
557
|
{ httpClient }
|
|
@@ -564,8 +585,8 @@ function bulkUpdateDisputeTagsByFilter3(httpClient) {
|
|
|
564
585
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
565
586
|
var getDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDispute3);
|
|
566
587
|
var queryDisputes4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDisputes3);
|
|
567
|
-
var getDisputeActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDisputeActions3);
|
|
568
588
|
var acceptDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(acceptDispute3);
|
|
589
|
+
var defendDispute4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(defendDispute3);
|
|
569
590
|
var submitDisputeEvidence4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(submitDisputeEvidence3);
|
|
570
591
|
var bulkUpdateDisputeTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTags3);
|
|
571
592
|
var bulkUpdateDisputeTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDisputeTagsByFilter3);
|
|
@@ -582,8 +603,8 @@ var bulkUpdateDisputeTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.cr
|
|
|
582
603
|
acceptDispute,
|
|
583
604
|
bulkUpdateDisputeTags,
|
|
584
605
|
bulkUpdateDisputeTagsByFilter,
|
|
606
|
+
defendDispute,
|
|
585
607
|
getDispute,
|
|
586
|
-
getDisputeActions,
|
|
587
608
|
queryDisputes,
|
|
588
609
|
submitDisputeEvidence
|
|
589
610
|
});
|