@wix/auto_sdk_payments_dispute-history-records 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +2 -0
  11. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +19 -0
  12. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
  13. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
  14. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +127 -0
  15. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
  16. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
  17. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +104 -0
  18. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
  19. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +4 -0
  20. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +39 -0
  21. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
  22. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
  23. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +42 -0
  24. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
  25. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +464 -0
  26. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +236 -0
  27. package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +2 -0
  39. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +12 -0
  40. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
  41. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
  42. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +120 -0
  43. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
  44. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
  45. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +74 -0
  46. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
  47. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +4 -0
  48. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +28 -0
  49. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
  50. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
  51. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +39 -0
  52. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
  53. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +464 -0
  54. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +206 -0
  55. package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +12 -0
  66. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +19 -0
  67. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
  68. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
  69. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +127 -0
  70. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
  71. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
  72. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +104 -0
  73. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
  74. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +45 -0
  75. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +39 -0
  76. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
  77. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
  78. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +42 -0
  79. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
  80. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +506 -0
  81. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +236 -0
  82. package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +12 -0
  93. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +12 -0
  94. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
  95. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
  96. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +120 -0
  97. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
  98. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
  99. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +74 -0
  100. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
  101. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +45 -0
  102. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +28 -0
  103. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
  104. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
  105. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +39 -0
  106. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
  107. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +506 -0
  108. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +206 -0
  109. package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,506 @@
