@wix/auto_sdk_payments_dispute-history-records 1.0.26 → 1.0.28

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.
@@ -1 +1,648 @@
1
- export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResponse, BulkUpdateDisputeHistoryRecordTagsResult, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.js';
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /**
4
+ * A dispute history record represents a snapshot of dispute information at a specific point in time.
5
+ *
6
+ * Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.
7
+ */
8
+ interface DisputeHistoryRecord {
9
+ /**
10
+ * DisputeHistoryRecord ID.
11
+ * @format GUID
12
+ * @readonly
13
+ * @immutable
14
+ */
15
+ _id?: string;
16
+ /**
17
+ * Revision number, which increments by 1 each time the dispute history record is updated.
18
+ * To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.
19
+ * @readonly
20
+ */
21
+ revision?: string | null;
22
+ /**
23
+ * Date and time the DisputeHistoryRecord was created.
24
+ * @readonly
25
+ * @immutable
26
+ */
27
+ _createdDate?: Date | null;
28
+ /**
29
+ * Date and time the DisputeHistoryRecord was last updated.
30
+ * @readonly
31
+ * @immutable
32
+ */
33
+ _updatedDate?: Date | null;
34
+ /**
35
+ * ID of the dispute that this history record tracks. Each dispute can have multiple history records showing its lifecycle changes.
36
+ * @format GUID
37
+ * @immutable
38
+ */
39
+ disputeId?: string;
40
+ /**
41
+ * Stage of the dispute lifecycle at the time this record was created.
42
+ * Indicates whether this was an inquiry (request for information) or a chargeback (formal dispute).
43
+ * @readonly
44
+ * @immutable
45
+ */
46
+ stage?: DisputeStageWithLiterals;
47
+ /**
48
+ * Status of the dispute at the time this record was created.
49
+ * Indicates what action was required and by whom at this point in the dispute lifecycle.
50
+ * @readonly
51
+ * @immutable
52
+ */
53
+ status?: DisputeStatusWithLiterals;
54
+ /**
55
+ * Date by which action must be taken on the dispute.
56
+ * After this date, the dispute may be automatically resolved against the merchant.
57
+ * @readonly
58
+ * @immutable
59
+ */
60
+ dueDate?: Date | null;
61
+ /**
62
+ * ID of the payment charge that is being disputed.
63
+ * Links this history record to the original transaction.
64
+ * @format GUID
65
+ * @readonly
66
+ * @immutable
67
+ */
68
+ chargeId?: string;
69
+ /**
70
+ * Channel through which the dispute is being processed.
71
+ * Internal disputes are handled by the payment processor, while external disputes go through the card network or issuing bank.
72
+ * @readonly
73
+ * @immutable
74
+ */
75
+ channel?: DisputeChannelWithLiterals;
76
+ /** Custom field data for the dispute history record. Extended fields must be configured in the app dashboard before they can be accessed with API calls. */
77
+ extendedFields?: ExtendedFields;
78
+ /** Tags */
79
+ tags?: Tags;
80
+ }
81
+ declare enum DisputeStage {
82
+ UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
83
+ /** Formal dispute filed by the cardholder through their bank. */
84
+ CHARGEBACK = "CHARGEBACK",
85
+ /** Request for additional information about the transaction, which may escalate to a chargeback if not resolved. */
86
+ INQUIRY = "INQUIRY"
87
+ }
88
+ /** @enumType */
89
+ type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGEBACK' | 'INQUIRY';
90
+ declare enum DisputeStatus {
91
+ /** Unknown status */
92
+ UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
93
+ /** Waiting for merchant action, such as submitting evidence or accepting the dispute. */
94
+ WAITING_MERCHANT = "WAITING_MERCHANT",
95
+ /** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */
96
+ UNDER_REVIEW = "UNDER_REVIEW",
97
+ /** Waiting for buyer action or response. */
98
+ WAITING_BUYER = "WAITING_BUYER",
99
+ /** Dispute was resolved in favor of the merchant. */
100
+ WON = "WON",
101
+ /** Dispute was resolved in favor of the cardholder. */
102
+ LOST = "LOST",
103
+ /** Evidence was submitted and is being processed on the provider side. This status will be removed in a future version. */
104
+ PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
105
+ /** The dispute was accepted and the acceptance is being processed on the provider side. This status will be removed in a future version. */
106
+ PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
107
+ }
108
+ /** @enumType */
109
+ type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
110
+ declare enum DisputeChannel {
111
+ UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
112
+ /** Dispute is reviewed internally by the payment service provider. */
113
+ INTERNAL = "INTERNAL",
114
+ /** Dispute is reviewed externally by the bank or other financial institution. */
115
+ EXTERNAL = "EXTERNAL"
116
+ }
117
+ /** @enumType */
118
+ type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
119
+ interface ExtendedFields {
120
+ /**
121
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
122
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
123
+ *
124
+ * You can only access fields for which you have the appropriate permissions.
125
+ *
126
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
127
+ */
128
+ namespaces?: Record<string, Record<string, any>>;
129
+ }
130
+ /**
131
+ * Common object for tags.
132
+ * Should be use as in this example:
133
+ * message Foo {
134
+ * option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
135
+ * string id = 1;
136
+ * ...
137
+ * Tags tags = 5
138
+ * }
139
+ *
140
+ * example of taggable entity
141
+ * {
142
+ * id: "123"
143
+ * tags: {
144
+ * public_tags: {
145
+ * tag_ids:["11","22"]
146
+ * },
147
+ * private_tags: {
148
+ * tag_ids: ["33", "44"]
149
+ * }
150
+ * }
151
+ * }
152
+ */
153
+ interface Tags {
154
+ /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
155
+ privateTags?: TagList;
156
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
157
+ publicTags?: TagList;
158
+ }
159
+ interface TagList {
160
+ /**
161
+ * List of tag IDs.
162
+ * @maxSize 100
163
+ * @maxLength 5
164
+ */
165
+ tagIds?: string[];
166
+ }
167
+ /** Triggered when tags are modified on a dispute history record. */
168
+ interface TagsModified {
169
+ /** Updated dispute history record. */
170
+ disputeHistoryRecord?: DisputeHistoryRecord;
171
+ /** Tags that were assigned to the dispute history record. */
172
+ assignedTags?: Tags;
173
+ /** Tags that were unassigned from the dispute history record. */
174
+ unassignedTags?: Tags;
175
+ }
176
+ interface GetDisputeHistoryRecordRequest {
177
+ /**
178
+ * ID of the dispute history record to retrieve.
179
+ * @format GUID
180
+ */
181
+ disputeHistoryRecordId: string;
182
+ }
183
+ interface GetDisputeHistoryRecordResponse {
184
+ /** The requested dispute history record. */
185
+ disputeHistoryRecord?: DisputeHistoryRecord;
186
+ }
187
+ interface QueryDisputeHistoryRecordsRequest {
188
+ /**
189
+ * WQL expression for filtering, sorting, and paging dispute history records.
190
+ *
191
+ * Supported properties: `disputeId`, `stage`, `status`, `dueDate`, `chargeId`, `channel`, `createdDate`, `updatedDate`
192
+ */
193
+ query?: CursorQuery;
194
+ }
195
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
196
+ /** 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`. */
197
+ cursorPaging?: CursorPaging;
198
+ /**
199
+ * Filter object in the following format:
200
+ * `"filter" : {
201
+ * "fieldName1": "value1",
202
+ * "fieldName2":{"$operator":"value2"}
203
+ * }`
204
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
205
+ */
206
+ filter?: Record<string, any> | null;
207
+ /**
208
+ * Sort object in the following format:
209
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
210
+ * @maxSize 5
211
+ */
212
+ sort?: Sorting[];
213
+ }
214
+ /** @oneof */
215
+ interface CursorQueryPagingMethodOneOf {
216
+ /** 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`. */
217
+ cursorPaging?: CursorPaging;
218
+ }
219
+ interface Sorting {
220
+ /**
221
+ * Name of the field to sort by.
222
+ * @maxLength 512
223
+ */
224
+ fieldName?: string;
225
+ /** Sort order. */
226
+ order?: SortOrderWithLiterals;
227
+ }
228
+ declare enum SortOrder {
229
+ ASC = "ASC",
230
+ DESC = "DESC"
231
+ }
232
+ /** @enumType */
233
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
234
+ interface CursorPaging {
235
+ /**
236
+ * Maximum number of items to return in the results.
237
+ * @max 100
238
+ */
239
+ limit?: number | null;
240
+ /**
241
+ * Pointer to the next or previous page in the list of results.
242
+ *
243
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
244
+ * Not relevant for the first request.
245
+ * @maxLength 16000
246
+ */
247
+ cursor?: string | null;
248
+ }
249
+ interface QueryDisputeHistoryRecordsResponse {
250
+ /** List of dispute history records matching the query criteria. */
251
+ disputeHistoryRecords?: DisputeHistoryRecord[];
252
+ /** Paging metadata for cursor-based pagination. */
253
+ pagingMetadata?: CursorPagingMetadata;
254
+ }
255
+ interface CursorPagingMetadata {
256
+ /** Number of items returned in the response. */
257
+ count?: number | null;
258
+ /** Cursor strings that point to the next page, previous page, or both. */
259
+ cursors?: Cursors;
260
+ /**
261
+ * Whether there are more pages to retrieve following the current page.
262
+ *
263
+ * + `true`: Another page of results can be retrieved.
264
+ * + `false`: This is the last page.
265
+ */
266
+ hasNext?: boolean | null;
267
+ }
268
+ interface Cursors {
269
+ /**
270
+ * Cursor string pointing to the next page in the list of results.
271
+ * @maxLength 16000
272
+ */
273
+ next?: string | null;
274
+ /**
275
+ * Cursor pointing to the previous page in the list of results.
276
+ * @maxLength 16000
277
+ */
278
+ prev?: string | null;
279
+ }
280
+ interface DomainEvent extends DomainEventBodyOneOf {
281
+ createdEvent?: EntityCreatedEvent;
282
+ updatedEvent?: EntityUpdatedEvent;
283
+ deletedEvent?: EntityDeletedEvent;
284
+ actionEvent?: ActionEvent;
285
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
286
+ _id?: string;
287
+ /**
288
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
289
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
290
+ */
291
+ entityFqdn?: string;
292
+ /**
293
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
294
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
295
+ */
296
+ slug?: string;
297
+ /** ID of the entity associated with the event. */
298
+ entityId?: string;
299
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
300
+ eventTime?: Date | null;
301
+ /**
302
+ * Whether the event was triggered as a result of a privacy regulation application
303
+ * (for example, GDPR).
304
+ */
305
+ triggeredByAnonymizeRequest?: boolean | null;
306
+ /** If present, indicates the action that triggered the event. */
307
+ originatedFrom?: string | null;
308
+ /**
309
+ * 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.
310
+ * 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.
311
+ */
312
+ entityEventSequence?: string | null;
313
+ }
314
+ /** @oneof */
315
+ interface DomainEventBodyOneOf {
316
+ createdEvent?: EntityCreatedEvent;
317
+ updatedEvent?: EntityUpdatedEvent;
318
+ deletedEvent?: EntityDeletedEvent;
319
+ actionEvent?: ActionEvent;
320
+ }
321
+ interface EntityCreatedEvent {
322
+ entity?: string;
323
+ }
324
+ interface RestoreInfo {
325
+ deletedDate?: Date | null;
326
+ }
327
+ interface EntityUpdatedEvent {
328
+ /**
329
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
330
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
331
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
332
+ */
333
+ currentEntity?: string;
334
+ }
335
+ interface EntityDeletedEvent {
336
+ /** Entity that was deleted. */
337
+ deletedEntity?: string | null;
338
+ }
339
+ interface ActionEvent {
340
+ body?: string;
341
+ }
342
+ interface Empty {
343
+ }
344
+ interface BulkUpdateDisputeHistoryRecordTagsRequest {
345
+ /**
346
+ * List of dispute history record IDs whose tags will be updated.
347
+ *
348
+ * Limited to 100 IDs per request.
349
+ * @minSize 1
350
+ * @maxSize 100
351
+ * @format GUID
352
+ */
353
+ ids: string[];
354
+ /** Tags to assign to the dispute history records. */
355
+ assignTags?: Tags;
356
+ /** Tags to unassign from the dispute history records. */
357
+ unassignTags?: Tags;
358
+ }
359
+ interface BulkUpdateDisputeHistoryRecordTagsResponse {
360
+ /**
361
+ * Results of the bulk tag update operation for each dispute history record.
362
+ * @minSize 1
363
+ * @maxSize 100
364
+ */
365
+ results?: BulkUpdateDisputeHistoryRecordTagsResult[];
366
+ /** Metadata about the bulk update operation. */
367
+ bulkActionMetadata?: BulkActionMetadata;
368
+ }
369
+ interface ItemMetadata {
370
+ /**
371
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
372
+ * @format GUID
373
+ */
374
+ _id?: string | null;
375
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
376
+ originalIndex?: number;
377
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
378
+ success?: boolean;
379
+ /** Details about the error in case of failure. */
380
+ error?: ApplicationError;
381
+ }
382
+ interface ApplicationError {
383
+ /** Error code. */
384
+ code?: string;
385
+ /** Description of the error. */
386
+ description?: string;
387
+ /** Data related to the error. */
388
+ data?: Record<string, any> | null;
389
+ }
390
+ interface BulkUpdateDisputeHistoryRecordTagsResult {
391
+ /** Metadata about the individual item update operation. */
392
+ itemMetadata?: ItemMetadata;
393
+ }
394
+ interface BulkActionMetadata {
395
+ /** Number of items that were successfully processed. */
396
+ totalSuccesses?: number;
397
+ /** Number of items that couldn't be processed. */
398
+ totalFailures?: number;
399
+ /** Number of failures without details because detailed failure threshold was exceeded. */
400
+ undetailedFailures?: number;
401
+ }
402
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
403
+ /**
404
+ * Filter criteria for selecting dispute history records to update.
405
+ * An empty filter will update all dispute history records.
406
+ */
407
+ filter: Record<string, any> | null;
408
+ /** List of Tags to assign */
409
+ assignTags?: Tags;
410
+ /** List of Tags to unAssign */
411
+ unassignTags?: Tags;
412
+ }
413
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
414
+ /**
415
+ * Job ID for tracking the asynchronous bulk update operation.
416
+ * @format GUID
417
+ */
418
+ jobId?: string;
419
+ }
420
+ interface MessageEnvelope {
421
+ /**
422
+ * App instance ID.
423
+ * @format GUID
424
+ */
425
+ instanceId?: string | null;
426
+ /**
427
+ * Event type.
428
+ * @maxLength 150
429
+ */
430
+ eventType?: string;
431
+ /** The identification type and identity data. */
432
+ identity?: IdentificationData;
433
+ /** Stringify payload. */
434
+ data?: string;
435
+ }
436
+ interface IdentificationData extends IdentificationDataIdOneOf {
437
+ /**
438
+ * ID of a site visitor that has not logged in to the site.
439
+ * @format GUID
440
+ */
441
+ anonymousVisitorId?: string;
442
+ /**
443
+ * ID of a site visitor that has logged in to the site.
444
+ * @format GUID
445
+ */
446
+ memberId?: string;
447
+ /**
448
+ * ID of a Wix user (site owner, contributor, etc.).
449
+ * @format GUID
450
+ */
451
+ wixUserId?: string;
452
+ /**
453
+ * ID of an app.
454
+ * @format GUID
455
+ */
456
+ appId?: string;
457
+ /** @readonly */
458
+ identityType?: WebhookIdentityTypeWithLiterals;
459
+ }
460
+ /** @oneof */
461
+ interface IdentificationDataIdOneOf {
462
+ /**
463
+ * ID of a site visitor that has not logged in to the site.
464
+ * @format GUID
465
+ */
466
+ anonymousVisitorId?: string;
467
+ /**
468
+ * ID of a site visitor that has logged in to the site.
469
+ * @format GUID
470
+ */
471
+ memberId?: string;
472
+ /**
473
+ * ID of a Wix user (site owner, contributor, etc.).
474
+ * @format GUID
475
+ */
476
+ wixUserId?: string;
477
+ /**
478
+ * ID of an app.
479
+ * @format GUID
480
+ */
481
+ appId?: string;
482
+ }
483
+ declare enum WebhookIdentityType {
484
+ UNKNOWN = "UNKNOWN",
485
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
486
+ MEMBER = "MEMBER",
487
+ WIX_USER = "WIX_USER",
488
+ APP = "APP"
489
+ }
490
+ /** @enumType */
491
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
492
+ /** @docsIgnore */
493
+ type BulkUpdateDisputeHistoryRecordTagsApplicationErrors = {
494
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
495
+ description?: string;
496
+ data?: Record<string, any>;
497
+ };
498
+ /** @docsIgnore */
499
+ type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors = {
500
+ code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
501
+ description?: string;
502
+ data?: Record<string, any>;
503
+ };
504
+ /**
505
+ * Retrieves a dispute history record by ID.
506
+ * @param disputeHistoryRecordId - ID of the dispute history record to retrieve.
507
+ * @public
508
+ * @documentationMaturity preview
509
+ * @requiredField disputeHistoryRecordId
510
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
511
+ * @returns The requested dispute history record.
512
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
513
+ */
514
+ declare function getDisputeHistoryRecord(disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, `_id` | `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.privateTags.tagIds`, 4>>;
515
+ /**
516
+ * Retrieves dispute history records with support for filtering, cursor-based paging, and sorting.
517
+ *
518
+ * Use this method to get the complete audit trail for specific disputes or to query records across multiple disputes based on various criteria.
519
+ * @public
520
+ * @documentationMaturity preview
521
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
522
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
523
+ */
524
+ declare function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder;
525
+ interface QueryCursorResult {
526
+ cursors: Cursors;
527
+ hasNext: () => boolean;
528
+ hasPrev: () => boolean;
529
+ length: number;
530
+ pageSize: number;
531
+ }
532
+ interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
533
+ items: DisputeHistoryRecord[];
534
+ query: DisputeHistoryRecordsQueryBuilder;
535
+ next: () => Promise<DisputeHistoryRecordsQueryResult>;
536
+ prev: () => Promise<DisputeHistoryRecordsQueryResult>;
537
+ }
538
+ interface DisputeHistoryRecordsQueryBuilder {
539
+ /** @param propertyName - Property whose value is compared with `value`.
540
+ * @param value - Value to compare against.
541
+ * @documentationMaturity preview
542
+ */
543
+ eq: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
544
+ /** @param propertyName - Property whose value is compared with `value`.
545
+ * @param value - Value to compare against.
546
+ * @documentationMaturity preview
547
+ */
548
+ ne: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
549
+ /** @param propertyName - Property whose value is compared with `value`.
550
+ * @param value - Value to compare against.
551
+ * @documentationMaturity preview
552
+ */
553
+ ge: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
554
+ /** @param propertyName - Property whose value is compared with `value`.
555
+ * @param value - Value to compare against.
556
+ * @documentationMaturity preview
557
+ */
558
+ gt: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
559
+ /** @param propertyName - Property whose value is compared with `value`.
560
+ * @param value - Value to compare against.
561
+ * @documentationMaturity preview
562
+ */
563
+ le: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
564
+ /** @param propertyName - Property whose value is compared with `value`.
565
+ * @param value - Value to compare against.
566
+ * @documentationMaturity preview
567
+ */
568
+ lt: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
569
+ /** @param propertyName - Property whose value is compared with `string`.
570
+ * @param string - String to compare against. Case-insensitive.
571
+ * @documentationMaturity preview
572
+ */
573
+ startsWith: (propertyName: 'disputeId', value: string) => DisputeHistoryRecordsQueryBuilder;
574
+ /** @param propertyName - Property whose value is compared with `values`.
575
+ * @param values - List of values to compare against.
576
+ * @documentationMaturity preview
577
+ */
578
+ hasSome: (propertyName: 'disputeId', value: any[]) => DisputeHistoryRecordsQueryBuilder;
579
+ /** @documentationMaturity preview */
580
+ in: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
581
+ /** @documentationMaturity preview */
582
+ exists: (propertyName: 'disputeId', value: boolean) => DisputeHistoryRecordsQueryBuilder;
583
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
584
+ * @documentationMaturity preview
585
+ */
586
+ ascending: (...propertyNames: Array<'disputeId'>) => DisputeHistoryRecordsQueryBuilder;
587
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
588
+ * @documentationMaturity preview
589
+ */
590
+ descending: (...propertyNames: Array<'disputeId'>) => DisputeHistoryRecordsQueryBuilder;
591
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
592
+ * @documentationMaturity preview
593
+ */
594
+ limit: (limit: number) => DisputeHistoryRecordsQueryBuilder;
595
+ /** @param cursor - A pointer to specific record
596
+ * @documentationMaturity preview
597
+ */
598
+ skipTo: (cursor: string) => DisputeHistoryRecordsQueryBuilder;
599
+ /** @documentationMaturity preview */
600
+ find: () => Promise<DisputeHistoryRecordsQueryResult>;
601
+ }
602
+ /**
603
+ * Synchronously updates tags on multiple dispute history records by ID.
604
+ *
605
+ * Use this method when you need immediate confirmation of tag updates for a specific set of records.
606
+ * Limited to 100 records per request. If a tag appears in both assign and unassign lists, it will be assigned.
607
+ * @param ids - List of dispute history record IDs whose tags will be updated.
608
+ *
609
+ * Limited to 100 IDs per request.
610
+ * @public
611
+ * @documentationMaturity preview
612
+ * @requiredField ids
613
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
614
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
615
+ */
616
+ declare function bulkUpdateDisputeHistoryRecordTags(ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsResponse, `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> & {
617
+ __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;
618
+ }>;
619
+ interface BulkUpdateDisputeHistoryRecordTagsOptions {
620
+ /** Tags to assign to the dispute history records. */
621
+ assignTags?: Tags;
622
+ /** Tags to unassign from the dispute history records. */
623
+ unassignTags?: Tags;
624
+ }
625
+ /**
626
+ * Asynchronously updates tags on multiple dispute history records using a filter.
627
+ *
628
+ * Use this method for bulk operations on large sets of records. An empty filter will update all dispute history records.
629
+ * Returns a job ID for tracking the operation status. If a tag appears in both assign and unassign lists, it will be assigned.
630
+ * @param filter - Filter criteria for selecting dispute history records to update.
631
+ * An empty filter will update all dispute history records.
632
+ * @public
633
+ * @documentationMaturity preview
634
+ * @requiredField filter
635
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
636
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
637
+ */
638
+ declare function bulkUpdateDisputeHistoryRecordTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`, 2> & {
639
+ __applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;
640
+ }>;
641
+ interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
642
+ /** List of Tags to assign */
643
+ assignTags?: Tags;
644
+ /** List of Tags to unAssign */
645
+ unassignTags?: Tags;
646
+ }
647
+
648
+ export { type ActionEvent, type ApplicationError, type BulkActionMetadata, type BulkUpdateDisputeHistoryRecordTagsApplicationErrors, type BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, type BulkUpdateDisputeHistoryRecordTagsByFilterOptions, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse, type BulkUpdateDisputeHistoryRecordTagsOptions, type BulkUpdateDisputeHistoryRecordTagsRequest, type BulkUpdateDisputeHistoryRecordTagsResponse, type BulkUpdateDisputeHistoryRecordTagsResult, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DisputeChannel, type DisputeChannelWithLiterals, type DisputeHistoryRecord, type DisputeHistoryRecordsQueryBuilder, type DisputeHistoryRecordsQueryResult, DisputeStage, type DisputeStageWithLiterals, DisputeStatus, type DisputeStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type GetDisputeHistoryRecordRequest, type GetDisputeHistoryRecordResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type MessageEnvelope, type QueryDisputeHistoryRecordsRequest, type QueryDisputeHistoryRecordsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, type TagList, type Tags, type TagsModified, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };