@wix/auto_sdk_payments_disputes 1.0.35 → 1.0.36
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 +18 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +114 -93
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +88 -70
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +114 -93
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +88 -70
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -93
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +88 -70
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -93
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +88 -70
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,55 +1,62 @@
|
|
|
1
1
|
import { GetDisputeRequest as GetDisputeRequest$1, GetDisputeResponse as GetDisputeResponse$1, QueryDisputesRequest as QueryDisputesRequest$1, QueryDisputesResponse as QueryDisputesResponse$1, AcceptDisputeRequest as AcceptDisputeRequest$1, AcceptDisputeResponse as AcceptDisputeResponse$1, DefendDisputeRequest as DefendDisputeRequest$1, DefendDisputeResponse as DefendDisputeResponse$1, BulkUpdateDisputeTagsRequest as BulkUpdateDisputeTagsRequest$1, BulkUpdateDisputeTagsResponse as BulkUpdateDisputeTagsResponse$1, BulkUpdateDisputeTagsByFilterRequest as BulkUpdateDisputeTagsByFilterRequest$1, BulkUpdateDisputeTagsByFilterResponse as BulkUpdateDisputeTagsByFilterResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* A dispute occurs when a customer contacts their payment service provider (PSP) or bank to contest a payment for reasons such as fraud, service issues, or billing errors.
|
|
6
|
+
*
|
|
7
|
+
* Disputes follow a structured lifecycle from creation through resolution.
|
|
8
|
+
* Merchants can either accept liability or defend with evidence, depending on the available actions and due dates.
|
|
9
|
+
* The dispute's channel (internal vs external) affects processing timelines and available options.
|
|
10
|
+
*/
|
|
5
11
|
interface Dispute {
|
|
6
12
|
/**
|
|
7
|
-
* Dispute ID
|
|
13
|
+
* Dispute ID..
|
|
8
14
|
* @format GUID
|
|
9
15
|
* @immutable
|
|
10
16
|
*/
|
|
11
17
|
id?: string;
|
|
12
18
|
/**
|
|
13
|
-
*
|
|
19
|
+
* ID of the charge that is being disputed.
|
|
14
20
|
* @format GUID
|
|
15
21
|
* @immutable
|
|
16
22
|
*/
|
|
17
23
|
chargeId?: string;
|
|
18
24
|
/**
|
|
19
|
-
*
|
|
25
|
+
* Unique identifier assigned by the payment service provider for this dispute.
|
|
20
26
|
* @format GUID
|
|
21
27
|
* @immutable
|
|
22
28
|
*/
|
|
23
29
|
providerDisputeId?: string;
|
|
24
30
|
/**
|
|
25
|
-
*
|
|
31
|
+
* Stage of the dispute process.
|
|
26
32
|
* @readonly
|
|
27
33
|
*/
|
|
28
34
|
stage?: DisputeStageWithLiterals;
|
|
29
35
|
/**
|
|
30
|
-
*
|
|
36
|
+
* Reason why the customer initiated the dispute.
|
|
31
37
|
* @readonly
|
|
32
38
|
*/
|
|
33
39
|
reason?: DisputeReasonWithLiterals;
|
|
34
40
|
/**
|
|
35
|
-
*
|
|
41
|
+
* Three-letter currency code in @ISO-4217 alphabetic format. Matches the currency of the disputed charge.
|
|
36
42
|
* @immutable
|
|
37
43
|
* @format CURRENCY
|
|
38
44
|
*/
|
|
39
45
|
currencyCode?: string | null;
|
|
40
46
|
/**
|
|
41
|
-
*
|
|
47
|
+
* Disputed amount in the currency's main units. For example, `"12.95"` for $12.95.
|
|
42
48
|
* @immutable
|
|
43
49
|
* @decimalValue options { gt:0, maxScale:8 }
|
|
44
50
|
*/
|
|
45
51
|
amount?: string | null;
|
|
46
52
|
/**
|
|
47
|
-
*
|
|
53
|
+
* Current status of the dispute, indicating what action is required and who needs to take it.
|
|
48
54
|
* @readonly
|
|
49
55
|
*/
|
|
50
56
|
status?: DisputeStatusWithLiterals;
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Level of seller protection coverage for this dispute.
|
|
59
|
+
* Seller protection helps protect merchants from financial loss on eligible transactions due to unauthorized payments or claims that items were not received.
|
|
53
60
|
* @readonly
|
|
54
61
|
*/
|
|
55
62
|
sellerProtection?: SellerProtectionWithLiterals;
|
|
@@ -60,55 +67,57 @@ interface Dispute {
|
|
|
60
67
|
*/
|
|
61
68
|
channel?: DisputeChannelWithLiterals;
|
|
62
69
|
/**
|
|
63
|
-
* The latest date and time until which the dispute can remain in its current status
|
|
70
|
+
* The latest date and time until which the dispute can remain in its current status.
|
|
64
71
|
* @readonly
|
|
65
72
|
*/
|
|
66
73
|
dueDate?: Date | null;
|
|
67
74
|
/**
|
|
68
|
-
* Network reason code
|
|
75
|
+
* Network reason code provided by the card network or issuing bank that initiated the dispute.
|
|
69
76
|
* @minLength 1
|
|
70
77
|
* @maxLength 64
|
|
71
78
|
*/
|
|
72
79
|
networkReasonCode?: string | null;
|
|
73
80
|
/**
|
|
74
|
-
*
|
|
81
|
+
* Whether the dispute can be defended with evidence.
|
|
75
82
|
* @readonly
|
|
76
83
|
*/
|
|
77
84
|
defendable?: boolean | null;
|
|
78
85
|
/**
|
|
79
|
-
*
|
|
86
|
+
* Whether the dispute was automatically defended by the payment processor.
|
|
80
87
|
* @readonly
|
|
81
88
|
*/
|
|
82
89
|
autoDefended?: boolean | null;
|
|
83
90
|
/**
|
|
84
|
-
*
|
|
91
|
+
* Date and time when the dispute was defended.
|
|
85
92
|
* @readonly
|
|
86
93
|
*/
|
|
87
94
|
defendedDate?: Date | null;
|
|
88
95
|
/**
|
|
89
|
-
*
|
|
96
|
+
* Date and time when the dispute was accepted.
|
|
90
97
|
* @readonly
|
|
91
98
|
*/
|
|
92
99
|
acceptedDate?: Date | null;
|
|
93
100
|
/**
|
|
94
|
-
*
|
|
101
|
+
* Actions that can be performed on the dispute.
|
|
102
|
+
* Each action has a specific due date by which it must be completed.
|
|
103
|
+
* Available actions depend on the dispute's current status and stage.
|
|
95
104
|
* @readonly
|
|
96
105
|
* @maxSize 20
|
|
97
106
|
*/
|
|
98
107
|
actions?: DisputeAction[];
|
|
99
108
|
/**
|
|
100
|
-
*
|
|
109
|
+
* Date and time the dispute was created.
|
|
101
110
|
* @readonly
|
|
102
111
|
* @immutable
|
|
103
112
|
*/
|
|
104
113
|
createdDate?: Date | null;
|
|
105
114
|
/**
|
|
106
|
-
*
|
|
115
|
+
* Date and time the dispute was updated.
|
|
107
116
|
* @readonly
|
|
108
117
|
*/
|
|
109
118
|
updatedDate?: Date | null;
|
|
110
119
|
/**
|
|
111
|
-
* Revision number, which increments by 1 each time the
|
|
120
|
+
* Revision number, which increments by 1 each time the dispute is updated. To prevent conflicting changes, the current revision must be passed when updating the dispute. Ignored when creating a dispute.
|
|
112
121
|
* @readonly
|
|
113
122
|
*/
|
|
114
123
|
revision?: string | null;
|
|
@@ -119,91 +128,97 @@ interface Dispute {
|
|
|
119
128
|
}
|
|
120
129
|
declare enum DisputeStage {
|
|
121
130
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
122
|
-
/**
|
|
131
|
+
/** Formal dispute filed through the card network or issuing bank. */
|
|
123
132
|
CHARGEBACK = "CHARGEBACK",
|
|
124
|
-
/**
|
|
133
|
+
/** Initial inquiry from the cardholder requesting information about the charge. */
|
|
125
134
|
INQUIRY = "INQUIRY"
|
|
126
135
|
}
|
|
127
136
|
/** @enumType */
|
|
128
137
|
type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGEBACK' | 'INQUIRY';
|
|
129
138
|
declare enum DisputeReason {
|
|
130
|
-
/** Unknown reason */
|
|
139
|
+
/** Unknown dispute reason. */
|
|
131
140
|
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
132
|
-
/**
|
|
141
|
+
/** Fraudulent use of a physical card. */
|
|
133
142
|
FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
|
|
134
|
-
/**
|
|
143
|
+
/** Fraudulent use without the physical card present. */
|
|
135
144
|
FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
|
|
136
|
-
/**
|
|
145
|
+
/** Duplicate charge processing. */
|
|
137
146
|
DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
|
|
138
|
-
/**
|
|
147
|
+
/** Services or goods were not provided as promised. */
|
|
139
148
|
SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
|
|
140
|
-
/**
|
|
149
|
+
/** Recurring payment that should have been canceled. */
|
|
141
150
|
CANCELED_RECURRING = "CANCELED_RECURRING",
|
|
142
|
-
/** Item not as
|
|
151
|
+
/** Item received was not as described. */
|
|
143
152
|
NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
|
|
144
|
-
/**
|
|
153
|
+
/** Item received was counterfeit. */
|
|
145
154
|
COUNTERFEIT = "COUNTERFEIT",
|
|
146
|
-
/**
|
|
155
|
+
/** Merchant misrepresented the transaction. */
|
|
147
156
|
MISREPRESENTATION = "MISREPRESENTATION",
|
|
148
|
-
/**
|
|
157
|
+
/** Transaction was canceled but still charged. */
|
|
149
158
|
CANCELED = "CANCELED",
|
|
150
|
-
/** Other reason */
|
|
159
|
+
/** Other dispute reason not covered by specific categories. */
|
|
151
160
|
OTHER = "OTHER"
|
|
152
161
|
}
|
|
153
162
|
/** @enumType */
|
|
154
163
|
type DisputeReasonWithLiterals = DisputeReason | 'UNKNOWN_DISPUTE_REASON' | 'FRAUD_CARD_PRESENT' | 'FRAUD_CARD_ABSENT' | 'DUPLICATE_PROCESSING' | 'SERVICES_NOT_PROVIDED' | 'CANCELED_RECURRING' | 'NOT_AS_DESCRIBED' | 'COUNTERFEIT' | 'MISREPRESENTATION' | 'CANCELED' | 'OTHER';
|
|
155
164
|
declare enum DisputeStatus {
|
|
156
|
-
/** Unknown status */
|
|
165
|
+
/** Unknown dispute status. */
|
|
157
166
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
158
|
-
/**
|
|
167
|
+
/** Merchant action required to proceed with the dispute. */
|
|
159
168
|
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
160
|
-
/** Dispute is
|
|
169
|
+
/** Dispute is being reviewed by the payment service provider or bank. */
|
|
161
170
|
UNDER_REVIEW = "UNDER_REVIEW",
|
|
162
|
-
/**
|
|
171
|
+
/** Buyer action required to proceed with the dispute. */
|
|
163
172
|
WAITING_BUYER = "WAITING_BUYER",
|
|
164
|
-
/** Dispute
|
|
173
|
+
/** Dispute was resolved in favor of the merchant. */
|
|
165
174
|
WON = "WON",
|
|
166
|
-
/** Dispute
|
|
175
|
+
/** Dispute was resolved in favor of the customer. */
|
|
167
176
|
LOST = "LOST",
|
|
168
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Evidence has been submitted and is being processed by the payment provider.
|
|
179
|
+
* **Deprecated:** This field will be removed in a future version.
|
|
180
|
+
*/
|
|
169
181
|
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
170
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* Dispute acceptance is being processed by the payment provider.
|
|
184
|
+
* **Deprecated:** This field will be removed in a future version.
|
|
185
|
+
*/
|
|
171
186
|
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
172
187
|
}
|
|
173
188
|
/** @enumType */
|
|
174
189
|
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
175
190
|
declare enum SellerProtection {
|
|
176
191
|
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
177
|
-
/**
|
|
192
|
+
/** Transaction is not eligible for seller protection. */
|
|
178
193
|
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
179
|
-
/**
|
|
194
|
+
/** Transaction is eligible for basic seller protection. */
|
|
180
195
|
ELIGIBLE = "ELIGIBLE",
|
|
181
|
-
/**
|
|
196
|
+
/** Transaction is eligible for extended seller protection coverage. */
|
|
182
197
|
EXTENDED = "EXTENDED"
|
|
183
198
|
}
|
|
184
199
|
/** @enumType */
|
|
185
200
|
type SellerProtectionWithLiterals = SellerProtection | 'UNKNOWN_SELLER_PROTECTION' | 'NOT_ELIGIBLE' | 'ELIGIBLE' | 'EXTENDED';
|
|
186
201
|
declare enum DisputeChannel {
|
|
187
202
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
188
|
-
/**
|
|
203
|
+
/** Dispute is processed internally by the payment service provider. */
|
|
189
204
|
INTERNAL = "INTERNAL",
|
|
190
|
-
/**
|
|
205
|
+
/** Dispute is processed externally through the card network or issuing bank. */
|
|
191
206
|
EXTERNAL = "EXTERNAL"
|
|
192
207
|
}
|
|
193
208
|
/** @enumType */
|
|
194
209
|
type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
|
|
195
210
|
interface DisputeAction {
|
|
196
|
-
/**
|
|
211
|
+
/** Type of action that can be performed. */
|
|
197
212
|
type?: DisputeActionTypeWithLiterals;
|
|
198
|
-
/**
|
|
213
|
+
/** Latest date and time by which this action must be completed. */
|
|
199
214
|
dueDate?: Date | null;
|
|
200
215
|
}
|
|
201
216
|
declare enum DisputeActionType {
|
|
202
|
-
/** Unknown dispute
|
|
217
|
+
/** Unknown dispute action type. */
|
|
203
218
|
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
204
|
-
/** Accept dispute */
|
|
219
|
+
/** Accept liability for the dispute. */
|
|
205
220
|
ACCEPT = "ACCEPT",
|
|
206
|
-
/** Defend evidence */
|
|
221
|
+
/** Defend the dispute by submitting evidence. */
|
|
207
222
|
DEFEND = "DEFEND"
|
|
208
223
|
}
|
|
209
224
|
/** @enumType */
|
|
@@ -258,17 +273,20 @@ interface TagList {
|
|
|
258
273
|
}
|
|
259
274
|
interface GetDisputeRequest {
|
|
260
275
|
/**
|
|
261
|
-
* ID of the
|
|
276
|
+
* ID of the dispute to retrieve.
|
|
262
277
|
* @format GUID
|
|
263
278
|
*/
|
|
264
279
|
disputeId: string;
|
|
265
280
|
}
|
|
266
281
|
interface GetDisputeResponse {
|
|
267
|
-
/** The requested
|
|
282
|
+
/** The requested dispute. */
|
|
268
283
|
dispute?: Dispute;
|
|
269
284
|
}
|
|
270
285
|
interface QueryDisputesRequest {
|
|
271
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* WQL expression for filtering and sorting disputes.
|
|
288
|
+
* Supported properties: `id`, `createdDate`, `updatedDate`
|
|
289
|
+
*/
|
|
272
290
|
query?: CursorQuery;
|
|
273
291
|
}
|
|
274
292
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -326,9 +344,9 @@ interface CursorPaging {
|
|
|
326
344
|
cursor?: string | null;
|
|
327
345
|
}
|
|
328
346
|
interface QueryDisputesResponse {
|
|
329
|
-
/** List of
|
|
347
|
+
/** List of disputes matching the query criteria. */
|
|
330
348
|
disputes?: Dispute[];
|
|
331
|
-
/** Paging metadata */
|
|
349
|
+
/** Paging metadata for cursor-based pagination. */
|
|
332
350
|
pagingMetadata?: CursorPagingMetadata;
|
|
333
351
|
}
|
|
334
352
|
interface CursorPagingMetadata {
|
|
@@ -358,47 +376,47 @@ interface Cursors {
|
|
|
358
376
|
}
|
|
359
377
|
interface AcceptDisputeRequest {
|
|
360
378
|
/**
|
|
361
|
-
*
|
|
379
|
+
* ID of the dispute to accept.
|
|
362
380
|
* @format GUID
|
|
363
381
|
*/
|
|
364
382
|
disputeId: string;
|
|
365
383
|
}
|
|
366
384
|
interface AcceptDisputeResponse {
|
|
367
|
-
/**
|
|
385
|
+
/** Updated dispute after acceptance. */
|
|
368
386
|
dispute?: Dispute;
|
|
369
387
|
}
|
|
370
388
|
interface DefendDisputeRequest {
|
|
371
389
|
/**
|
|
372
|
-
*
|
|
390
|
+
* ID of the dispute to defend.
|
|
373
391
|
* @format GUID
|
|
374
392
|
*/
|
|
375
393
|
disputeId: string;
|
|
376
394
|
}
|
|
377
395
|
interface DefendDisputeResponse {
|
|
378
|
-
/**
|
|
396
|
+
/** Updated dispute after initiating defense. */
|
|
379
397
|
dispute?: Dispute;
|
|
380
398
|
}
|
|
381
399
|
interface BulkUpdateDisputeTagsRequest {
|
|
382
400
|
/**
|
|
383
|
-
* List of
|
|
401
|
+
* List of dispute IDs to update tags for.
|
|
384
402
|
* @minSize 1
|
|
385
403
|
* @maxSize 100
|
|
386
404
|
* @format GUID
|
|
387
405
|
*/
|
|
388
406
|
ids: string[];
|
|
389
|
-
/**
|
|
407
|
+
/** Tags to assign to the disputes. */
|
|
390
408
|
assignTags?: Tags;
|
|
391
|
-
/**
|
|
409
|
+
/** Tags to remove from the disputes. */
|
|
392
410
|
unassignTags?: Tags;
|
|
393
411
|
}
|
|
394
412
|
interface BulkUpdateDisputeTagsResponse {
|
|
395
413
|
/**
|
|
396
|
-
* Results
|
|
414
|
+
* Results of the bulk tag update operation.
|
|
397
415
|
* @minSize 1
|
|
398
416
|
* @maxSize 100
|
|
399
417
|
*/
|
|
400
418
|
results?: BulkUpdateDisputeTagsResult[];
|
|
401
|
-
/** Metadata
|
|
419
|
+
/** Metadata about the bulk operation. */
|
|
402
420
|
bulkActionMetadata?: BulkActionMetadata;
|
|
403
421
|
}
|
|
404
422
|
interface ItemMetadata {
|
|
@@ -423,7 +441,7 @@ interface ApplicationError {
|
|
|
423
441
|
data?: Record<string, any> | null;
|
|
424
442
|
}
|
|
425
443
|
interface BulkUpdateDisputeTagsResult {
|
|
426
|
-
/** Metadata
|
|
444
|
+
/** Metadata for the individual dispute update. */
|
|
427
445
|
itemMetadata?: ItemMetadata;
|
|
428
446
|
}
|
|
429
447
|
interface BulkActionMetadata {
|
|
@@ -435,16 +453,16 @@ interface BulkActionMetadata {
|
|
|
435
453
|
undetailedFailures?: number;
|
|
436
454
|
}
|
|
437
455
|
interface BulkUpdateDisputeTagsByFilterRequest {
|
|
438
|
-
/** Filter */
|
|
456
|
+
/** Filter criteria for selecting disputes to update. */
|
|
439
457
|
filter: Record<string, any> | null;
|
|
440
|
-
/**
|
|
458
|
+
/** Tags to assign to the filtered disputes. */
|
|
441
459
|
assignTags?: Tags;
|
|
442
|
-
/**
|
|
460
|
+
/** Tags to remove from the filtered disputes. */
|
|
443
461
|
unassignTags?: Tags;
|
|
444
462
|
}
|
|
445
463
|
interface BulkUpdateDisputeTagsByFilterResponse {
|
|
446
464
|
/**
|
|
447
|
-
*
|
|
465
|
+
* Job ID for tracking the asynchronous bulk update operation.
|
|
448
466
|
* @format GUID
|
|
449
467
|
*/
|
|
450
468
|
jobId?: string;
|
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/payments-disputes-v1-dispute-disputes.http.ts","../../src/payments-disputes-v1-dispute-disputes.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputesV1DisputeServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_disputes';\n\n/** Get Dispute by ID */\nexport function getDispute(payload: object): RequestOptionsFactory<any> {\n function __getDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.GetDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDispute;\n}\n\n/** Retrieves a list of Disputes */\nexport function queryDisputes(payload: object): RequestOptionsFactory<any> {\n function __queryDisputes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.QueryDisputes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputes.dueDate' },\n { path: 'disputes.defendedDate' },\n { path: 'disputes.acceptedDate' },\n { path: 'disputes.createdDate' },\n { path: 'disputes.updatedDate' },\n { path: 'disputes.actions.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputes;\n}\n\n/** Accept Dispute */\nexport function acceptDispute(payload: object): RequestOptionsFactory<any> {\n function __acceptDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.AcceptDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/accept',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __acceptDispute;\n}\n\n/**\n * Defend Dispute\n * To add (create) dispute evidence see the [Dispute Evidence Document API] (https://dev.wix.com/docs/api-reference/business-management/payments/disputes/dispute-evidence-documents/create-dispute-evidence-document)\n */\nexport function defendDispute(payload: object): RequestOptionsFactory<any> {\n function __defendDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.DefendDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/defend',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __defendDispute;\n}\n\n/**\n * Synchronously update tags on multiple Disputes, by list of Disputes ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTags;\n}\n\n/**\n * Asynchronously update tags on multiple Disputes, by provided filter\n * An empty filter will update all Disputes\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTagsByFilter;\n}\n","import * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\nimport * as ambassadorWixPaymentsDisputesV1DisputeTypes from './payments-disputes-v1-dispute-disputes.types.js';\nimport * as ambassadorWixPaymentsDisputesV1DisputeUniversalTypes from './payments-disputes-v1-dispute-disputes.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDispute(): __PublicMethodMetaInfo<\n 'GET',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.GetDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.GetDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.GetDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.GetDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.getDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/disputes/{disputeId}',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.QueryDisputesRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.QueryDisputesRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.QueryDisputesResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.QueryDisputesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.queryDisputes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/disputes/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function acceptDispute(): __PublicMethodMetaInfo<\n 'POST',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.AcceptDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.AcceptDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.AcceptDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.AcceptDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.acceptDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/disputes/{disputeId}/accept',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function defendDispute(): __PublicMethodMetaInfo<\n 'POST',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.DefendDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.DefendDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.DefendDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.DefendDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.defendDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/disputes/{disputeId}/defend',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTags(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/disputes/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsByFilterRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsByFilterRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsByFilterResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/disputes/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAs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C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,sBAAsB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC;AAAA,IACrC;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","getDispute","queryDisputes","acceptDispute","defendDispute","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../src/payments-disputes-v1-dispute-disputes.http.ts","../../src/payments-disputes-v1-dispute-disputes.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputesV1DisputeServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_disputes';\n\n/** Retrieves a dispute by ID. */\nexport function getDispute(payload: object): RequestOptionsFactory<any> {\n function __getDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.GetDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDispute;\n}\n\n/**\n * Retrieves a list of disputes based on query parameters.\n * Use this method to filter and sort disputes by various criteria such as status, creation date, or amount.\n */\nexport function queryDisputes(payload: object): RequestOptionsFactory<any> {\n function __queryDisputes({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'GET' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.QueryDisputes',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputes.dueDate' },\n { path: 'disputes.defendedDate' },\n { path: 'disputes.acceptedDate' },\n { path: 'disputes.createdDate' },\n { path: 'disputes.updatedDate' },\n { path: 'disputes.actions.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputes;\n}\n\n/**\n * Accepts liability for a dispute, indicating the merchant agrees with the customer's claim.\n * This action resolves the dispute in favor of the customer.\n */\nexport function acceptDispute(payload: object): RequestOptionsFactory<any> {\n function __acceptDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.AcceptDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/accept',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __acceptDispute;\n}\n\n/**\n * Initiates the defense process for a dispute by submitting it for review.\n * To add evidence documents, use the Dispute [Dispute Evidence Document API] (https://dev.wix.com/docs/api-reference/business-management/payments/disputes/dispute-evidence-documents/create-dispute-evidence-document) before calling this method.\n * Evidence must be submitted separately as this endpoint only triggers the defense process.\n */\nexport function defendDispute(payload: object): RequestOptionsFactory<any> {\n function __defendDispute({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn: 'wix.payments.disputes.v1.DisputeService.DefendDispute',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/disputes/{disputeId}/defend',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dispute.dueDate' },\n { path: 'dispute.defendedDate' },\n { path: 'dispute.acceptedDate' },\n { path: 'dispute.createdDate' },\n { path: 'dispute.updatedDate' },\n { path: 'dispute.actions.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __defendDispute;\n}\n\n/**\n * Updates tags on multiple disputes simultaneously using a list of dispute IDs.\n * If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTags;\n}\n\n/**\n * Asynchronously updates tags on multiple disputes based on filter criteria.\n * Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.payments.disputes.v1.dispute',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputesV1DisputeServiceUrl({\n protoPath: '/v1/bulk/disputes/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeTagsByFilter;\n}\n","import * as ambassadorWixPaymentsDisputesV1Dispute from './payments-disputes-v1-dispute-disputes.http.js';\nimport * as ambassadorWixPaymentsDisputesV1DisputeTypes from './payments-disputes-v1-dispute-disputes.types.js';\nimport * as ambassadorWixPaymentsDisputesV1DisputeUniversalTypes from './payments-disputes-v1-dispute-disputes.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDispute(): __PublicMethodMetaInfo<\n 'GET',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.GetDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.GetDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.GetDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.GetDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.getDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/disputes/{disputeId}',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputes(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.QueryDisputesRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.QueryDisputesRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.QueryDisputesResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.QueryDisputesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.queryDisputes(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/disputes/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function acceptDispute(): __PublicMethodMetaInfo<\n 'POST',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.AcceptDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.AcceptDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.AcceptDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.AcceptDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.acceptDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/disputes/{disputeId}/accept',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function defendDispute(): __PublicMethodMetaInfo<\n 'POST',\n { disputeId: string },\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.DefendDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.DefendDisputeRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.DefendDisputeResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.DefendDisputeResponse\n> {\n const payload = { disputeId: ':disputeId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.defendDispute(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/disputes/{disputeId}/defend',\n pathParams: { disputeId: 'disputeId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTags(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/disputes/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsByFilterRequest,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsByFilterRequest,\n ambassadorWixPaymentsDisputesV1DisputeUniversalTypes.BulkUpdateDisputeTagsByFilterResponse,\n ambassadorWixPaymentsDisputesV1DisputeTypes.BulkUpdateDisputeTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputesV1Dispute.bulkUpdateDisputeTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/disputes/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}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ACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,sBAAsB,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC;AAAA,IACrC;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","getDispute","queryDisputes","acceptDispute","defendDispute","bulkUpdateDisputeTags","bulkUpdateDisputeTagsByFilter"]}
|
|
@@ -5,42 +5,45 @@ export { AcceptDisputeManuallyRequest, AcceptDisputeManuallyResponse, AcceptDisp
|
|
|
5
5
|
declare function getDispute$1(httpClient: HttpClient): GetDisputeSignature;
|
|
6
6
|
interface GetDisputeSignature {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param - ID of the
|
|
10
|
-
* @returns The requested
|
|
8
|
+
* Retrieves a dispute by ID.
|
|
9
|
+
* @param - ID of the dispute to retrieve.
|
|
10
|
+
* @returns The requested dispute.
|
|
11
11
|
*/
|
|
12
12
|
(disputeId: string): Promise<NonNullablePaths<Dispute, `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `actions` | `actions.${number}.type` | `tags.privateTags.tagIds`, 4>>;
|
|
13
13
|
}
|
|
14
14
|
declare function queryDisputes$1(httpClient: HttpClient): QueryDisputesSignature;
|
|
15
15
|
interface QueryDisputesSignature {
|
|
16
16
|
/**
|
|
17
|
-
* Retrieves a list of
|
|
17
|
+
* Retrieves a list of disputes based on query parameters.
|
|
18
|
+
* Use this method to filter and sort disputes by various criteria such as status, creation date, or amount.
|
|
18
19
|
*/
|
|
19
20
|
(): DisputesQueryBuilder;
|
|
20
21
|
}
|
|
21
22
|
declare function acceptDispute$1(httpClient: HttpClient): AcceptDisputeSignature;
|
|
22
23
|
interface AcceptDisputeSignature {
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
25
|
+
* Accepts liability for a dispute, indicating the merchant agrees with the customer's claim.
|
|
26
|
+
* This action resolves the dispute in favor of the customer.
|
|
27
|
+
* @param - ID of the dispute to accept.
|
|
26
28
|
*/
|
|
27
29
|
(disputeId: string): Promise<NonNullablePaths<AcceptDisputeResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.actions` | `dispute.actions.${number}.type` | `dispute.tags.privateTags.tagIds`, 5>>;
|
|
28
30
|
}
|
|
29
31
|
declare function defendDispute$1(httpClient: HttpClient): DefendDisputeSignature;
|
|
30
32
|
interface DefendDisputeSignature {
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
33
|
-
* To add
|
|
34
|
-
*
|
|
34
|
+
* Initiates the defense process for a dispute by submitting it for review.
|
|
35
|
+
* To add evidence documents, use the Dispute [Dispute Evidence Document API] (https://dev.wix.com/docs/api-reference/business-management/payments/disputes/dispute-evidence-documents/create-dispute-evidence-document) before calling this method.
|
|
36
|
+
* Evidence must be submitted separately as this endpoint only triggers the defense process.
|
|
37
|
+
* @param - ID of the dispute to defend.
|
|
35
38
|
*/
|
|
36
39
|
(disputeId: string): Promise<NonNullablePaths<DefendDisputeResponse, `dispute._id` | `dispute.chargeId` | `dispute.providerDisputeId` | `dispute.stage` | `dispute.reason` | `dispute.status` | `dispute.sellerProtection` | `dispute.channel` | `dispute.actions` | `dispute.actions.${number}.type` | `dispute.tags.privateTags.tagIds`, 5>>;
|
|
37
40
|
}
|
|
38
41
|
declare function bulkUpdateDisputeTags$1(httpClient: HttpClient): BulkUpdateDisputeTagsSignature;
|
|
39
42
|
interface BulkUpdateDisputeTagsSignature {
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @param - List of
|
|
44
|
+
* Updates tags on multiple disputes simultaneously using a list of dispute IDs.
|
|
45
|
+
* If a tag appears in both assign and unassign lists, it will be assigned.
|
|
46
|
+
* @param - List of dispute IDs to update tags for.
|
|
44
47
|
*/
|
|
45
48
|
(ids: string[], options?: BulkUpdateDisputeTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
46
49
|
__applicationErrorsType?: BulkUpdateDisputeTagsApplicationErrors;
|
|
@@ -49,10 +52,9 @@ interface BulkUpdateDisputeTagsSignature {
|
|
|
49
52
|
declare function bulkUpdateDisputeTagsByFilter$1(httpClient: HttpClient): BulkUpdateDisputeTagsByFilterSignature;
|
|
50
53
|
interface BulkUpdateDisputeTagsByFilterSignature {
|
|
51
54
|
/**
|
|
52
|
-
* Asynchronously
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @param - Filter
|
|
55
|
+
* Asynchronously updates tags on multiple disputes based on filter criteria.
|
|
56
|
+
* Returns a job ID that can be used to track the operation status. If a tag appears in both assign and unassign lists, it will be assigned.
|
|
57
|
+
* @param - Filter criteria for selecting disputes to update.
|
|
56
58
|
*/
|
|
57
59
|
(filter: Record<string, any>, options?: BulkUpdateDisputeTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`, 2> & {
|
|
58
60
|
__applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;
|