1
+ /** A DisputeHistoryRecord */
2
+ export interface DisputeHistoryRecord {
3
+ /**
4
+ * DisputeHistoryRecord ID.
5
+ * @readonly
6
+ */
7
+ _id?: string;
8
+ /**
9
+ * Revision number
10
+ * @readonly
11
+ */
12
+ revision?: string | null;
13
+ /**
14
+ * Date and time the DisputeHistoryRecord was created.
15
+ * @readonly
16
+ */
17
+ _createdDate?: Date | null;
18
+ /**
19
+ * Date and time the DisputeHistoryRecord was last updated.
20
+ * @readonly
21
+ */
22
+ _updatedDate?: Date | null;
23
+ /** Dispute ID */
24
+ disputeId?: string;
25
+ /** Dispute stage (RFI, Chargeback, so on) */
26
+ stage?: DisputeStage;
27
+ /** Dispute Status */
28
+ status?: DisputeStatus;
29
+ /**
30
+ * Due Date
31
+ * @readonly
32
+ */
33
+ dueDate?: Date | null;
34
+ /** Data Extensions */
35
+ extendedFields?: ExtendedFields;
36
+ /** Tags */
37
+ tags?: Tags;
38
+ }
39
+ export declare enum DisputeStage {
40
+ UNKNOWN_DISPUTE_TYPE = "UNKNOWN_DISPUTE_TYPE",
41
+ /** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
42
+ NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
43
+ /** Request for Information / Inquiry */
44
+ RFI = "RFI",
45
+ /** Chargeback */
46
+ CHARGEBACK = "CHARGEBACK"
47
+ }
48
+ export declare enum DisputeStatus {
49
+ /** Unknown status */
50
+ UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
51
+ /** Waiting for some merchant action */
52
+ WAITING_MERCHANT = "WAITING_MERCHANT",
53
+ /** Dispute is under review by PSP (internal channel) or Bank (external channel) */
54
+ UNDER_REVIEW = "UNDER_REVIEW",
55
+ /** Waiting for some buyer action */
56
+ WAITING_BUYER = "WAITING_BUYER",
57
+ /** Dispute won */
58
+ WON = "WON",
59
+ /** Dispute lost */
60
+ LOST = "LOST"
61
+ }
62
+ export interface ExtendedFields {
63
+ /**
64
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
65
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
66
+ *
67
+ * You can only access fields for which you have the appropriate permissions.
68
+ *
69
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
70
+ */
71
+ namespaces?: Record<string, Record<string, any>>;
72
+ }
73
+ /**
74
+ * Common object for tags.
75
+ * Should be use as in this example:
76
+ * message Foo {
77
+ * string id = 1;
78
+ * ...
79
+ * Tags tags = 5
80
+ * }
81
+ *
82
+ * example of taggable entity
83
+ * {
84
+ * id: "123"
85
+ * tags: {
86
+ * tags: {
87
+ * tag_ids:["11","22"]
88
+ * },
89
+ * private_tags: {
90
+ * tag_ids: ["33", "44"]
91
+ * }
92
+ * }
93
+ * }
94
+ */
95
+ export interface Tags {
96
+ /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
97
+ tags?: TagList;
98
+ }
99
+ export interface TagList {
100
+ /** List of tag IDs */
101
+ tagIds?: string[];
102
+ }
103
+ export interface GetDisputeHistoryRecordRequest {
104
+ /** ID of the DisputeHistoryRecord to retrieve. */
105
+ disputeHistoryRecordId: string;
106
+ }
107
+ export interface GetDisputeHistoryRecordResponse {
108
+ /** The requested DisputeHistoryRecord. */
109
+ disputeHistoryRecord?: DisputeHistoryRecord;
110
+ }
111
+ export interface QueryDisputeHistoryRecordsRequest {
112
+ /** WQL expression. */
113
+ query?: CursorQuery;
114
+ }
115
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
116
+ /** 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`. */
117
+ cursorPaging?: CursorPaging;
118
+ /**
119
+ * Filter object in the following format:
120
+ * `"filter" : {
121
+ * "fieldName1": "value1",
122
+ * "fieldName2":{"$operator":"value2"}
123
+ * }`
124
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
125
+ */
126
+ filter?: Record<string, any> | null;
127
+ /**
128
+ * Sort object in the following format:
129
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
130
+ */
131
+ sort?: Sorting[];
132
+ }
133
+ /** @oneof */
134
+ export interface CursorQueryPagingMethodOneOf {
135
+ /** 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`. */
136
+ cursorPaging?: CursorPaging;
137
+ }
138
+ export interface Sorting {
139
+ /** Name of the field to sort by. */
140
+ fieldName?: string;
141
+ /** Sort order. */
142
+ order?: SortOrder;
143
+ }
144
+ export declare enum SortOrder {
145
+ ASC = "ASC",
146
+ DESC = "DESC"
147
+ }
148
+ export interface CursorPaging {
149
+ /** Maximum number of items to return in the results. */
150
+ limit?: number | null;
151
+ /**
152
+ * Pointer to the next or previous page in the list of results.
153
+ *
154
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
155
+ * Not relevant for the first request.
156
+ */
157
+ cursor?: string | null;
158
+ }
159
+ export interface QueryDisputeHistoryRecordsResponse {
160
+ /** List of DisputeHistoryRecords. */
161
+ disputeHistoryRecords?: DisputeHistoryRecord[];
162
+ /** Paging metadata */
163
+ pagingMetadata?: CursorPagingMetadata;
164
+ }
165
+ export interface CursorPagingMetadata {
166
+ /** Number of items returned in the response. */
167
+ count?: number | null;
168
+ /** Cursor strings that point to the next page, previous page, or both. */
169
+ cursors?: Cursors;
170
+ /**
171
+ * Whether there are more pages to retrieve following the current page.
172
+ *
173
+ * + `true`: Another page of results can be retrieved.
174
+ * + `false`: This is the last page.
175
+ */
176
+ hasNext?: boolean | null;
177
+ }
178
+ export interface Cursors {
179
+ /** Cursor string pointing to the next page in the list of results. */
180
+ next?: string | null;
181
+ /** Cursor pointing to the previous page in the list of results. */
182
+ prev?: string | null;
183
+ }
184
+ export interface DomainEvent extends DomainEventBodyOneOf {
185
+ createdEvent?: EntityCreatedEvent;
186
+ updatedEvent?: EntityUpdatedEvent;
187
+ deletedEvent?: EntityDeletedEvent;
188
+ actionEvent?: ActionEvent;
189
+ /**
190
+ * Unique event ID.
191
+ * Allows clients to ignore duplicate webhooks.
192
+ */
193
+ _id?: string;
194
+ /**
195
+ * Assumes actions are also always typed to an entity_type
196
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
197
+ */
198
+ entityFqdn?: string;
199
+ /**
200
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
201
+ * This is although the created/updated/deleted notion is duplication of the oneof types
202
+ * Example: created/updated/deleted/started/completed/email_opened
203
+ */
204
+ slug?: string;
205
+ /** ID of the entity associated with the event. */
206
+ entityId?: string;
207
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
208
+ eventTime?: Date | null;
209
+ /**
210
+ * Whether the event was triggered as a result of a privacy regulation application
211
+ * (for example, GDPR).
212
+ */
213
+ triggeredByAnonymizeRequest?: boolean | null;
214
+ /** If present, indicates the action that triggered the event. */
215
+ originatedFrom?: string | null;
216
+ /**
217
+ * A sequence number defining the order of updates to the underlying entity.
218
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
219
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
220
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
221
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
222
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
223
+ */
224
+ entityEventSequence?: string | null;
225
+ }
226
+ /** @oneof */
227
+ export interface DomainEventBodyOneOf {
228
+ createdEvent?: EntityCreatedEvent;
229
+ updatedEvent?: EntityUpdatedEvent;
230
+ deletedEvent?: EntityDeletedEvent;
231
+ actionEvent?: ActionEvent;
232
+ }
233
+ export interface EntityCreatedEvent {
234
+ entity?: string;
235
+ }
236
+ export interface RestoreInfo {
237
+ deletedDate?: Date | null;
238
+ }
239
+ export interface EntityUpdatedEvent {
240
+ /**
241
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
242
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
243
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
244
+ */
245
+ currentEntity?: string;
246
+ }
247
+ export interface EntityDeletedEvent {
248
+ /** Entity that was deleted */
249
+ deletedEntity?: string | null;
250
+ }
251
+ export interface ActionEvent {
252
+ body?: string;
253
+ }
254
+ export interface Empty {
255
+ }
256
+ export interface BulkUpdateDisputeHistoryRecordTagsRequest {
257
+ /** List of NileProtoTagsEntities that their tags will update. */
258
+ ids: string[];
259
+ /** List of Tags to assign */
260
+ assignTags?: Tags;
261
+ /** List of Tags to unAssign */
262
+ unassignTags?: Tags;
263
+ }
264
+ export interface BulkUpdateDisputeHistoryRecordTagsResponse {
265
+ /** Results */
266
+ results?: BulkUpdateDisputeHistoryRecordTagsResult[];
267
+ /** Metadata regarding the bulk update operation */
268
+ bulkActionMetadata?: BulkActionMetadata;
269
+ }
270
+ export interface ItemMetadata {
271
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
272
+ _id?: string | null;
273
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
274
+ originalIndex?: number;
275
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
276
+ success?: boolean;
277
+ /** Details about the error in case of failure. */
278
+ error?: ApplicationError;
279
+ }
280
+ export interface ApplicationError {
281
+ /** Error code. */
282
+ code?: string;
283
+ /** Description of the error. */
284
+ description?: string;
285
+ /** Data related to the error. */
286
+ data?: Record<string, any> | null;
287
+ }
288
+ export interface BulkUpdateDisputeHistoryRecordTagsResult {
289
+ /** Metadata regarding the specific single update operation */
290
+ itemMetadata?: ItemMetadata;
291
+ }
292
+ export interface BulkActionMetadata {
293
+ /** Number of items that were successfully processed. */
294
+ totalSuccesses?: number;
295
+ /** Number of items that couldn't be processed. */
296
+ totalFailures?: number;
297
+ /** Number of failures without details because detailed failure threshold was exceeded. */
298
+ undetailedFailures?: number;
299
+ }
300
+ export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
301
+ /** Filter */
302
+ filter: Record<string, any> | null;
303
+ /** List of Tags to assign */
304
+ assignTags?: Tags;
305
+ /** List of Tags to unAssign */
306
+ unassignTags?: Tags;
307
+ }
308
+ export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
309
+ /** Job ID */
310
+ jobId?: string;
311
+ }
312
+ export interface MessageEnvelope {
313
+ /** App instance ID. */
314
+ instanceId?: string | null;
315
+ /** Event type. */
316
+ eventType?: string;
317
+ /** The identification type and identity data. */
318
+ identity?: IdentificationData;
319
+ /** Stringify payload. */
320
+ data?: string;
321
+ }
322
+ export interface IdentificationData extends IdentificationDataIdOneOf {
323
+ /** ID of a site visitor that has not logged in to the site. */
324
+ anonymousVisitorId?: string;
325
+ /** ID of a site visitor that has logged in to the site. */
326
+ memberId?: string;
327
+ /** ID of a Wix user (site owner, contributor, etc.). */
328
+ wixUserId?: string;
329
+ /** ID of an app. */
330
+ appId?: string;
331
+ /** @readonly */
332
+ identityType?: WebhookIdentityType;
333
+ }
334
+ /** @oneof */
335
+ export interface IdentificationDataIdOneOf {
336
+ /** ID of a site visitor that has not logged in to the site. */
337
+ anonymousVisitorId?: string;
338
+ /** ID of a site visitor that has logged in to the site. */
339
+ memberId?: string;
340
+ /** ID of a Wix user (site owner, contributor, etc.). */
341
+ wixUserId?: string;
342
+ /** ID of an app. */
343
+ appId?: string;
344
+ }
345
+ export declare enum WebhookIdentityType {
346
+ UNKNOWN = "UNKNOWN",
347
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
348
+ MEMBER = "MEMBER",
349
+ WIX_USER = "WIX_USER",
350
+ APP = "APP"
351
+ }
352
+ interface TagListNonNullableFields {
353
+ tagIds: string[];
354
+ }
355
+ interface TagsNonNullableFields {
356
+ tags?: TagListNonNullableFields;
357
+ }
358
+ export interface DisputeHistoryRecordNonNullableFields {
359
+ _id: string;
360
+ disputeId: string;
361
+ stage: DisputeStage;
362
+ status: DisputeStatus;
363
+ tags?: TagsNonNullableFields;
364
+ }
365
+ export interface GetDisputeHistoryRecordResponseNonNullableFields {
366
+ disputeHistoryRecord?: DisputeHistoryRecordNonNullableFields;
367
+ }
368
+ export interface QueryDisputeHistoryRecordsResponseNonNullableFields {
369
+ disputeHistoryRecords: DisputeHistoryRecordNonNullableFields[];
370
+ }
371
+ interface ApplicationErrorNonNullableFields {
372
+ code: string;
373
+ description: string;
374
+ }
375
+ interface ItemMetadataNonNullableFields {
376
+ originalIndex: number;
377
+ success: boolean;
378
+ error?: ApplicationErrorNonNullableFields;
379
+ }
380
+ interface BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields {
381
+ itemMetadata?: ItemMetadataNonNullableFields;
382
+ }
383
+ interface BulkActionMetadataNonNullableFields {
384
+ totalSuccesses: number;
385
+ totalFailures: number;
386
+ undetailedFailures: number;
387
+ }
388
+ export interface BulkUpdateDisputeHistoryRecordTagsResponseNonNullableFields {
389
+ results: BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields[];
390
+ bulkActionMetadata?: BulkActionMetadataNonNullableFields;
391
+ }
392
+ export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponseNonNullableFields {
393
+ jobId: string;
394
+ }
395
+ /**
396
+ * Retrieves a DisputeHistoryRecord.
397
+ * @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.
398
+ * @internal
399
+ * @documentationMaturity preview
400
+ * @requiredField disputeHistoryRecordId
401
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
402
+ * @returns The requested DisputeHistoryRecord.
403
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
404
+ */
405
+ export declare function getDisputeHistoryRecord(disputeHistoryRecordId: string): Promise<DisputeHistoryRecord & DisputeHistoryRecordNonNullableFields>;
406
+ /**
407
+ * Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].
408
+ * @internal
409
+ * @documentationMaturity preview
410
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
411
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
412
+ */
413
+ export declare function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder;
414
+ interface QueryCursorResult {
415
+ cursors: Cursors;
416
+ hasNext: () => boolean;
417
+ hasPrev: () => boolean;
418
+ length: number;
419
+ pageSize: number;
420
+ }
421
+ export interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
422
+ items: DisputeHistoryRecord[];
423
+ query: DisputeHistoryRecordsQueryBuilder;
424
+ next: () => Promise<DisputeHistoryRecordsQueryResult>;
425
+ prev: () => Promise<DisputeHistoryRecordsQueryResult>;
426
+ }
427
+ export interface DisputeHistoryRecordsQueryBuilder {
428
+ /** @param propertyName - Property whose value is compared with `value`.
429
+ * @param value - Value to compare against.
430
+ * @documentationMaturity preview
431
+ */
432
+ eq: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
433
+ /** @param propertyName - Property whose value is compared with `value`.
434
+ * @param value - Value to compare against.
435
+ * @documentationMaturity preview
436
+ */
437
+ ne: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
438
+ /** @param propertyName - Property whose value is compared with `string`.
439
+ * @param string - String to compare against. Case-insensitive.
440
+ * @documentationMaturity preview
441
+ */
442
+ startsWith: (propertyName: 'disputeId', value: string) => DisputeHistoryRecordsQueryBuilder;
443
+ /** @param propertyName - Property whose value is compared with `values`.
444
+ * @param values - List of values to compare against.
445
+ * @documentationMaturity preview
446
+ */
447
+ hasSome: (propertyName: 'disputeId', value: any[]) => DisputeHistoryRecordsQueryBuilder;
448
+ /** @documentationMaturity preview */
449
+ in: (propertyName: 'disputeId', value: any) => DisputeHistoryRecordsQueryBuilder;
450
+ /** @documentationMaturity preview */
451
+ exists: (propertyName: 'disputeId', value: boolean) => DisputeHistoryRecordsQueryBuilder;
452
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
453
+ * @documentationMaturity preview
454
+ */
455
+ ascending: (...propertyNames: Array<'disputeId'>) => DisputeHistoryRecordsQueryBuilder;
456
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
457
+ * @documentationMaturity preview
458
+ */
459
+ descending: (...propertyNames: Array<'disputeId'>) => DisputeHistoryRecordsQueryBuilder;
460
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
461
+ * @documentationMaturity preview
462
+ */
463
+ limit: (limit: number) => DisputeHistoryRecordsQueryBuilder;
464
+ /** @param cursor - A pointer to specific record
465
+ * @documentationMaturity preview
466
+ */
467
+ skipTo: (cursor: string) => DisputeHistoryRecordsQueryBuilder;
468
+ /** @documentationMaturity preview */
469
+ find: () => Promise<DisputeHistoryRecordsQueryResult>;
470
+ }
471
+ /**
472
+ * Synchronously update tags on multiple products, by list of product ids
473
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
474
+ * @param ids - List of NileProtoTagsEntities that their tags will update.
475
+ * @internal
476
+ * @documentationMaturity preview
477
+ * @requiredField ids
478
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
479
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
480
+ */
481
+ export declare function bulkUpdateDisputeHistoryRecordTags(ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions): Promise<BulkUpdateDisputeHistoryRecordTagsResponse & BulkUpdateDisputeHistoryRecordTagsResponseNonNullableFields>;
482
+ export interface BulkUpdateDisputeHistoryRecordTagsOptions {
483
+ /** List of Tags to assign */
484
+ assignTags?: Tags;
485
+ /** List of Tags to unAssign */
486
+ unassignTags?: Tags;
487
+ }
488
+ /**
489
+ * Asynchronously update tags on multiple products, by provided filter
490
+ * An empty filter will update all products
491
+ * A tag that appears both in the list of assign and unassign tags, will be assigned
492
+ * @param filter - Filter
493
+ * @internal
494
+ * @documentationMaturity preview
495
+ * @requiredField filter
496
+ * @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
497
+ * @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
498
+ */
499
+ export declare function bulkUpdateDisputeHistoryRecordTagsByFilter(filter: Record<string, any> | null, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<BulkUpdateDisputeHistoryRecordTagsByFilterResponse & BulkUpdateDisputeHistoryRecordTagsByFilterResponseNonNullableFields>;
500
+ export interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
501
+ /** List of Tags to assign */
502
+ assignTags?: Tags;
503
+ /** List of Tags to unAssign */
504
+ unassignTags?: Tags;
505
+ }
506
+ export {};