@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +18 -16
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +114 -93
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +88 -70
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +18 -16
  11. package/build/es/index.mjs +18 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +114 -93
  14. package/build/es/index.typings.mjs +18 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +88 -70
  17. package/build/es/meta.mjs +18 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +18 -16
  20. package/build/internal/cjs/index.js +18 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +114 -93
  23. package/build/internal/cjs/index.typings.js +18 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +88 -70
  26. package/build/internal/cjs/meta.js +18 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +18 -16
  29. package/build/internal/es/index.mjs +18 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +114 -93
  32. package/build/internal/es/index.typings.mjs +18 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +88 -70
  35. package/build/internal/es/meta.mjs +18 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,54 +1,61 @@
1
1
  import { NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
- /** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */
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
- * Charge ID
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
- * Provider Dispute ID
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
- * Dispute stage
30
+ * Stage of the dispute process.
25
31
  * @readonly
26
32
  */
27
33
  stage?: DisputeStageWithLiterals;
28
34
  /**
29
- * Dispute reason
35
+ * Reason why the customer initiated the dispute.
30
36
  * @readonly
31
37
  */
32
38
  reason?: DisputeReasonWithLiterals;
33
39
  /**
34
- * Dispute currency. Should be the same as the charge currency.
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
- * Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
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
- * Dispute status based on provider dispute status
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
- * Seller protection helps protect sellers from financial loss on eligible transactions due to unauthorized payments or claims that items were not received
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
- * True if dispute is defendable
80
+ * Whether the dispute can be defended with evidence.
74
81
  * @readonly
75
82
  */
76
83
  defendable?: boolean | null;
77
84
  /**
78
- * True if it is an auto dispute
85
+ * Whether the dispute was automatically defended by the payment processor.
79
86
  * @readonly
80
87
  */
81
88
  autoDefended?: boolean | null;
82
89
  /**
83
- * The dispute defended date
90
+ * Date and time when the dispute was defended.
84
91
  * @readonly
85
92
  */
86
93
  defendedDate?: Date | null;
87
94
  /**
88
- * The dispute acceptance date
95
+ * Date and time when the dispute was accepted.
89
96
  * @readonly
90
97
  */
91
98
  acceptedDate?: Date | null;
92
99
  /**
93
- * The actions that can be perform with the dispute
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
- * The dispute created date
108
+ * Date and time the dispute was created.
100
109
  * @readonly
101
110
  * @immutable
102
111
  */
103
112
  _createdDate?: Date | null;
104
113
  /**
105
- * The dispute updated date
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 Dispute is updated.
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
- /** Chargeback */
130
+ /** Formal dispute filed through the card network or issuing bank. */
122
131
  CHARGEBACK = "CHARGEBACK",
123
- /** Inquiry (Request for Information) */
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
- /** Fraud card */
140
+ /** Fraudulent use of a physical card. */
132
141
  FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
133
- /** Card absent */
142
+ /** Fraudulent use without the physical card present. */
134
143
  FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
135
- /** DUPLICATE */
144
+ /** Duplicate charge processing. */
136
145
  DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
137
- /** Service not provided */
146
+ /** Services or goods were not provided as promised. */
138
147
  SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
139
- /** Canceled Recurring */
148
+ /** Recurring payment that should have been canceled. */
140
149
  CANCELED_RECURRING = "CANCELED_RECURRING",
141
- /** Item not as describe */
150
+ /** Item received was not as described. */
142
151
  NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
143
- /** Counterfeit */
152
+ /** Item received was counterfeit. */
144
153
  COUNTERFEIT = "COUNTERFEIT",
145
- /** Misrepresentation */
154
+ /** Merchant misrepresented the transaction. */
146
155
  MISREPRESENTATION = "MISREPRESENTATION",
147
- /** Canceled */
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
- /** Waiting for some merchant action */
166
+ /** Merchant action required to proceed with the dispute. */
158
167
  WAITING_MERCHANT = "WAITING_MERCHANT",
159
- /** Dispute is under review by PSP or Bank */
168
+ /** Dispute is being reviewed by the payment service provider or bank. */
160
169
  UNDER_REVIEW = "UNDER_REVIEW",
161
- /** Waiting for some buyer action */
170
+ /** Buyer action required to proceed with the dispute. */
162
171
  WAITING_BUYER = "WAITING_BUYER",
163
- /** Dispute won */
172
+ /** Dispute was resolved in favor of the merchant. */
164
173
  WON = "WON",
165
- /** Dispute lost */
174
+ /** Dispute was resolved in favor of the customer. */
166
175
  LOST = "LOST",
167
- /** Evidence were submitted and are being processed on provider side */
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
- /** The dispute was accepted and the acceptance is being processed on provider side */
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
- /** Not Eligible */
191
+ /** Transaction is not eligible for seller protection. */
177
192
  NOT_ELIGIBLE = "NOT_ELIGIBLE",
178
- /** Eligible */
193
+ /** Transaction is eligible for basic seller protection. */
179
194
  ELIGIBLE = "ELIGIBLE",
180
- /** Extended seller protection */
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
- /** Internal, the dispute is reviewed by PSP */
202
+ /** Dispute is processed internally by the payment service provider. */
188
203
  INTERNAL = "INTERNAL",
189
- /** External, the dispute is reviewed by bank (or other financial institution) */
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
- /** Dispute Action type */
210
+ /** Type of action that can be performed. */
196
211
  type?: DisputeActionTypeWithLiterals;
197
- /** The latest date and time until which the action can be performed */
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 status */
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 Dispute. */
275
+ /** Updated dispute. */
260
276
  dispute?: Dispute;
261
- /** Tags that were assigned to the Dispute. */
277
+ /** Tags that were assigned to the dispute. */
262
278
  assignedTags?: Tags;
263
- /** Tags that were unassigned from the Dispute. */
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 Dispute to retrieve.
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 Dispute. */
521
+ /** The requested dispute. */
506
522
  dispute?: Dispute;
507
523
  }
508
524
  interface QueryDisputesRequest {
509
- /** WQL expression. */
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 Disputes. */
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
- * Dispute ID
618
+ * ID of the dispute to accept.
600
619
  * @format GUID
601
620
  */
602
621
  disputeId: string;
603
622
  }
604
623
  interface AcceptDisputeResponse {
605
- /** Dispute */
624
+ /** Updated dispute after acceptance. */
606
625
  dispute?: Dispute;
607
626
  }
608
627
  interface DefendDisputeRequest {
609
628
  /**
610
- * Dispute ID
629
+ * ID of the dispute to defend.
611
630
  * @format GUID
612
631
  */
613
632
  disputeId: string;
614
633
  }
615
634
  interface DefendDisputeResponse {
616
- /** Dispute */
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 NileProtoTagsEntities that their tags will update.
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
- /** List of Tags to assign */
732
+ /** Tags to assign to the disputes. */
714
733
  assignTags?: Tags;
715
- /** List of Tags to unAssign */
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 regarding the bulk update operation */
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 regarding the specific single update operation */
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
- /** List of Tags to assign */
783
+ /** Tags to assign to the filtered disputes. */
765
784
  assignTags?: Tags;
766
- /** List of Tags to unAssign */
785
+ /** Tags to remove from the filtered disputes. */
767
786
  unassignTags?: Tags;
768
787
  }
