@wix/auto_sdk_payments_dispute-evidence-documents 1.0.36 → 1.0.38

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.
@@ -40,20 +40,17 @@ interface DisputeEvidenceDocument {
40
40
  /**
41
41
  * File details for the uploaded evidence document.
42
42
  *
43
- * Returned only when a file has been successfully uploaded and attached to the evidence document.
43
+ * If a file hasn't been uploaded yet, this field is `null`.
44
44
  * @readonly
45
45
  */
46
46
  file?: DocumentFile;
47
47
  /**
48
- * Custom field data for the dispute evidence document.
48
+ * Custom field data for the dispute evidence document object.
49
49
  *
50
- * Extended fields must be configured in the app dashboard before they can be accessed with API calls.
50
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
51
51
  */
52
52
  extendedFields?: ExtendedFields;
53
- /**
54
- * Tags assigned to the dispute evidence document for organization and filtering purposes.
55
- * Tags assigned to the dispute evidence document for organization and filtering purposes.
56
- */
53
+ /** Tags assigned to the dispute evidence document for organization and filtering purposes. */
57
54
  tags?: Tags;
58
55
  }
59
56
  /** File details for an uploaded evidence document. */
@@ -70,7 +67,7 @@ interface DocumentFile {
70
67
  */
71
68
  size?: string | null;
72
69
  /**
73
- * Hexadecimal checksum of the uploaded file for integrity verification.
70
+ * Hexadecimal checksum of the uploaded file.
74
71
  * @minLength 32
75
72
  * @maxLength 256
76
73
  * @readonly
@@ -138,11 +135,7 @@ interface TagsModified {
138
135
  unassignedTags?: Tags;
139
136
  }
140
137
  interface CreateDisputeEvidenceDocumentRequest {
141
- /**
142
- * Dispute evidence document to create.
143
- *
144
- * The `disputeId` field is required. Do not provide an `id` as it will be generated automatically.
145
- */
138
+ /** Dispute evidence document to create. */
146
139
  disputeEvidenceDocument: DisputeEvidenceDocument;
147
140
  }
