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