769
788
  interface BulkUpdateDisputeTagsByFilterResponse {
770
789
  /**
771
- * Pass this ID to Get Async Job
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
- * Get Dispute by ID
860
- * @param disputeId - ID of the Dispute to retrieve.
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 Dispute.
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 Disputes
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
- * Accept Dispute
956
- * @param disputeId - Dispute ID
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
- * Defend Dispute
966
- * 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)
967
- * @param disputeId - Dispute ID
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
- * Synchronously update tags on multiple Disputes, by list of Disputes ids
977
- * A tag that appears both in the list of assign and unassign tags, will be assigned
978
- * @param ids - List of NileProtoTagsEntities that their tags will update.
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
- /** List of Tags to assign */
1011
+ /** Tags to assign to the disputes. */
990
1012
  assignTags?: Tags;
991
- /** List of Tags to unAssign */
1013
+ /** Tags to remove from the disputes. */
992
1014
  unassignTags?: Tags;
993
1015
  }
994
1016
  /**
995
- * Asynchronously update tags on multiple Disputes, by provided filter
996
- * An empty filter will update all Disputes
997
- * A tag that appears both in the list of assign and unassign tags, will be assigned
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
- /** List of Tags to assign */
1030
+ /** Tags to assign to the filtered disputes. */
1010
1031
  assignTags?: Tags;
1011
- /** List of Tags to unAssign */
1032
+ /** Tags to remove from the filtered disputes. */
1012
1033
  unassignTags?: Tags;
1013
1034
  }
1014
1035
 
@@ -59,6 +59,9 @@ function getDispute(payload) {
59
59
  method: "GET",
60
60
  methodFqn: "wix.payments.disputes.v1.DisputeService.GetDispute",
61
61
  packageName: PACKAGE_NAME,
62
+ migrationOptions: {
63
+ optInTransformResponse: true
64
+ },
62
65
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
63
66
  protoPath: "/v1/disputes/{disputeId}",
64
67
  data: payload,
@@ -90,6 +93,9 @@ function queryDisputes(payload) {
90
93
  method: "GET",
91
94
  methodFqn: "wix.payments.disputes.v1.DisputeService.QueryDisputes",
92
95
  packageName: PACKAGE_NAME,
96
+ migrationOptions: {
97
+ optInTransformResponse: true
98
+ },
93
99
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
94
100
  protoPath: "/v1/disputes/query",
95
101
  data: payload,
@@ -132,6 +138,9 @@ function acceptDispute(payload) {
132
138
  method: "POST",
133
139
  methodFqn: "wix.payments.disputes.v1.DisputeService.AcceptDispute",
134
140
  packageName: PACKAGE_NAME,
141
+ migrationOptions: {
142
+ optInTransformResponse: true
143
+ },
135
144
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
136
145
  protoPath: "/v1/disputes/{disputeId}/accept",
137
146
  data: payload,
@@ -163,6 +172,9 @@ function defendDispute(payload) {
163
172
  method: "POST",
164
173
  methodFqn: "wix.payments.disputes.v1.DisputeService.DefendDispute",
165
174
  packageName: PACKAGE_NAME,
175
+ migrationOptions: {
176
+ optInTransformResponse: true
177
+ },
166
178
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
167
179
  protoPath: "/v1/disputes/{disputeId}/defend",
168
180
  data: payload,
@@ -194,6 +206,9 @@ function bulkUpdateDisputeTags(payload) {
194
206
  method: "POST",
195
207
  methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags",
196
208
  packageName: PACKAGE_NAME,
209
+ migrationOptions: {
210
+ optInTransformResponse: true
211
+ },
197
212
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
198
213
  protoPath: "/v1/bulk/disputes/update-tags",
199
214
  data: payload,
@@ -212,6 +227,9 @@ function bulkUpdateDisputeTagsByFilter(payload) {
212
227
  method: "POST",
213
228
  methodFqn: "wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter",
214
229
  packageName: PACKAGE_NAME,
230
+ migrationOptions: {
231
+ optInTransformResponse: true
232
+ },
215
233
  url: resolveWixPaymentsDisputesV1DisputeServiceUrl({
216
234
  protoPath: "/v1/bulk/disputes/update-tags-by-filter",
217
235
  data: payload,