@wix/auto_sdk_payments_disputes 1.0.35 → 1.0.37
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 +18 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +114 -93
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +88 -70
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +18 -16
- package/build/es/index.mjs +18 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +114 -93
- package/build/es/index.typings.mjs +18 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +88 -70
- package/build/es/meta.mjs +18 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -16
- package/build/internal/cjs/index.js +18 -0
- 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 +18 -0
- 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 +18 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -16
- package/build/internal/es/index.mjs +18 -0
- 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 +18 -0
- 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 +18 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,54 +1,61 @@
|
|
|
1
1
|
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* 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.
|
|
5
|
+
*
|
|
6
|
+
* Disputes follow a structured lifecycle from creation through resolution.
|
|
7
|
+
* Merchants can either accept liability or defend with evidence, depending on the available actions and due dates.
|
|
8
|
+
* The dispute's channel (internal vs external) affects processing timelines and available options.
|
|
9
|
+
*/
|
|
4
10
|
interface Dispute {
|
|
5
11
|
/**
|
|
6
|
-
* Dispute ID
|
|
12
|
+
* Dispute ID..
|
|
7
13
|
* @format GUID
|
|
8
14
|
* @immutable
|
|
9
15
|
*/
|
|
10
16
|
_id?: string;
|
|
11
17
|
/**
|
|
12
|
-
*
|
|
18
|
+
* ID of the charge that is being disputed.
|
|
13
19
|
* @format GUID
|
|
14
20
|
* @immutable
|
|
15
21
|
*/
|
|
16
22
|
chargeId?: string;
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
24
|
+
* Unique identifier assigned by the payment service provider for this dispute.
|
|
19
25
|
* @format GUID
|
|
20
26
|
* @immutable
|
|
21
27
|
*/
|
|
22
28
|
providerDisputeId?: string;
|
|
23
29
|
/**
|
|
24
|
-
*
|
|
30
|
+
* Stage of the dispute process.
|
|
25
31
|
* @readonly
|
|
26
32
|
*/
|
|
27
33
|
stage?: DisputeStageWithLiterals;
|
|
28
34
|
/**
|
|
29
|
-
*
|
|
35
|
+
* Reason why the customer initiated the dispute.
|
|
30
36
|
* @readonly
|
|
31
37
|
*/
|
|
32
38
|
reason?: DisputeReasonWithLiterals;
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
40
|
+
* Three-letter currency code in @ISO-4217 alphabetic format. Matches the currency of the disputed charge.
|
|
35
41
|
* @immutable
|
|
36
42
|
* @format CURRENCY
|
|
37
43
|
*/
|
|
38
44
|
currencyCode?: string | null;
|
|
39
45
|
/**
|
|
40
|
-
*
|
|
46
|
+
* Disputed amount in the currency's main units. For example, `"12.95"` for $12.95.
|
|
41
47
|
* @immutable
|
|
42
48
|
* @decimalValue options { gt:0, maxScale:8 }
|
|
43
49
|
*/
|
|
44
50
|
amount?: string | null;
|
|
45
51
|
/**
|
|
46
|
-
*
|
|
52
|
+
* Current status of the dispute, indicating what action is required and who needs to take it.
|
|
47
53
|
* @readonly
|
|
48
54
|
*/
|
|
49
55
|
status?: DisputeStatusWithLiterals;
|
|
50
56
|
/**
|
|
51
|
-
*
|
|
57
|
+
* Level of seller protection coverage for this dispute.
|
|
58
|
+
* Seller protection helps protect merchants from financial loss on eligible transactions due to unauthorized payments or claims that items were not received.
|
|
52
59
|
* @readonly
|
|
53
60
|
*/
|
|
54
61
|
sellerProtection?: SellerProtectionWithLiterals;
|
|
@@ -59,55 +66,57 @@ interface Dispute {
|
|
|
59
66
|
*/
|
|
60
67
|
channel?: DisputeChannelWithLiterals;
|
|
61
68
|
/**
|
|
62
|
-
* The latest date and time until which the dispute can remain in its current status
|
|
69
|
+
* The latest date and time until which the dispute can remain in its current status.
|
|
63
70
|
* @readonly
|
|
64
71
|
*/
|
|
65
72
|
dueDate?: Date | null;
|
|
66
73
|
/**
|
|
67
|
-
* Network reason code
|
|
74
|
+
* Network reason code provided by the card network or issuing bank that initiated the dispute.
|
|
68
75
|
* @minLength 1
|
|
69
76
|
* @maxLength 64
|
|
70
77
|
*/
|
|
71
78
|
networkReasonCode?: string | null;
|
|
72
79
|
/**
|
|
73
|
-
*
|
|
80
|
+
* Whether the dispute can be defended with evidence.
|
|
74
81
|
* @readonly
|
|
75
82
|
*/
|
|
76
83
|
defendable?: boolean | null;
|
|
77
84
|
/**
|
|
78
|
-
*
|
|
85
|
+
* Whether the dispute was automatically defended by the payment processor.
|
|
79
86
|
* @readonly
|
|
80
87
|
*/
|
|
81
88
|
autoDefended?: boolean | null;
|
|
82
89
|
/**
|
|
83
|
-
*
|
|
90
|
+
* Date and time when the dispute was defended.
|
|
84
91
|
* @readonly
|
|
85
92
|
*/
|
|
86
93
|
defendedDate?: Date | null;
|
|
87
94
|
/**
|
|
88
|
-
*
|
|
95
|
+
* Date and time when the dispute was accepted.
|
|
89
96
|
* @readonly
|
|
90
97
|
*/
|
|
91
98
|
acceptedDate?: Date | null;
|
|
92
99
|
/**
|
|
93
|
-
*
|
|
100
|
+
* Actions that can be performed on the dispute.
|
|
101
|
+
* Each action has a specific due date by which it must be completed.
|
|
102
|
+
* Available actions depend on the dispute's current status and stage.
|
|
94
103
|
* @readonly
|
|
95
104
|
* @maxSize 20
|
|
96
105
|
*/
|
|
97
106
|
actions?: DisputeAction[];
|
|
98
107
|
/**
|
|
99
|
-
*
|
|
108
|
+
* Date and time the dispute was created.
|
|
100
109
|
* @readonly
|
|
101
110
|
* @immutable
|
|
102
111
|
*/
|
|
103
112
|
_createdDate?: Date | null;
|
|
104
113
|
/**
|
|
105
|
-
*
|
|
114
|
+
* Date and time the dispute was updated.
|
|
106
115
|
* @readonly
|
|
107
116
|
*/
|
|
108
117
|
_updatedDate?: Date | null;
|
|
109
118
|
/**
|
|
110
|
-
* Revision number, which increments by 1 each time the
|
|
119
|
+
* 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.
|
|
111
120
|
* @readonly
|
|
112
121
|
*/
|
|
113
122
|
revision?: string | null;
|
|
@@ -118,91 +127,97 @@ interface Dispute {
|
|
|
118
127
|
}
|
|
119
128
|
declare enum DisputeStage {
|
|
120
129
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
121
|
-
/**
|
|
130
|
+
/** Formal dispute filed through the card network or issuing bank. */
|
|
122
131
|
CHARGEBACK = "CHARGEBACK",
|
|
123
|
-
/**
|
|
132
|
+
/** Initial inquiry from the cardholder requesting information about the charge. */
|
|
124
133
|
INQUIRY = "INQUIRY"
|
|
125
134
|
}
|
|
126
135
|
/** @enumType */
|
|
127
136
|
type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGEBACK' | 'INQUIRY';
|
|
128
137
|
declare enum DisputeReason {
|
|
129
|
-
/** Unknown reason */
|
|
138
|
+
/** Unknown dispute reason. */
|
|
130
139
|
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
131
|
-
/**
|
|
140
|
+
/** Fraudulent use of a physical card. */
|
|
132
141
|
FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
|
|
133
|
-
/**
|
|
142
|
+
/** Fraudulent use without the physical card present. */
|
|
134
143
|
FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
|
|
135
|
-
/**
|
|
144
|
+
/** Duplicate charge processing. */
|
|
136
145
|
DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
|
|
137
|
-
/**
|
|
146
|
+
/** Services or goods were not provided as promised. */
|
|
138
147
|
SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
|
|
139
|
-
/**
|
|
148
|
+
/** Recurring payment that should have been canceled. */
|
|
140
149
|
CANCELED_RECURRING = "CANCELED_RECURRING",
|
|
141
|
-
/** Item not as
|
|
150
|
+
/** Item received was not as described. */
|
|
142
151
|
NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
|
|
143
|
-
/**
|
|
152
|
+
/** Item received was counterfeit. */
|
|
144
153
|
COUNTERFEIT = "COUNTERFEIT",
|
|
145
|
-
/**
|
|
154
|
+
/** Merchant misrepresented the transaction. */
|
|
146
155
|
MISREPRESENTATION = "MISREPRESENTATION",
|
|
147
|
-
/**
|
|
156
|
+
/** Transaction was canceled but still charged. */
|
|
148
157
|
CANCELED = "CANCELED",
|
|
149
|
-
/** Other reason */
|
|
158
|
+
/** Other dispute reason not covered by specific categories. */
|
|
150
159
|
OTHER = "OTHER"
|
|
151
160
|
}
|
|
152
161
|
/** @enumType */
|
|
153
162
|
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';
|
|
154
163
|
declare enum DisputeStatus {
|
|
155
|
-
/** Unknown status */
|
|
164
|
+
/** Unknown dispute status. */
|
|
156
165
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
157
|
-
/**
|
|
166
|
+
/** Merchant action required to proceed with the dispute. */
|
|
158
167
|
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
159
|
-
/** Dispute is
|
|
168
|
+
/** Dispute is being reviewed by the payment service provider or bank. */
|
|
160
169
|
UNDER_REVIEW = "UNDER_REVIEW",
|
|
161
|
-
/**
|
|
170
|
+
/** Buyer action required to proceed with the dispute. */
|
|
162
171
|
WAITING_BUYER = "WAITING_BUYER",
|
|
163
|
-
/** Dispute
|
|
172
|
+
/** Dispute was resolved in favor of the merchant. */
|
|
164
173
|
WON = "WON",
|
|
165
|
-
/** Dispute
|
|
174
|
+
/** Dispute was resolved in favor of the customer. */
|
|
166
175
|
LOST = "LOST",
|
|
167
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* Evidence has been submitted and is being processed by the payment provider.
|
|
178
|
+
* **Deprecated:** This field will be removed in a future version.
|
|
179
|
+
*/
|
|
168
180
|
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
169
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Dispute acceptance is being processed by the payment provider.
|
|
183
|
+
* **Deprecated:** This field will be removed in a future version.
|
|
184
|
+
*/
|
|
170
185
|
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
171
186
|
}
|
|
172
187
|
/** @enumType */
|
|
173
188
|
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
174
189
|
declare enum SellerProtection {
|
|
175
190
|
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
176
|
-
/**
|
|
191
|
+
/** Transaction is not eligible for seller protection. */
|
|
177
192
|
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
178
|
-
/**
|
|
193
|
+
/** Transaction is eligible for basic seller protection. */
|
|
179
194
|
ELIGIBLE = "ELIGIBLE",
|
|
180
|
-
/**
|
|
195
|
+
/** Transaction is eligible for extended seller protection coverage. */
|
|
181
196
|
EXTENDED = "EXTENDED"
|
|
182
197
|
}
|
|
183
198
|
/** @enumType */
|
|
184
199
|
type SellerProtectionWithLiterals = SellerProtection | 'UNKNOWN_SELLER_PROTECTION' | 'NOT_ELIGIBLE' | 'ELIGIBLE' | 'EXTENDED';
|
|
185
200
|
declare enum DisputeChannel {
|
|
186
201
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
187
|
-
/**
|
|
202
|
+
/** Dispute is processed internally by the payment service provider. */
|
|
188
203
|
INTERNAL = "INTERNAL",
|
|
189
|
-
/**
|
|
204
|
+
/** Dispute is processed externally through the card network or issuing bank. */
|
|
190
205
|
EXTERNAL = "EXTERNAL"
|
|
191
206
|
}
|
|
192
207
|
/** @enumType */
|
|
193
208
|
type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
|
|
194
209
|
interface DisputeAction {
|
|
195
|
-
/**
|
|
210
|
+
/** Type of action that can be performed. */
|
|
196
211
|
type?: DisputeActionTypeWithLiterals;
|
|
197
|
-
/**
|
|
212
|
+
/** Latest date and time by which this action must be completed. */
|
|
198
213
|
dueDate?: Date | null;
|
|
199
214
|
}
|
|
200
215
|
declare enum DisputeActionType {
|
|
201
|
-
/** Unknown dispute
|
|
216
|
+
/** Unknown dispute action type. */
|
|
202
217
|
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
203
|
-
/** Accept dispute */
|
|
218
|
+
/** Accept liability for the dispute. */
|
|
204
219
|
ACCEPT = "ACCEPT",
|
|
205
|
-
/** Defend evidence */
|
|
220
|
+
/** Defend the dispute by submitting evidence. */
|
|
206
221
|
DEFEND = "DEFEND"
|
|
207
222
|
}
|
|
208
223
|
/** @enumType */
|
|
@@ -255,12 +270,13 @@ interface TagList {
|
|
|
255
270
|
*/
|
|
256
271
|
tagIds?: string[];
|
|
257
272
|
}
|
|
273
|
+
/** Triggered when tags are assigned to or unassigned from a dispute. */
|
|
258
274
|
interface TagsModified {
|
|
259
|
-
/** Updated
|
|
275
|
+
/** Updated dispute. */
|
|
260
276
|
dispute?: Dispute;
|
|
261
|
-
/** Tags that were assigned to the
|
|
277
|
+
/** Tags that were assigned to the dispute. */
|
|
262
278
|
assignedTags?: Tags;
|
|
263
|
-
/** Tags that were unassigned from the
|
|
279
|
+
/** Tags that were unassigned from the dispute. */
|
|
264
280
|
unassignedTags?: Tags;
|
|
265
281
|
}
|
|
266
282
|
interface InternalCreateDisputeManuallyRequest {
|
|
@@ -496,17 +512,20 @@ declare enum WebhookIdentityType {
|
|
|
496
512
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
497
513
|
interface GetDisputeRequest {
|
|
498
514
|
/**
|
|
499
|
-
* ID of the
|
|
515
|
+
* ID of the dispute to retrieve.
|
|
500
516
|
* @format GUID
|
|
501
517
|
*/
|
|
502
518
|
disputeId: string;
|
|
503
519
|
}
|
|
504
520
|
interface GetDisputeResponse {
|
|
505
|
-
/** The requested
|
|
521
|
+
/** The requested dispute. */
|
|
506
522
|
dispute?: Dispute;
|
|
507
523
|
}
|
|
508
524
|
interface QueryDisputesRequest {
|
|
509
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* WQL expression for filtering and sorting disputes.
|
|
527
|
+
* Supported properties: `id`, `createdDate`, `updatedDate`
|
|
528
|
+
*/
|
|
510
529
|
query?: CursorQuery;
|
|
511
530
|
}
|
|
512
531
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -564,9 +583,9 @@ interface CursorPaging {
|
|
|
564
583
|
cursor?: string | null;
|
|
565
584
|
}
|
|
566
585
|
interface QueryDisputesResponse {
|
|
567
|
-
/** List of
|
|
586
|
+
/** List of disputes matching the query criteria. */
|
|
568
587
|
disputes?: Dispute[];
|
|
569
|
-
/** Paging metadata */
|
|
588
|
+
/** Paging metadata for cursor-based pagination. */
|
|
570
589
|
pagingMetadata?: CursorPagingMetadata;
|
|
571
590
|
}
|
|
572
591
|
interface CursorPagingMetadata {
|
|
@@ -596,24 +615,24 @@ interface Cursors {
|
|
|
596
615
|
}
|
|
597
616
|
interface AcceptDisputeRequest {
|
|
598
617
|
/**
|
|
599
|
-
*
|
|
618
|
+
* ID of the dispute to accept.
|
|
600
619
|
* @format GUID
|
|
601
620
|
*/
|
|
602
621
|
disputeId: string;
|
|
603
622
|
}
|
|
604
623
|
interface AcceptDisputeResponse {
|
|
605
|
-
/**
|
|
624
|
+
/** Updated dispute after acceptance. */
|
|
606
625
|
dispute?: Dispute;
|
|
607
626
|
}
|
|
608
627
|
interface DefendDisputeRequest {
|
|
609
628
|
/**
|
|
610
|
-
*
|
|
629
|
+
* ID of the dispute to defend.
|
|
611
630
|
* @format GUID
|
|
612
631
|
*/
|
|
613
632
|
disputeId: string;
|
|
614
633
|
}
|
|
615
634
|
interface DefendDisputeResponse {
|
|
616
|
-
/**
|
|
635
|
+
/** Updated dispute after initiating defense. */
|
|
617
636
|
dispute?: Dispute;
|
|
618
637
|
}
|
|
619
638
|
interface SubmitDisputeEvidenceRequest {
|
|
@@ -704,25 +723,25 @@ interface ChangeDisputeStatusManuallyResponse {
|
|
|
704
723
|
}
|
|
705
724
|
interface BulkUpdateDisputeTagsRequest {
|
|
706
725
|
/**
|
|
707
|
-
* List of
|
|
726
|
+
* List of dispute IDs to update tags for.
|
|
708
727
|
* @minSize 1
|
|
709
728
|
* @maxSize 100
|
|
710
729
|
* @format GUID
|
|
711
730
|
*/
|
|
712
731
|
ids: string[];
|
|
713
|
-
/**
|
|
732
|
+
/** Tags to assign to the disputes. */
|
|
714
733
|
assignTags?: Tags;
|
|
715
|
-
/**
|
|
734
|
+
/** Tags to remove from the disputes. */
|
|
716
735
|
unassignTags?: Tags;
|
|
717
736
|
}
|
|
718
737
|
interface BulkUpdateDisputeTagsResponse {
|
|
719
738
|
/**
|
|
720
|
-
* Results
|
|
739
|
+
* Results of the bulk tag update operation.
|
|
721
740
|
* @minSize 1
|
|
722
741
|
* @maxSize 100
|
|
723
742
|
*/
|
|
724
743
|
results?: BulkUpdateDisputeTagsResult[];
|
|
725
|
-
/** Metadata
|
|
744
|
+
/** Metadata about the bulk operation. */
|
|
726
745
|
bulkActionMetadata?: BulkActionMetadata;
|
|
727
746
|
}
|
|
728
747
|
interface ItemMetadata {
|
|
@@ -747,7 +766,7 @@ interface ApplicationError {
|
|
|
747
766
|
data?: Record<string, any> | null;
|
|
748
767
|
}
|
|
749
768
|
interface BulkUpdateDisputeTagsResult {
|
|
750
|
-
/** Metadata
|
|
769
|
+
/** Metadata for the individual dispute update. */
|
|
751
770
|
itemMetadata?: ItemMetadata;
|
|
752
771
|
}
|
|
753
772
|
interface BulkActionMetadata {
|
|
@@ -759,16 +778,16 @@ interface BulkActionMetadata {
|
|
|
759
778
|
undetailedFailures?: number;
|
|
760
779
|
}
|
|
761
780
|
interface BulkUpdateDisputeTagsByFilterRequest {
|
|
762
|
-
/** Filter */
|
|
781
|
+
/** Filter criteria for selecting disputes to update. */
|
|
763
782
|
filter: Record<string, any> | null;
|
|
764
|
-
/**
|
|
783
|
+
/** Tags to assign to the filtered disputes. */
|
|
765
784
|
assignTags?: Tags;
|
|
766
|
-
/**
|
|
785
|
+
/** Tags to remove from the filtered disputes. */
|
|
767
786
|
unassignTags?: Tags;
|
|
768
787
|
}
|
|
769
788
|
interface BulkUpdateDisputeTagsByFilterResponse {
|
|
770
789
|
/**
|
|
771
|
-
*
|
|
790
|
+
* Job ID for tracking the asynchronous bulk update operation.
|
|
772
791
|
* @format GUID
|
|
773
792
|
*/
|
|
774
793
|
jobId?: string;
|
|
@@ -856,18 +875,19 @@ interface DisputeUpdatedEnvelope {
|
|
|
856
875
|
*/
|
|
857
876
|
declare function onDisputeUpdated(handler: (event: DisputeUpdatedEnvelope) => void | Promise<void>): void;
|
|
858
877
|
/**
|
|
859
|
-
*
|
|
860
|
-
* @param disputeId - ID of the
|
|
878
|
+
* Retrieves a dispute by ID.
|
|
879
|
+
* @param disputeId - ID of the dispute to retrieve.
|
|
861
880
|
* @public
|
|
862
881
|
* @documentationMaturity preview
|
|
863
882
|
* @requiredField disputeId
|
|
864
883
|
* @permissionId PAYMENTS.DISPUTE_READ
|
|
865
|
-
* @returns The requested
|
|
884
|
+
* @returns The requested dispute.
|
|
866
885
|
* @fqn wix.payments.disputes.v1.DisputeService.GetDispute
|
|
867
886
|
*/
|
|
868
887
|
declare function getDispute(disputeId: string): Promise<NonNullablePaths<Dispute, `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `actions` | `actions.${number}.type` | `tags.privateTags.tagIds`, 4>>;
|
|
869
888
|
/**
|
|
870
|
-
* Retrieves a list of
|
|
889
|
+
* Retrieves a list of disputes based on query parameters.
|
|
890
|
+
* Use this method to filter and sort disputes by various criteria such as status, creation date, or amount.
|
|
871
891
|
* @public
|
|
872
892
|
* @documentationMaturity preview
|
|
873
893
|
* @permissionId PAYMENTS.DISPUTE_READ
|
|
@@ -952,8 +972,9 @@ interface DisputesQueryBuilder {
|
|
|
952
972
|
find: () => Promise<DisputesQueryResult>;
|
|
953
973
|
}
|
|
954
974
|
/**
|
|
955
|
-
*
|
|
956
|
-
*
|
|
975
|
+
* Accepts liability for a dispute, indicating the merchant agrees with the customer's claim.
|
|
976
|
+
* This action resolves the dispute in favor of the customer.
|
|
977
|
+
* @param disputeId - ID of the dispute to accept.
|
|
957
978
|
* @public
|
|
958
979
|
* @documentationMaturity preview
|
|
959
980
|
* @requiredField disputeId
|
|
@@ -962,9 +983,10 @@ interface DisputesQueryBuilder {
|
|
|
962
983
|
*/
|
|
963
984
|
declare function acceptDispute(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>>;
|
|
964
985
|
/**
|
|
965
|
-
*
|
|
966
|
-
* To add
|
|
967
|
-
*
|
|
986
|
+
* Initiates the defense process for a dispute by submitting it for review.
|
|
987
|
+
* 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.
|
|
988
|
+
* Evidence must be submitted separately as this endpoint only triggers the defense process.
|
|
989
|
+
* @param disputeId - ID of the dispute to defend.
|
|
968
990
|
* @public
|
|
969
991
|
* @documentationMaturity preview
|
|
970
992
|
* @requiredField disputeId
|
|
@@ -973,9 +995,9 @@ declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<Acce
|
|
|
973
995
|
*/
|
|
974
996
|
declare function defendDispute(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>>;
|
|
975
997
|
/**
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
* @param ids - List of
|
|
998
|
+
* Updates tags on multiple disputes simultaneously using a list of dispute IDs.
|
|
999
|
+
* If a tag appears in both assign and unassign lists, it will be assigned.
|
|
1000
|
+
* @param ids - List of dispute IDs to update tags for.
|
|
979
1001
|
* @public
|
|
980
1002
|
* @documentationMaturity preview
|
|
981
1003
|
* @requiredField ids
|
|
@@ -986,16 +1008,15 @@ declare function bulkUpdateDisputeTags(ids: string[], options?: BulkUpdateDisput
|
|
|
986
1008
|
__applicationErrorsType?: BulkUpdateDisputeTagsApplicationErrors;
|
|
987
1009
|
}>;
|
|
988
1010
|
interface BulkUpdateDisputeTagsOptions {
|
|
989
|
-
/**
|
|
1011
|
+
/** Tags to assign to the disputes. */
|
|
990
1012
|
assignTags?: Tags;
|
|
991
|
-
/**
|
|
1013
|
+
/** Tags to remove from the disputes. */
|
|
992
1014
|
unassignTags?: Tags;
|
|
993
1015
|
}
|
|
994
1016
|
/**
|
|
995
|
-
* Asynchronously
|
|
996
|
-
*
|
|
997
|
-
*
|
|
998
|
-
* @param filter - Filter
|
|
1017
|
+
* Asynchronously updates tags on multiple disputes based on filter criteria.
|
|
1018
|
+
* 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.
|
|
1019
|
+
* @param filter - Filter criteria for selecting disputes to update.
|
|
999
1020
|
* @public
|
|
1000
1021
|
* @documentationMaturity preview
|
|
1001
1022
|
* @requiredField filter
|
|
@@ -1006,9 +1027,9 @@ declare function bulkUpdateDisputeTagsByFilter(filter: Record<string, any>, opti
|
|
|
1006
1027
|
__applicationErrorsType?: BulkUpdateDisputeTagsByFilterApplicationErrors;
|
|
1007
1028
|
}>;
|
|
1008
1029
|
interface BulkUpdateDisputeTagsByFilterOptions {
|
|
1009
|
-
/**
|
|
1030
|
+
/** Tags to assign to the filtered disputes. */
|
|
1010
1031
|
assignTags?: Tags;
|
|
1011
|
-
/**
|
|
1032
|
+
/** Tags to remove from the filtered disputes. */
|
|
1012
1033
|
unassignTags?: Tags;
|
|
1013
1034
|
}
|
|
1014
1035
|
|
|
@@ -23,6 +23,9 @@ function getDispute(payload) {
|
|
|
23
23
|
method: "GET",
|
|
24
24
|
methodFqn: "wix.payments.disputes.v1.DisputeService.GetDispute",
|
|
25
25
|
packageName: PACKAGE_NAME,
|
|
26
|
+
migrationOptions: {
|
|
27
|
+
optInTransformResponse: true
|
|
28
|
+
},
|
|
26
29
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
27
30
|
protoPath: "/v1/disputes/{disputeId}",
|
|
28
31
|
data: payload,
|
|
@@ -54,6 +57,9 @@ function queryDisputes(payload) {
|
|
|
54
57
|
method: "GET",
|
|
55
58
|
methodFqn: "wix.payments.disputes.v1.DisputeService.QueryDisputes",
|
|
56
59
|
packageName: PACKAGE_NAME,
|
|
60
|
+
migrationOptions: {
|
|
61
|
+
optInTransformResponse: true
|
|
62
|
+
},
|
|
57
63
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
58
64
|
protoPath: "/v1/disputes/query",
|
|
59
65
|
data: payload,
|
|
@@ -96,6 +102,9 @@ function acceptDispute(payload) {
|
|
|
96
102
|
method: "POST",
|
|
97
103
|
methodFqn: "wix.payments.disputes.v1.DisputeService.AcceptDispute",
|
|
98
104
|
packageName: PACKAGE_NAME,
|
|
105
|
+
migrationOptions: {
|
|
106
|
+
optInTransformResponse: true
|
|
107
|
+
},
|
|
99
108
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
100
109
|
protoPath: "/v1/disputes/{disputeId}/accept",
|
|
101
110
|
data: payload,
|
|
@@ -127,6 +136,9 @@ function defendDispute(payload) {
|
|
|
127
136
|
method: "POST",
|
|
128
137
|
methodFqn: "wix.payments.disputes.v1.DisputeService.DefendDispute",
|
|
129
138
|
packageName: PACKAGE_NAME,
|
|
139
|
+
migrationOptions: {
|
|
140
|
+
optInTransformResponse: true
|
|
141
|
+
},
|
|
130
142
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
131
143
|
protoPath: "/v1/disputes/{disputeId}/defend",
|
|
132
144
|
data: payload,
|
|
@@ -158,6 +170,9 @@ function bulkUpdateDisputeTags(payload) {
|
|
|
158
170
|
method: "POST",
|
|
159
171
|
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags",
|
|
160
172
|
packageName: PACKAGE_NAME,
|
|
173
|
+
migrationOptions: {
|
|
174
|
+
optInTransformResponse: true
|
|
175
|
+
},
|
|
161
176
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
162
177
|
protoPath: "/v1/bulk/disputes/update-tags",
|
|
163
178
|
data: payload,
|
|
@@ -176,6 +191,9 @@ function bulkUpdateDisputeTagsByFilter(payload) {
|
|
|
176
191
|
method: "POST",
|
|
177
192
|
methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter",
|
|
178
193
|
packageName: PACKAGE_NAME,
|
|
194
|
+
migrationOptions: {
|
|
195
|
+
optInTransformResponse: true
|
|
196
|
+
},
|
|
179
197
|
url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
|
|
180
198
|
protoPath: "/v1/bulk/disputes/update-tags-by-filter",
|
|
181
199
|
data: payload,
|