@wix/auto_sdk_payments_dispute-evidence-documents 1.0.28 → 1.0.30

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 +61 -653
  2. package/build/cjs/index.js +73 -252
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +810 -1
  5. package/build/cjs/index.typings.js +0 -215
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +17 -77
  8. package/build/cjs/meta.js +0 -192
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +61 -653
  11. package/build/es/index.mjs +70 -248
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +810 -1
  14. package/build/es/index.typings.mjs +0 -211
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +17 -77
  17. package/build/es/meta.mjs +0 -188
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +18 -73
  20. package/build/internal/cjs/index.js +73 -252
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +215 -197
  23. package/build/internal/cjs/index.typings.js +0 -215
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +16 -77
  26. package/build/internal/cjs/meta.js +0 -192
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +18 -73
  29. package/build/internal/es/index.mjs +70 -248
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +215 -197
  32. package/build/internal/es/index.typings.mjs +0 -211
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +16 -77
  35. package/build/internal/es/meta.mjs +0 -188
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1 +1,810 @@
1
- export { ActionEvent, ApplicationError, AttachDisputeEvidenceDocumentFileApplicationErrors, AttachDisputeEvidenceDocumentFileRequest, AttachDisputeEvidenceDocumentFileResponse, BulkActionMetadata, BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, BulkUpdateDisputeEvidenceDocumentTagsOptions, BulkUpdateDisputeEvidenceDocumentTagsRequest, BulkUpdateDisputeEvidenceDocumentTagsResponse, BulkUpdateDisputeEvidenceDocumentTagsResult, CreateDisputeEvidenceDocumentRequest, CreateDisputeEvidenceDocumentResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteDisputeEvidenceDocumentApplicationErrors, DeleteDisputeEvidenceDocumentRequest, DeleteDisputeEvidenceDocumentResponse, DisputeEvidenceDocument, DisputeEvidenceDocumentsQueryBuilder, DisputeEvidenceDocumentsQueryResult, DocumentFile, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GenerateDisputeEvidenceDocumentDownloadUrlApplicationErrors, GenerateDisputeEvidenceDocumentDownloadUrlRequest, GenerateDisputeEvidenceDocumentDownloadUrlResponse, GenerateDisputeEvidenceDocumentUploadUrlApplicationErrors, GenerateDisputeEvidenceDocumentUploadUrlOptions, GenerateDisputeEvidenceDocumentUploadUrlRequest, GenerateDisputeEvidenceDocumentUploadUrlResponse, GetDisputeEvidenceDocumentRequest, GetDisputeEvidenceDocumentResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MarkDisputeEvidenceDocumentSubmittedRequest, MarkDisputeEvidenceDocumentSubmittedResponse, MessageEnvelope, MigrateDisputeEvidenceDocumentRequest, MigrateDisputeEvidenceDocumentResponse, QueryDisputeEvidenceDocumentsRequest, QueryDisputeEvidenceDocumentsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, SubmitMigratedDisputeEvidenceDocumentRequest, SubmitMigratedDisputeEvidenceDocumentResponse, TagList, Tags, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.mjs';
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /** Dispute Evidence Document */
4
+ interface DisputeEvidenceDocument {
5
+ /**
6
+ * DisputeEvidenceDocument ID.
7
+ * @format GUID
8
+ * @readonly
9
+ * @immutable
10
+ */
11
+ _id?: string;
12
+ /**
13
+ * Revision number, which increments by 1 each time the dispute evidence document is updated.
14
+ * To prevent conflicting changes, the existing revision must be specified when updating a dispute evidence document.
15
+ * @readonly
16
+ */
17
+ revision?: string | null;
18
+ /**
19
+ * Date and time the DisputeEvidenceDocument was created.
20
+ * @readonly
21
+ * @immutable
22
+ */
23
+ _createdDate?: Date | null;
24
+ /**
25
+ * Date and time the DisputeEvidenceDocument was last updated.
26
+ * @readonly
27
+ */
28
+ _updatedDate?: Date | null;
29
+ /**
30
+ * Dispute ID
31
+ * @format GUID
32
+ * @immutable
33
+ */
34
+ disputeId?: string;
35
+ /**
36
+ * Document evidence file if it was uploaded and attached
37
+ * @readonly
38
+ */
39
+ file?: DocumentFile;
40
+ /**
41
+ * Custom field data for the dispute evidence document.
42
+ * Extended fields must be configured in the app dashboard before they can be accessed with API calls.
43
+ */
44
+ extendedFields?: ExtendedFields;
45
+ /** Tags */
46
+ tags?: Tags;
47
+ }
48
+ interface DocumentFile {
49
+ /**
50
+ * Document filename.
51
+ * @readonly
52
+ * @maxLength 255
53
+ */
54
+ filename?: string | null;
55
+ /**
56
+ * Document size in bytes.
57
+ * @readonly
58
+ */
59
+ sizeInBytes?: string | null;
60
+ /**
61
+ * Hexadecimal representation of the document's MD5 digest.
62
+ * @minLength 32
63
+ * @maxLength 32
64
+ * @readonly
65
+ */
66
+ hexMd5Digest?: string | null;
67
+ }
68
+ interface ExtendedFields {
69
+ /**
70
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
71
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
72
+ *
73
+ * You can only access fields for which you have the appropriate permissions.
74
+ *
75
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
76
+ */
77
+ namespaces?: Record<string, Record<string, any>>;
78
+ }
79
+ /**
80
+ * Common object for tags.
81
+ * Should be use as in this example:
82
+ * message Foo {
83
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
84
+ * string id = 1;
85
+ * ...
86
+ * Tags tags = 5
87
+ * }
88
+ *
89
+ * example of taggable entity
90
+ * {
91
+ * id: "123"
92
+ * tags: {
93
+ * public_tags: {
94
+ * tag_ids:["11","22"]
95
+ * },
96
+ * private_tags: {
97
+ * tag_ids: ["33", "44"]
98
+ * }
99
+ * }
100
+ * }
101
+ */
102
+ interface Tags {
103
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
104
+ privateTags?: TagList;
105
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
106
+ publicTags?: TagList;
107
+ }
108
+ interface TagList {
109
+ /**
110
+ * List of tag IDs.
111
+ * @maxSize 100
112
+ * @maxLength 5
113
+ */
114
+ tagIds?: string[];
115
+ }
116
+ interface TagsModified {
117
+ /** Updated DisputeEvidenceDocument. */
118
+ disputeEvidenceDocument?: DisputeEvidenceDocument;
119
+ /** Tags that were assigned to the DisputeEvidenceDocument. */
120
+ assignedTags?: Tags;
121
+ /** Tags that were unassigned from the DisputeEvidenceDocument. */
122
+ unassignedTags?: Tags;
123
+ }
124
+ interface CreateDisputeEvidenceDocumentRequest {
125
+ /** DisputeEvidenceDocument to be created. */
126
+ disputeEvidenceDocument: DisputeEvidenceDocument;
127
+ }
128
+ interface CreateDisputeEvidenceDocumentResponse {
129
+ /** The created DisputeEvidenceDocument. */
130
+ disputeEvidenceDocument?: DisputeEvidenceDocument;
131
+ /**
132
+ * Upload URL to upload file evidence
133
+ * @format WEB_URL
134
+ */
135
+ uploadUrl?: string | null;
136
+ }
137
+ interface GetDisputeEvidenceDocumentRequest {
138
+ /**
139
+ * ID of the DisputeEvidenceDocument to retrieve.
140
+ * @format GUID
141
+ */
142
+ disputeEvidenceDocumentId: string;
143
+ }
144
+ interface GetDisputeEvidenceDocumentResponse {
145
+ /** The requested DisputeEvidenceDocument. */
146
+ disputeEvidenceDocument?: DisputeEvidenceDocument;
147
+ }
148
+ interface DeleteDisputeEvidenceDocumentRequest {
149
+ /**
150
+ * Id of the DisputeEvidenceDocument to delete.
151
+ * @format GUID
152
+ */
153
+ disputeEvidenceDocumentId: string;
154
+ }
155
+ interface DeleteDisputeEvidenceDocumentResponse {
156
+ }
157
+ interface QueryDisputeEvidenceDocumentsRequest {
158
+ /** WQL expression. */
159
+ query?: CursorQuery;
160
+ }
161
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
162
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
163
+ cursorPaging?: CursorPaging;
164
+ /**
165
+ * Filter object in the following format:
166
+ * `"filter" : {
167
+ * "fieldName1": "value1",
168
+ * "fieldName2":{"$operator":"value2"}
169
+ * }`
170
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
171
+ */
172
+ filter?: Record<string, any> | null;
173
+ /**
174
+ * Sort object in the following format:
175
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
176
+ * @maxSize 5
177
+ */
178
+ sort?: Sorting[];
179
+ }
180
+ /** @oneof */
181
+ interface CursorQueryPagingMethodOneOf {
182
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
183
+ cursorPaging?: CursorPaging;
184
+ }
185
+ interface Sorting {
186
+ /**
187
+ * Name of the field to sort by.
188
+ * @maxLength 512
189
+ */
190
+ fieldName?: string;
191
+ /** Sort order. */
192
+ order?: SortOrderWithLiterals;
193
+ }
194
+ declare enum SortOrder {
195
+ ASC = "ASC",
196
+ DESC = "DESC"
197
+ }
198
+ /** @enumType */
199
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
200
+ interface CursorPaging {
201
+ /**
202
+ * Maximum number of items to return in the results.
203
+ * @max 100
204
+ */
205
+ limit?: number | null;
206
+ /**
207
+ * Pointer to the next or previous page in the list of results.
208
+ *
209
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
210
+ * Not relevant for the first request.
211
+ * @maxLength 16000
212
+ */
213
+ cursor?: string | null;
214
+ }
215
+ interface QueryDisputeEvidenceDocumentsResponse {
216
+ /** List of DisputeEvidenceDocuments. */
217
+ disputeEvidenceDocuments?: DisputeEvidenceDocument[];
218
+ /** Paging metadata */
219
+ pagingMetadata?: CursorPagingMetadata;
220
+ }
221
+ interface CursorPagingMetadata {
222
+ /** Number of items returned in the response. */
223
+ count?: number | null;
224
+ /** Cursor strings that point to the next page, previous page, or both. */
225
+ cursors?: Cursors;
226
+ /**
227
+ * Whether there are more pages to retrieve following the current page.
228
+ *
229
+ * + `true`: Another page of results can be retrieved.
230
+ * + `false`: This is the last page.
231
+ */
232
+ hasNext?: boolean | null;
233
+ }
234
+ interface Cursors {
235
+ /**
236
+ * Cursor string pointing to the next page in the list of results.
237
+ * @maxLength 16000
238
+ */
239
+ next?: string | null;
240
+ /**
241
+ * Cursor pointing to the previous page in the list of results.
242
+ * @maxLength 16000
243
+ */
244
+ prev?: string | null;
245
+ }
246
+ interface BulkUpdateDisputeEvidenceDocumentTagsRequest {
247
+ /**
248
+ * List of NileProtoTagsEntities that their tags will update.
249
+ * @minSize 1
250
+ * @maxSize 100
251
+ * @format GUID
252
+ */
253
+ ids: string[];
254
+ /** List of Tags to assign */
255
+ assignTags?: Tags;
256
+ /** List of Tags to unAssign */
257
+ unassignTags?: Tags;
258
+ }
259
+ interface BulkUpdateDisputeEvidenceDocumentTagsResponse {
260
+ /**
261
+ * Results
262
+ * @minSize 1
263
+ * @maxSize 100
264
+ */
265
+ results?: BulkUpdateDisputeEvidenceDocumentTagsResult[];
266
+ /** Metadata regarding the bulk update operation */
267
+ bulkActionMetadata?: BulkActionMetadata;
268
+ }
269
+ interface ItemMetadata {
270
+ /**
271
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
272
+ * @format GUID
273
+ */
274
+ _id?: string | null;
275
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
276
+ originalIndex?: number;
277
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
278
+ success?: boolean;
279
+ /** Details about the error in case of failure. */
280
+ error?: ApplicationError;
281
+ }
282
+ interface ApplicationError {
283
+ /** Error code. */
284
+ code?: string;
285
+ /** Description of the error. */
286
+ description?: string;
287
+ /** Data related to the error. */
288
+ data?: Record<string, any> | null;
289
+ }
290
+ interface BulkUpdateDisputeEvidenceDocumentTagsResult {
291
+ /** Metadata regarding the specific single update operation */
292
+ itemMetadata?: ItemMetadata;
293
+ }
294
+ interface BulkActionMetadata {
295
+ /** Number of items that were successfully processed. */
296
+ totalSuccesses?: number;
297
+ /** Number of items that couldn't be processed. */
298
+ totalFailures?: number;
299
+ /** Number of failures without details because detailed failure threshold was exceeded. */
300
+ undetailedFailures?: number;
301
+ }
302
+ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest {
303
+ /** Filter */
304
+ filter: Record<string, any> | null;
305
+ /** List of Tags to assign */
306
+ assignTags?: Tags;
307
+ /** List of Tags to unAssign */
308
+ unassignTags?: Tags;
309
+ }
310
+ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse {
311
+ /**
312
+ * Pass this ID to Get Async Job
313
+ * @format GUID
314
+ */
315
+ jobId?: string;
316
+ }
317
+ interface MigrateDisputeEvidenceDocumentRequest {
318
+ /**
319
+ * Dispute Id
320
+ * @format GUID
321
+ */
322
+ disputeId?: string;
323
+ /**
324
+ * Evidence Id
325
+ * @format GUID
326
+ */
327
+ evidenceId?: string;
328
+ /**
329
+ * External evidence document Id
330
+ * @minLength 1
331
+ * @maxLength 64
332
+ */
333
+ evidenceDocumentId?: string;
334
+ /**
335
+ * File hash
336
+ * @minLength 32
337
+ * @maxLength 32
338
+ */
339
+ hash?: string | null;
340
+ /** Created date */
341
+ _createdDate?: Date | null;
342
+ }
343
+ interface MigrateDisputeEvidenceDocumentResponse {
344
+ }
345
+ interface SubmitMigratedDisputeEvidenceDocumentRequest {
346
+ /**
347
+ * Dispute Id
348
+ * @format GUID
349
+ */
350
+ disputeId?: string;
351
+ /**
352
+ * Evidence Id
353
+ * @format GUID
354
+ */
355
+ evidenceId?: string;
356
+ /** Submitted date */
357
+ submittedDate?: Date | null;
358
+ }
359
+ interface SubmitMigratedDisputeEvidenceDocumentResponse {
360
+ }
361
+ interface GenerateDisputeEvidenceDocumentUploadUrlRequest {
362
+ /**
363
+ * Dispute Evidence Document ID
364
+ * @format GUID
365
+ */
366
+ disputeEvidenceDocumentId?: string;
367
+ /**
368
+ * Name of the uploaded file
369
+ * @minLength 1
370
+ * @maxLength 255
371
+ */
372
+ filename?: string;
373
+ }
374
+ interface GenerateDisputeEvidenceDocumentUploadUrlResponse {
375
+ /**
376
+ * Evidence Document upload URL
377
+ * @format WEB_URL
378
+ */
379
+ uploadUrl?: string;
380
+ }
381
+ interface AttachDisputeEvidenceDocumentFileRequest {
382
+ /**
383
+ * Dispute Evidence Document ID
384
+ * @format GUID
385
+ */
386
+ disputeEvidenceDocumentId?: string;
387
+ }
388
+ interface AttachDisputeEvidenceDocumentFileResponse {
389
+ /** Dispute Evidence Document */
390
+ disputeEvidenceDocument?: DisputeEvidenceDocument;
391
+ }
392
+ /** it will be removed */
393
+ interface GenerateDisputeEvidenceDocumentDownloadUrlRequest {
394
+ /**
395
+ * ID of the DisputeEvidenceDocument to generate Download Url.
396
+ * @format GUID
397
+ */
398
+ disputeEvidenceDocumentId?: string;
399
+ }
400
+ /** it will be removed */
401
+ interface GenerateDisputeEvidenceDocumentDownloadUrlResponse {
402
+ /**
403
+ * Document source URL.
404
+ * @format WEB_URL
405
+ */
406
+ url?: string | null;
407
+ /** Document source URL expiration date (when relevant). */
408
+ urlExpirationDate?: Date | null;
409
+ }
410
+ /** it will be removed */
411
+ interface MarkDisputeEvidenceDocumentSubmittedRequest {
412
+ /**
413
+ * Id of the DisputeEvidenceDocument to mark as submitted.
414
+ * @format GUID
415
+ */
416
+ disputeEvidenceDocumentId?: string;
417
+ }
418
+ /** it will be removed */
419
+ interface MarkDisputeEvidenceDocumentSubmittedResponse {
420
+ }
421
+ interface DomainEvent extends DomainEventBodyOneOf {
422
+ createdEvent?: EntityCreatedEvent;
423
+ updatedEvent?: EntityUpdatedEvent;
424
+ deletedEvent?: EntityDeletedEvent;
425
+ actionEvent?: ActionEvent;
426
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
427
+ _id?: string;
428
+ /**
429
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
430
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
431
+ */
432
+ entityFqdn?: string;
433
+ /**
434
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
435
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
436
+ */
437
+ slug?: string;
438
+ /** ID of the entity associated with the event. */
439
+ entityId?: string;
440
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
441
+ eventTime?: Date | null;
442
+ /**
443
+ * Whether the event was triggered as a result of a privacy regulation application
444
+ * (for example, GDPR).
445
+ */
446
+ triggeredByAnonymizeRequest?: boolean | null;
447
+ /** If present, indicates the action that triggered the event. */
448
+ originatedFrom?: string | null;
449
+ /**
450
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
451
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
452
+ */
453
+ entityEventSequence?: string | null;
454
+ }
455
+ /** @oneof */
456
+ interface DomainEventBodyOneOf {
457
+ createdEvent?: EntityCreatedEvent;
458
+ updatedEvent?: EntityUpdatedEvent;
459
+ deletedEvent?: EntityDeletedEvent;
460
+ actionEvent?: ActionEvent;
461
+ }
462
+ interface EntityCreatedEvent {
463
+ entity?: string;
464
+ }
465
+ interface RestoreInfo {
466
+ deletedDate?: Date | null;
467
+ }
468
+ interface EntityUpdatedEvent {
469
+ /**
470
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
471
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
472
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
473
+ */
474
+ currentEntity?: string;
475
+ }
476
+ interface EntityDeletedEvent {
477
+ /** Entity that was deleted. */
478
+ deletedEntity?: string | null;
479
+ }
480
+ interface ActionEvent {
481
+ body?: string;
482
+ }
483
+ interface MessageEnvelope {
484
+ /**
485
+ * App instance ID.
486
+ * @format GUID
487
+ */
488
+ instanceId?: string | null;
489
+ /**
490
+ * Event type.
491
+ * @maxLength 150
492
+ */
493
+ eventType?: string;
494
+ /** The identification type and identity data. */
495
+ identity?: IdentificationData;
496
+ /** Stringify payload. */
497
+ data?: string;
498
+ }
499
+ interface IdentificationData extends IdentificationDataIdOneOf {
500
+ /**
501
+ * ID of a site visitor that has not logged in to the site.
502
+ * @format GUID
503
+ */
504
+ anonymousVisitorId?: string;
505
+ /**
506
+ * ID of a site visitor that has logged in to the site.
507
+ * @format GUID
508
+ */
509
+ memberId?: string;
510
+ /**
511
+ * ID of a Wix user (site owner, contributor, etc.).
512
+ * @format GUID
513
+ */
514
+ wixUserId?: string;
515
+ /**
516
+ * ID of an app.
517
+ * @format GUID
518
+ */
519
+ appId?: string;
520
+ /** @readonly */
521
+ identityType?: WebhookIdentityTypeWithLiterals;
522
+ }
523
+ /** @oneof */
524
+ interface IdentificationDataIdOneOf {
525
+ /**
526
+ * ID of a site visitor that has not logged in to the site.
527
+ * @format GUID
528
+ */
529
+ anonymousVisitorId?: string;
530
+ /**
531
+ * ID of a site visitor that has logged in to the site.
532
+ * @format GUID
533
+ */
534
+ memberId?: string;
535
+ /**
536
+ * ID of a Wix user (site owner, contributor, etc.).
537
+ * @format GUID
538
+ */
539
+ wixUserId?: string;
540
+ /**
541
+ * ID of an app.
542
+ * @format GUID
543
+ */
544
+ appId?: string;
545
+ }
546
+ declare enum WebhookIdentityType {
547
+ UNKNOWN = "UNKNOWN",
548
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
549
+ MEMBER = "MEMBER",
550
+ WIX_USER = "WIX_USER",
551
+ APP = "APP"
552
+ }
553
+ /** @enumType */
554
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
555
+ /** @docsIgnore */
556
+ type DeleteDisputeEvidenceDocumentApplicationErrors = {
557
+ code?: 'DISPUTE_EVIDENCE_DOCUMENT_ALREADY_SUBMITTED';
558
+ description?: string;
559
+ data?: Record<string, any>;
560
+ };
561
+ /** @docsIgnore */
562
+ type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors = {
563
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
564
+ description?: string;
565
+ data?: Record<string, any>;
566
+ };
567
+ /** @docsIgnore */
568
+ type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors = {
569
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
570
+ description?: string;
571
+ data?: Record<string, any>;
572
+ };
573
+ interface BaseEventMetadata {
574
+ /**
575
+ * App instance ID.
576
+ * @format GUID
577
+ */
578
+ instanceId?: string | null;
579
+ /**
580
+ * Event type.
581
+ * @maxLength 150
582
+ */
583
+ eventType?: string;
584
+ /** The identification type and identity data. */
585
+ identity?: IdentificationData;
586
+ }
587
+ interface EventMetadata extends BaseEventMetadata {
588
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
589
+ _id?: string;
590
+ /**
591
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
592
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
593
+ */
594
+ entityFqdn?: string;
595
+ /**
596
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
597
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
598
+ */
599
+ slug?: string;
600
+ /** ID of the entity associated with the event. */
601
+ entityId?: string;
602
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
603
+ eventTime?: Date | null;
604
+ /**
605
+ * Whether the event was triggered as a result of a privacy regulation application
606
+ * (for example, GDPR).
607
+ */
608
+ triggeredByAnonymizeRequest?: boolean | null;
609
+ /** If present, indicates the action that triggered the event. */
610
+ originatedFrom?: string | null;
611
+ /**
612
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
613
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
614
+ */
615
+ entityEventSequence?: string | null;
616
+ }
617
+ interface DisputeEvidenceDocumentCreatedEnvelope {
618
+ entity: DisputeEvidenceDocument;
619
+ metadata: EventMetadata;
620
+ }
621
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
622
+ * @webhook
623
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_created
624
+ * @slug created
625
+ * @documentationMaturity preview
626
+ */
627
+ declare function onDisputeEvidenceDocumentCreated(handler: (event: DisputeEvidenceDocumentCreatedEnvelope) => void | Promise<void>): void;
628
+ interface DisputeEvidenceDocumentDeletedEnvelope {
629
+ entity: DisputeEvidenceDocument;
630
+ metadata: EventMetadata;
631
+ }
632
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
633
+ * @webhook
634
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_deleted
635
+ * @slug deleted
636
+ * @documentationMaturity preview
637
+ */
638
+ declare function onDisputeEvidenceDocumentDeleted(handler: (event: DisputeEvidenceDocumentDeletedEnvelope) => void | Promise<void>): void;
639
+ interface DisputeEvidenceDocumentUpdatedEnvelope {
640
+ entity: DisputeEvidenceDocument;
641
+ metadata: EventMetadata;
642
+ }
643
+ /** @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
644
+ * @webhook
645
+ * @eventType wix.payments.dispute_evidence_documents.v1.dispute_evidence_document_updated
646
+ * @slug updated
647
+ * @documentationMaturity preview
648
+ */
649
+ declare function onDisputeEvidenceDocumentUpdated(handler: (event: DisputeEvidenceDocumentUpdatedEnvelope) => void | Promise<void>): void;
650
+ /**
651
+ * Creates a DisputeEvidenceDocument.
652
+ * @param disputeEvidenceDocument - DisputeEvidenceDocument to be created.
653
+ * @public
654
+ * @documentationMaturity preview
655
+ * @requiredField disputeEvidenceDocument
656
+ * @requiredField disputeEvidenceDocument.disputeId
657
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_CREATE
658
+ * @returns The created DisputeEvidenceDocument.
659
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.CreateDisputeEvidenceDocument
660
+ */
661
+ declare function createDisputeEvidenceDocument(disputeEvidenceDocument: NonNullablePaths<DisputeEvidenceDocument, `disputeId`, 2>): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
662
+ /**
663
+ * Retrieves a DisputeEvidenceDocument.
664
+ * @param disputeEvidenceDocumentId - ID of the DisputeEvidenceDocument to retrieve.
665
+ * @public
666
+ * @documentationMaturity preview
667
+ * @requiredField disputeEvidenceDocumentId
668
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
669
+ * @returns The requested DisputeEvidenceDocument.
670
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.GetDisputeEvidenceDocument
671
+ */
672
+ declare function getDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<NonNullablePaths<DisputeEvidenceDocument, `_id` | `disputeId` | `tags.privateTags.tagIds`, 4>>;
673
+ /**
674
+ * Deletes a DisputeEvidenceDocument.
675
+ * @param disputeEvidenceDocumentId - Id of the DisputeEvidenceDocument to delete.
676
+ * @public
677
+ * @documentationMaturity preview
678
+ * @requiredField disputeEvidenceDocumentId
679
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_DELETE
680
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.DeleteDisputeEvidenceDocument
681
+ */
682
+ declare function deleteDisputeEvidenceDocument(disputeEvidenceDocumentId: string): Promise<void & {
683
+ __applicationErrorsType?: DeleteDisputeEvidenceDocumentApplicationErrors;
684
+ }>;
685
+ /**
686
+ * Retrieves a list of DisputeEvidenceDocuments, given the provided [paging, filtering, and sorting][1].
687
+ * @public
688
+ * @documentationMaturity preview
689
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_READ
690
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.QueryDisputeEvidenceDocuments
691
+ */
692
+ declare function queryDisputeEvidenceDocuments(): DisputeEvidenceDocumentsQueryBuilder;
693
+ interface QueryCursorResult {
694
+ cursors: Cursors;
695
+ hasNext: () => boolean;
696
+ hasPrev: () => boolean;
697
+ length: number;
698
+ pageSize: number;
699
+ }
700
+ interface DisputeEvidenceDocumentsQueryResult extends QueryCursorResult {
701
+ items: DisputeEvidenceDocument[];
702
+ query: DisputeEvidenceDocumentsQueryBuilder;
703
+ next: () => Promise<DisputeEvidenceDocumentsQueryResult>;
704
+ prev: () => Promise<DisputeEvidenceDocumentsQueryResult>;
705
+ }
706
+ interface DisputeEvidenceDocumentsQueryBuilder {
707
+ /** @param propertyName - Property whose value is compared with `value`.
708
+ * @param value - Value to compare against.
709
+ * @documentationMaturity preview
710
+ */
711
+ eq: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
712
+ /** @param propertyName - Property whose value is compared with `value`.
713
+ * @param value - Value to compare against.
714
+ * @documentationMaturity preview
715
+ */
716
+ ne: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
717
+ /** @param propertyName - Property whose value is compared with `value`.
718
+ * @param value - Value to compare against.
719
+ * @documentationMaturity preview
720
+ */
721
+ ge: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
722
+ /** @param propertyName - Property whose value is compared with `value`.
723
+ * @param value - Value to compare against.
724
+ * @documentationMaturity preview
725
+ */
726
+ gt: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
727
+ /** @param propertyName - Property whose value is compared with `value`.
728
+ * @param value - Value to compare against.
729
+ * @documentationMaturity preview
730
+ */
731
+ le: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
732
+ /** @param propertyName - Property whose value is compared with `value`.
733
+ * @param value - Value to compare against.
734
+ * @documentationMaturity preview
735
+ */
736
+ lt: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
737
+ /** @param propertyName - Property whose value is compared with `string`.
738
+ * @param string - String to compare against. Case-insensitive.
739
+ * @documentationMaturity preview
740
+ */
741
+ startsWith: (propertyName: 'disputeId', value: string) => DisputeEvidenceDocumentsQueryBuilder;
742
+ /** @param propertyName - Property whose value is compared with `values`.
743
+ * @param values - List of values to compare against.
744
+ * @documentationMaturity preview
745
+ */
746
+ hasSome: (propertyName: 'disputeId', value: any[]) => DisputeEvidenceDocumentsQueryBuilder;
747
+ /** @documentationMaturity preview */
748
+ in: (propertyName: 'disputeId', value: any) => DisputeEvidenceDocumentsQueryBuilder;
749
+ /** @documentationMaturity preview */
750
+ exists: (propertyName: 'disputeId', value: boolean) => DisputeEvidenceDocumentsQueryBuilder;
751
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
752
+ * @documentationMaturity preview
753
+ */
754
+ ascending: (...propertyNames: Array<'disputeId'>) => DisputeEvidenceDocumentsQueryBuilder;
755
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
756
+ * @documentationMaturity preview
757
+ */
758
+ descending: (...propertyNames: Array<'disputeId'>) => DisputeEvidenceDocumentsQueryBuilder;
759
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
760
+ * @documentationMaturity preview
761
+ */
762
+ limit: (limit: number) => DisputeEvidenceDocumentsQueryBuilder;
763
+ /** @param cursor - A pointer to specific record
764
+ * @documentationMaturity preview
765
+ */
766
+ skipTo: (cursor: string) => DisputeEvidenceDocumentsQueryBuilder;
767
+ /** @documentationMaturity preview */
768
+ find: () => Promise<DisputeEvidenceDocumentsQueryResult>;
769
+ }
770
+ /**
771
+ * Synchronously update tags on multiple dispute evidence documents, by list of dispute evidence document ids
772
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
773
+ * @param ids - List of NileProtoTagsEntities that their tags will update.
774
+ * @public
775
+ * @documentationMaturity preview
776
+ * @requiredField ids
777
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
778
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTags
779
+ */
780
+ 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> & {
781
+ __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors;
782
+ }>;
783
+ interface BulkUpdateDisputeEvidenceDocumentTagsOptions {
784
+ /** List of Tags to assign */
785
+ assignTags?: Tags;
786
+ /** List of Tags to unAssign */
787
+ unassignTags?: Tags;
788
+ }
789
+ /**
790
+ * Asynchronously update tags on multiple dispute evidence documents, by provided filter.
791
+ * An empty filter will update all dispute evidence documents
792
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
793
+ * @param filter - Filter
794
+ * @public
795
+ * @documentationMaturity preview
796
+ * @requiredField filter
797
+ * @permissionId PAYMENTS.DISPUTE_EVIDENCE_DOCUMENT_UPDATE_TAGS
798
+ * @fqn wix.payments.dispute_evidence_documents.v1.DisputeEvidenceDocumentService.BulkUpdateDisputeEvidenceDocumentTagsByFilter
799
+ */
800
+ declare function bulkUpdateDisputeEvidenceDocumentTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, `jobId`, 2> & {
801
+ __applicationErrorsType?: BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors;
802
+ }>;
803
+ interface BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions {
804
+ /** List of Tags to assign */
805
+ assignTags?: Tags;
806
+ /** List of Tags to unAssign */
807
+ unassignTags?: Tags;
808
+ }
809
+
810
+ export { type ActionEvent, type ApplicationError, type AttachDisputeEvidenceDocumentFileRequest, type AttachDisputeEvidenceDocumentFileResponse, type BaseEventMetadata, type BulkActionMetadata, type BulkUpdateDisputeEvidenceDocumentTagsApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterApplicationErrors, type BulkUpdateDisputeEvidenceDocumentTagsByFilterOptions, type BulkUpdateDisputeEvidenceDocumentTagsByFilterRequest, type BulkUpdateDisputeEvidenceDocumentTagsByFilterResponse, type BulkUpdateDisputeEvidenceDocumentTagsOptions, type BulkUpdateDisputeEvidenceDocumentTagsRequest, type BulkUpdateDisputeEvidenceDocumentTagsResponse, type BulkUpdateDisputeEvidenceDocumentTagsResult, type CreateDisputeEvidenceDocumentRequest, type CreateDisputeEvidenceDocumentResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteDisputeEvidenceDocumentApplicationErrors, type DeleteDisputeEvidenceDocumentRequest, type DeleteDisputeEvidenceDocumentResponse, type DisputeEvidenceDocument, type DisputeEvidenceDocumentCreatedEnvelope, type DisputeEvidenceDocumentDeletedEnvelope, type DisputeEvidenceDocumentUpdatedEnvelope, type DisputeEvidenceDocumentsQueryBuilder, type DisputeEvidenceDocumentsQueryResult, type DocumentFile, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GenerateDisputeEvidenceDocumentDownloadUrlRequest, type GenerateDisputeEvidenceDocumentDownloadUrlResponse, type GenerateDisputeEvidenceDocumentUploadUrlRequest, type GenerateDisputeEvidenceDocumentUploadUrlResponse, type GetDisputeEvidenceDocumentRequest, type GetDisputeEvidenceDocumentResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MarkDisputeEvidenceDocumentSubmittedRequest, type MarkDisputeEvidenceDocumentSubmittedResponse, type MessageEnvelope, type MigrateDisputeEvidenceDocumentRequest, type MigrateDisputeEvidenceDocumentResponse, type QueryDisputeEvidenceDocumentsRequest, type QueryDisputeEvidenceDocumentsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type SubmitMigratedDisputeEvidenceDocumentRequest, type SubmitMigratedDisputeEvidenceDocumentResponse, type TagList, type Tags, type TagsModified, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateDisputeEvidenceDocumentTags, bulkUpdateDisputeEvidenceDocumentTagsByFilter, createDisputeEvidenceDocument, deleteDisputeEvidenceDocument, getDisputeEvidenceDocument, onDisputeEvidenceDocumentCreated, onDisputeEvidenceDocumentDeleted, onDisputeEvidenceDocumentUpdated, queryDisputeEvidenceDocuments };