148
141
  interface CreateDisputeEvidenceDocumentResponse {
@@ -152,14 +145,13 @@ interface CreateDisputeEvidenceDocumentResponse {
152
145
  * URL for uploading the evidence file.
153
146
  *
154
147
  * Use this URL to upload the file that will serve as evidence for the dispute.
155
- * File attachment is automatic once the upload completes successfully.
148
+ * Learn how to [upload an evidence document](https://dev.wix.com/docs/api-reference/business-management/payments/disputes/dispute-evidence-documents/upload-an-evidence-document).
156
149
  * @format WEB_URL
157
150
  */
158
151
  uploadUrl?: string | null;
159
152
  }
160
153
  interface GetDisputeEvidenceDocumentRequest {
161
154
  /**
162
- * ID of the dispute evidence document to retrieve.
163
155
  * ID of the dispute evidence document to retrieve.
164
156
  * @format GUID
165
157
  */
@@ -174,7 +166,6 @@ interface GetDisputeEvidenceDocumentResponse {
174
166
  }
175
167
  interface DeleteDisputeEvidenceDocumentRequest {
176
168
  /**
177
- * ID of the dispute evidence document to delete.
178
169
  * ID of the dispute evidence document to delete.
179
170
  * @format GUID
180
171
  */
@@ -183,14 +174,7 @@ interface DeleteDisputeEvidenceDocumentRequest {
183
174
  interface DeleteDisputeEvidenceDocumentResponse {
184
175
  }
185
176
  interface QueryDisputeEvidenceDocumentsRequest {
186
- /**
187
- * Query options for filtering, sorting, and paging dispute evidence documents.
188
- *
189
- * Supported properties: `disputeId`
190
- * Query options for filtering, sorting, and paging dispute evidence documents.
191
- *
192
- * Supported properties: `disputeId`
193
- */
177
+ /** Query options for filtering, sorting, and paging dispute evidence documents. */
194
178
  query?: CursorQuery;
195
179
  }
196
180
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -248,15 +232,9 @@ interface CursorPaging {
248
232
  cursor?: string | null;
249
233
  }
250
234
  interface QueryDisputeEvidenceDocumentsResponse {
251
- /**
252
- * List of dispute evidence documents matching the query criteria.
253
- * List of dispute evidence documents matching the query criteria.
254
- */
235
+ /** Retrieved dispute evidence documents. */
255
236
  disputeEvidenceDocuments?: DisputeEvidenceDocument[];
256
- /**
257
- * Paging metadata for the query results.
258
- * Paging metadata for the query results.
259
- */
237
+ /** Paging metadata for the query results. */
260
238
  pagingMetadata?: CursorPagingMetadata;
261
239
  }
262
240
  interface CursorPagingMetadata {
@@ -286,40 +264,25 @@ interface Cursors {
286
264
  }
287
265
  interface BulkUpdateDisputeEvidenceDocumentTagsRequest {
288
266
  /**
289
- * IDs of the dispute evidence documents to update.
290
- * IDs of the dispute evidence documents to update.
291
- *
292
- * Limited to 100 documents per request.
267
+ * List of dispute evidence document IDs to update tags for.
293
268
  * @minSize 1
294
269
  * @maxSize 100
295
270
  * @format GUID
296
271
  */
297
272
  ids: string[];
298
- /**
299
- * Tags to assign to the dispute evidence documents.
300
- * Tags to assign to the dispute evidence documents.
301
- * Tags to assign to the filtered dispute evidence documents.
302
- */
273
+ /** Tags to assign to the dispute evidence documents. */
303
274
  assignTags?: Tags;
304
- /**
305
- * Tags to remove from the dispute evidence documents.
306
- * Tags to remove from the dispute evidence documents.
307
- * Tags to remove from the filtered dispute evidence documents.
308
- */
275
+ /** Tags to remove from the dispute evidence documents. */
309
276
  unassignTags?: Tags;
310
277
  }
311
278
  interface BulkUpdateDisputeEvidenceDocumentTagsResponse {
312
279
  /**
313
- * Results of the bulk tag update operation for each document.
314
280
  * Results of the bulk tag update operation for each document.
315
281
  * @minSize 1
316
282
  * @maxSize 100
317
283
  */
318
284
  results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];
319
- /**
320
- * Metadata about the bulk tag update operation.
321
- * Metadata about the bulk tag update operation.
322
- */
285
+ /** Metadata about the bulk tag update operation. */
323
286
  bulkActionMetadata?: BulkActionMetadata;
324
287
  }
325
288
  interface ItemMetadata {
@@ -344,10 +307,7 @@ interface ApplicationError {
344
307
  data?: Record<string, any> | null;
345
308
  }
346
309
  interface BulkUpdateDisputeEvidenceDocumentTagsResult {
347
- /**
348
- * Metadata about the tag update result for this specific document.
349
- * Metadata about the tag update result for this specific document.
350
- */
310
+ /** Metadata about the tag update result for this specific document. */
351
311
  itemMetadata?: ItemMetadata;
352
312
  }
353
313
  interface BulkActionMetadata {
@@ -360,28 +320,18 @@ interface BulkActionMetadata {
360
320
  }
361
321
  interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {
362
322
  /**
363
- * Filter criteria for selecting dispute evidence documents to update.
364
- * Filter criteria for selecting dispute evidence documents to update.
323
+ * Filter that determines which disputes to update tags for.
365
324
  *
366
- * An empty filter will update all dispute evidence documents.
325
+ * An empty filter updates all dispute evidence documents.
367
326
  */
368
327
  filter: Record<string, any> | null;
369
- /**
370
- * Tags to assign to the filtered dispute evidence documents.
371
- * Tags to assign to the dispute evidence documents.
372
- * Tags to assign to the filtered dispute evidence documents.
373
- */
328
+ /** Tags to assign to the dispute evidence documents. */
374
329
  assignTags?: Tags;
375
- /**
376
- * Tags to remove from the filtered dispute evidence documents.
377
- * Tags to remove from the dispute evidence documents.
378
- * Tags to remove from the filtered dispute evidence documents.
379
- */
330
+ /** Tags to remove from the dispute evidence documents. */
380
331
  unassignTags?: Tags;
381
332
  }
382
333
  interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {
383
334
  /**
384
- * Job ID for tracking the progress of the bulk tag update operation.
385
335
  * Job ID for tracking the progress of the bulk tag update operation.
386
336
  * @format GUID
387
337
  */
@@ -691,7 +641,13 @@ interface DisputeEvidenceDocumentCreatedEnvelope {
691
641
  entity: DisputeEvidenceDocument;
692
642
  metadata: EventMetadata;
693
643
  }
694
- /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
644
+ /** @permissionScope Manage Payments - All Permissions
645
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-PAYMENTS
646
+ * @permissionScope Manage Disputes
647
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-DISPUTES
648
+ * @permissionScope Read Disputes
649
+ * @permissionScopeId SCOPE.DC-PAYMENTS.READ-DISPUTES
650
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
695
651
  * @webhook
696
652
  * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created
697
653
  * @slug created
@@ -702,7 +658,13 @@ interface DisputeEvidenceDocumentDeletedEnvelope {
702
658
  entity: DisputeEvidenceDocument;
703
659
  metadata: EventMetadata;
704
660
  }
705
- /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
661
+ /** @permissionScope Manage Payments - All Permissions
662
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-PAYMENTS
663
+ * @permissionScope Manage Disputes
664
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-DISPUTES
665
+ * @permissionScope Read Disputes
666
+ * @permissionScopeId SCOPE.DC-PAYMENTS.READ-DISPUTES
667
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
706
668
  * @webhook
707
669
  * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted
708
670
  * @slug deleted
@@ -713,7 +675,13 @@ interface DisputeEvidenceDocumentUpdatedEnvelope {
713
675
  entity: DisputeEvidenceDocument;
714
676
  metadata: EventMetadata;
715
677
  }
716
- /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
678
+ /** @permissionScope Manage Payments - All Permissions
679
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-PAYMENTS
680
+ * @permissionScope Manage Disputes
681
+ * @permissionScopeId SCOPE.DC-PAYMENTS.MANAGE-DISPUTES
682
+ * @permissionScope Read Disputes
683
+ * @permissionScopeId SCOPE.DC-PAYMENTS.READ-DISPUTES
684
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
717
685
  * @webhook
718
686
  * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated
719
687
  * @slug updated
@@ -723,28 +691,26 @@ declare function onDisputeEvidenceDocumentUpdated(handler: (event: DisputeEviden
723
691
  /**
724
692
  * Creates a dispute evidence document for a specific dispute.
725
693
  *
726
- * Returns the created document along with an upload URL for attaching the evidence file.
727
- * Use the provided upload URL to upload your evidence file directly.
694
+ * Use the upload URL in the response to upload your evidence file. Once uploaded, you can submit it by calling [Defend Dispute](https://dev.wix.com/docs/api-reference/business-management/payments/disputes/disputes/defend-dispute). Learn how to [upload an evidence document](https://dev.wix.com/docs/api-reference/business-management/payments/disputes/dispute-evidence-documents/upload-an-evidence-document).
728
695
  * @param disputeEvidenceDocument - Dispute evidence document to create.
729
- *
730
- * The `disputeId` field is required. Do not provide an `id` as it will be generated automatically.
731
696
  * @public
732
697
  * @documentationMaturity preview
733
698
  * @requiredField disputeEvidenceDocument
734
699
  * @requiredField disputeEvidenceDocument.disputeId
735
700
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE
701
+ * @applicableIdentity APP
736
702
  * @returns Created dispute evidence document.
737
703
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument
738
704
  */
739
705
  declare function createDisputeEvidenceDocument(disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`, 2>): Promise<NonNullablePaths<DisputeEvidenceDocument, `disputeId` | `tags.privateTags.tagIds`, 4>>;
740
706
  /**
741
- * Retrieves a dispute evidence document by ID.
707
+ * Retrieves a dispute evidence document.
742
708
  * @param disputeEvidenceDocumentId - ID of the dispute evidence document to retrieve.
743
- * ID of the dispute evidence document to retrieve.
744
709
  * @public
745
710
  * @documentationMaturity preview
746
711
  * @requiredField disputeEvidenceDocumentId
747
712
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
713
+ * @applicableIdentity APP
748
714
  * @returns Retrieved dispute evidence document.
749
715
  * Retrieved dispute evidence document.
750
716
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument
@@ -753,25 +719,34 @@ declare function getDisputeEvidenceDocument(disputeEvidenceDocumentId: string):
753
719
  /**
754
720
  * Deletes a dispute evidence document.
755
721
  *
756
- * Documents cannot be deleted once they have been submitted for dispute resolution.
722
+ * > **Note:** After you've submitted an evidence document by calling [Defend Dispute](https://dev.wix.com/docs/api-reference/business-management/payments/disputes/disputes/defend-dispute), you can't delete it.
757
723
  * @param disputeEvidenceDocumentId - ID of the dispute evidence document to delete.
758
- * ID of the dispute evidence document to delete.
759
724
  * @public
760
725
  * @documentationMaturity preview
761
726
  * @requiredField disputeEvidenceDocumentId
762
727
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE
728
+ * @applicableIdentity APP
763
729
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument
764
730
  */
765
731
  declare function deleteDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<void & {
766
732
  __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;
767
733
  }>;
768
734
  /**
769
- * Retrieves a list of dispute evidence documents, given the provided paging, filtering, and sorting.
735
+ * Creates a query to retrieve a list of dispute evidence documents.
736
+ *
737
+ * The Query Dispute Evidence Documents method builds a query to retrieve a list of dispute evidence documents and returns a `DisputeEvidenceDocumentsQueryBuilder` object.
738
+ *
739
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
740
+ *
741
+ * You can refine the query by chaining `DisputeEvidenceDocumentsQueryBuilder` methods onto the query. `DisputeEvidenceDocumentsQueryBuilder` methods enable you to filter, sort, and control the results that Query Dispute Evidence Documents returns.
742
+ *
743
+ * Query Dispute Evidence Documents has a default paging limit of 50, which you can override.
770
744
  *
771
- * Use the `disputeId` filter to retrieve all evidence documents for a specific dispute.
745
+ * For a full description of the item object, see the object returned for the `items` property in `DisputeEvidenceDocumentsQueryResult`.
772
746
  * @public
773
747
  * @documentationMaturity preview
774
748
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
749
+ * @applicableIdentity APP
775
750
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments
776
751
  */
777
752
  declare function queryDisputeEvidenceDocuments(): DisputeEvidenceDocumentsQueryBuilder;
@@ -857,64 +832,43 @@ interface DisputeEvidenceDocumentsQueryBuilder {
857
832
  *
858
833
  * If a tag appears in both assign and unassign lists, it will be assigned.
859
834
  * Limited to 100 documents per request.
860
- * @param ids - IDs of the dispute evidence documents to update.
861
- * IDs of the dispute evidence documents to update.
862
- *
863
- * Limited to 100 documents per request.
835
+ * @param ids - List of dispute evidence document IDs to update tags for.
864
836
  * @public
865
837
  * @documentationMaturity preview
866
838
  * @requiredField ids
867
839
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
840
+ * @applicableIdentity APP
868
841
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags
869
842
  */
870
843
  declare function bulkUpdateDisputeEvidenceDocumentTags(ids: string[], options?: BulkUpdateDisputeEvidenceDocumentTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsResponse, `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> & {
871
844
  __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;
872
845
  }>;
873
846
  interface BulkUpdateDisputeEvidenceDocumentTagsOptions {
874
- /**
875
- * Tags to assign to the dispute evidence documents.
876
- * Tags to assign to the dispute evidence documents.
877
- * Tags to assign to the filtered dispute evidence documents.
878
- */
847
+ /** Tags to assign to the dispute evidence documents. */
879
848
  assignTags?: Tags;
880
- /**
881
- * Tags to remove from the dispute evidence documents.
882
- * Tags to remove from the dispute evidence documents.
883
- * Tags to remove from the filtered dispute evidence documents.
884
- */
849
+ /** Tags to remove from the dispute evidence documents. */
885
850
  unassignTags?: Tags;
886
851
  }
887
852
  /**
888
- * Updates tags on multiple dispute evidence documents matching the provided filter.
853
+ * Asynchronously updates tags on multiple dispute evidence documents based on filter criteria.
854
+ * 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.
855
+ * @param filter - Filter that determines which disputes to update tags for.
889
856
  *
890
- * This operation runs asynchronously and returns a job ID for tracking progress.
891
- * An empty filter will update all dispute evidence documents.
892
- * If a tag appears in both assign and unassign lists, it will be assigned.
893
- * @param filter - Filter criteria for selecting dispute evidence documents to update.
894
- * Filter criteria for selecting dispute evidence documents to update.
895
- *
896
- * An empty filter will update all dispute evidence documents.
857
+ * An empty filter updates all dispute evidence documents.
897
858
  * @public
898
859
  * @documentationMaturity preview
899
860
  * @requiredField filter
900
861
  * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
862
+ * @applicableIdentity APP
901
863
  * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter
902
864
  */
903
865
  declare function bulkUpdateDisputeEvidenceDocumentTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, `jobId`, 2> & {
904
866
  __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;
905
867
  }>;
906
868
  interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
907
- /**
908
- * Tags to assign to the filtered dispute evidence documents.
909
- * Tags to assign to the dispute evidence documents.
910
- * Tags to assign to the filtered dispute evidence documents.
911
- */
869
+ /** Tags to assign to the dispute evidence documents. */
912
870
  assignTags?: Tags;
913
- /**
914
- * Tags to remove from the filtered dispute evidence documents.
915
- * Tags to remove from the dispute evidence documents.
916
- * Tags to remove from the filtered dispute evidence documents.
917
- */
871
+ /** Tags to remove from the dispute evidence documents. */
918
872
  unassignTags?: Tags;
919
873
  }
920
874