@wix/auto_sdk_payments_disputes 1.0.17 → 1.0.18
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/src/payments-disputes-v1-dispute-disputes.universal.d.ts → index.d.mts} +67 -66
- package/build/{es/src/payments-disputes-v1-dispute-disputes.universal.d.ts → index.d.ts} +67 -66
- package/build/index.js +591 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +553 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +87 -0
- package/build/internal/index.d.ts +87 -0
- package/build/internal/index.js +591 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +553 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/payments-disputes-v1-dispute-disputes.types.d.ts → internal/meta.d.mts} +75 -251
- package/build/internal/{cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts → meta.d.ts} +75 -251
- package/build/internal/meta.js +366 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +333 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts → payments-disputes-v1-dispute-disputes.universal-CZbP08z7.d.mts} +67 -144
- package/build/internal/{es/src/payments-disputes-v1-dispute-disputes.universal.d.ts → payments-disputes-v1-dispute-disputes.universal-CZbP08z7.d.ts} +67 -144
- package/build/{cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts → meta.d.mts} +75 -251
- package/build/{internal/es/src/payments-disputes-v1-dispute-disputes.types.d.ts → meta.d.ts} +75 -251
- package/build/meta.js +366 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +333 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +0 -2
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js +0 -29
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +0 -22
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js +0 -217
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +0 -27
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +0 -161
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +0 -4
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js +0 -64
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js +0 -94
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +0 -1
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +0 -388
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +0 -2
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js +0 -18
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js.map +0 -1
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +0 -22
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js +0 -207
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js.map +0 -1
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +0 -27
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js +0 -128
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +0 -1
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +0 -4
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js +0 -46
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js.map +0 -1
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js +0 -91
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js.map +0 -1
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js +0 -355
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +0 -18
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js +0 -29
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +0 -22
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js +0 -217
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +0 -27
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +0 -161
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +0 -72
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js +0 -64
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js +0 -94
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +0 -1
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +0 -388
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +0 -18
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js +0 -18
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +0 -22
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js +0 -207
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +0 -27
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js +0 -128
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +0 -72
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js +0 -46
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js +0 -91
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js.map +0 -1
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js +0 -355
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
1
|
/** Dispute. A dispute occurs when an account owner contacts their PSP or bank to contest a payment to you for a number of possible reasons. */
|
|
3
|
-
|
|
2
|
+
interface Dispute {
|
|
4
3
|
/**
|
|
5
4
|
* Dispute ID
|
|
6
5
|
* @format GUID
|
|
@@ -79,7 +78,7 @@ export interface Dispute {
|
|
|
79
78
|
/** Tags */
|
|
80
79
|
tags?: PublicTags;
|
|
81
80
|
}
|
|
82
|
-
|
|
81
|
+
declare enum DisputeStage {
|
|
83
82
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
84
83
|
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
85
84
|
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
@@ -89,8 +88,8 @@ export declare enum DisputeStage {
|
|
|
89
88
|
CHARGEBACK = "CHARGEBACK"
|
|
90
89
|
}
|
|
91
90
|
/** @enumType */
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'NOTIFICATION_OF_FRAUD' | 'RFI' | 'CHARGEBACK';
|
|
92
|
+
declare enum DisputeReason {
|
|
94
93
|
/** Unknown reason */
|
|
95
94
|
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
96
95
|
/** Fraud card */
|
|
@@ -115,8 +114,8 @@ export declare enum DisputeReason {
|
|
|
115
114
|
OTHER = "OTHER"
|
|
116
115
|
}
|
|
117
116
|
/** @enumType */
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
type DisputeReasonWithLiterals = DisputeReason | 'UNKNOWN_DISPUTE_REASON' | 'FRAUD_CARD_PRESENT' | 'FRAUD_CARD_ABSENT' | 'DUPLICATE_PROCESSING' | 'SERVICES_NOT_PROVIDED' | 'CANCELED_RECURRING' | 'NOT_AS_DESCRIBED' | 'COUNTERFEIT' | 'MISREPRESENTATION' | 'CANCELED' | 'OTHER';
|
|
118
|
+
declare enum DisputeStatus {
|
|
120
119
|
/** Unknown status */
|
|
121
120
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
122
121
|
/** Waiting for some merchant action */
|
|
@@ -131,8 +130,8 @@ export declare enum DisputeStatus {
|
|
|
131
130
|
LOST = "LOST"
|
|
132
131
|
}
|
|
133
132
|
/** @enumType */
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST';
|
|
134
|
+
declare enum SellerProtection {
|
|
136
135
|
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
137
136
|
/** Not Eligible */
|
|
138
137
|
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
@@ -142,8 +141,8 @@ export declare enum SellerProtection {
|
|
|
142
141
|
EXTENDED = "EXTENDED"
|
|
143
142
|
}
|
|
144
143
|
/** @enumType */
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
type SellerProtectionWithLiterals = SellerProtection | 'UNKNOWN_SELLER_PROTECTION' | 'NOT_ELIGIBLE' | 'ELIGIBLE' | 'EXTENDED';
|
|
145
|
+
declare enum DisputeChannel {
|
|
147
146
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
148
147
|
/** Internal, the dispute is reviewed by PSP */
|
|
149
148
|
INTERNAL = "INTERNAL",
|
|
@@ -151,8 +150,8 @@ export declare enum DisputeChannel {
|
|
|
151
150
|
EXTERNAL = "EXTERNAL"
|
|
152
151
|
}
|
|
153
152
|
/** @enumType */
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
type DisputeChannelWithLiterals = DisputeChannel | 'UNKNOWN_DISPUTE_CHANNEL' | 'INTERNAL' | 'EXTERNAL';
|
|
154
|
+
interface ExtendedFields {
|
|
156
155
|
/**
|
|
157
156
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
158
157
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -163,11 +162,11 @@ export interface ExtendedFields {
|
|
|
163
162
|
*/
|
|
164
163
|
namespaces?: Record<string, Record<string, any>>;
|
|
165
164
|
}
|
|
166
|
-
|
|
165
|
+
interface PublicTags {
|
|
167
166
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
168
167
|
tags?: TagList;
|
|
169
168
|
}
|
|
170
|
-
|
|
169
|
+
interface TagList {
|
|
171
170
|
/**
|
|
172
171
|
* List of tag IDs
|
|
173
172
|
* @maxSize 100
|
|
@@ -175,22 +174,22 @@ export interface TagList {
|
|
|
175
174
|
*/
|
|
176
175
|
tagIds?: string[];
|
|
177
176
|
}
|
|
178
|
-
|
|
177
|
+
interface GetDisputeRequest {
|
|
179
178
|
/**
|
|
180
179
|
* ID of the Dispute to retrieve.
|
|
181
180
|
* @format GUID
|
|
182
181
|
*/
|
|
183
182
|
disputeId: string;
|
|
184
183
|
}
|
|
185
|
-
|
|
184
|
+
interface GetDisputeResponse {
|
|
186
185
|
/** The requested Dispute. */
|
|
187
186
|
dispute?: Dispute;
|
|
188
187
|
}
|
|
189
|
-
|
|
188
|
+
interface QueryDisputesRequest {
|
|
190
189
|
/** WQL expression. */
|
|
191
190
|
query?: CursorQuery;
|
|
192
191
|
}
|
|
193
|
-
|
|
192
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
194
193
|
/** 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`. */
|
|
195
194
|
cursorPaging?: CursorPaging;
|
|
196
195
|
/**
|
|
@@ -210,11 +209,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
210
209
|
sort?: Sorting[];
|
|
211
210
|
}
|
|
212
211
|
/** @oneof */
|
|
213
|
-
|
|
212
|
+
interface CursorQueryPagingMethodOneOf {
|
|
214
213
|
/** 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`. */
|
|
215
214
|
cursorPaging?: CursorPaging;
|
|
216
215
|
}
|
|
217
|
-
|
|
216
|
+
interface Sorting {
|
|
218
217
|
/**
|
|
219
218
|
* Name of the field to sort by.
|
|
220
219
|
* @maxLength 512
|
|
@@ -223,13 +222,13 @@ export interface Sorting {
|
|
|
223
222
|
/** Sort order. */
|
|
224
223
|
order?: SortOrderWithLiterals;
|
|
225
224
|
}
|
|
226
|
-
|
|
225
|
+
declare enum SortOrder {
|
|
227
226
|
ASC = "ASC",
|
|
228
227
|
DESC = "DESC"
|
|
229
228
|
}
|
|
230
229
|
/** @enumType */
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
231
|
+
interface CursorPaging {
|
|
233
232
|
/**
|
|
234
233
|
* Maximum number of items to return in the results.
|
|
235
234
|
* @max 100
|
|
@@ -244,13 +243,13 @@ export interface CursorPaging {
|
|
|
244
243
|
*/
|
|
245
244
|
cursor?: string | null;
|
|
246
245
|
}
|
|
247
|
-
|
|
246
|
+
interface QueryDisputesResponse {
|
|
248
247
|
/** List of Disputes. */
|
|
249
248
|
disputes?: Dispute[];
|
|
250
249
|
/** Paging metadata */
|
|
251
250
|
pagingMetadata?: CursorPagingMetadata;
|
|
252
251
|
}
|
|
253
|
-
|
|
252
|
+
interface CursorPagingMetadata {
|
|
254
253
|
/** Number of items returned in the response. */
|
|
255
254
|
count?: number | null;
|
|
256
255
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -263,7 +262,7 @@ export interface CursorPagingMetadata {
|
|
|
263
262
|
*/
|
|
264
263
|
hasNext?: boolean | null;
|
|
265
264
|
}
|
|
266
|
-
|
|
265
|
+
interface Cursors {
|
|
267
266
|
/**
|
|
268
267
|
* Cursor string pointing to the next page in the list of results.
|
|
269
268
|
* @maxLength 16000
|
|
@@ -275,27 +274,27 @@ export interface Cursors {
|
|
|
275
274
|
*/
|
|
276
275
|
prev?: string | null;
|
|
277
276
|
}
|
|
278
|
-
|
|
277
|
+
interface GetDisputeActionsRequest {
|
|
279
278
|
/**
|
|
280
279
|
* Dispute ID
|
|
281
280
|
* @format GUID
|
|
282
281
|
*/
|
|
283
282
|
disputeId: string;
|
|
284
283
|
}
|
|
285
|
-
|
|
284
|
+
interface GetDisputeActionsResponse {
|
|
286
285
|
/**
|
|
287
286
|
* Dispute actions
|
|
288
287
|
* @maxSize 20
|
|
289
288
|
*/
|
|
290
289
|
actions?: DisputeAction[];
|
|
291
290
|
}
|
|
292
|
-
|
|
291
|
+
interface DisputeAction {
|
|
293
292
|
/** Dispute Action type */
|
|
294
293
|
type?: DisputeActionTypeWithLiterals;
|
|
295
294
|
/** The latest date and time until which the action can be performed */
|
|
296
295
|
dueDate?: Date | null;
|
|
297
296
|
}
|
|
298
|
-
|
|
297
|
+
declare enum DisputeActionType {
|
|
299
298
|
/** Unknown dispute status */
|
|
300
299
|
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
301
300
|
/** Accept dispute */
|
|
@@ -304,30 +303,30 @@ export declare enum DisputeActionType {
|
|
|
304
303
|
SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
|
|
305
304
|
}
|
|
306
305
|
/** @enumType */
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
type DisputeActionTypeWithLiterals = DisputeActionType | 'UNKNOWN_DISPUTE_ACTION' | 'ACCEPT' | 'SUBMIT_EVIDENCE';
|
|
307
|
+
interface AcceptDisputeRequest {
|
|
309
308
|
/**
|
|
310
309
|
* Dispute ID
|
|
311
310
|
* @format GUID
|
|
312
311
|
*/
|
|
313
312
|
disputeId: string;
|
|
314
313
|
}
|
|
315
|
-
|
|
314
|
+
interface AcceptDisputeResponse {
|
|
316
315
|
/** Dispute */
|
|
317
316
|
dispute?: Dispute;
|
|
318
317
|
}
|
|
319
|
-
|
|
318
|
+
interface SubmitDisputeEvidenceRequest {
|
|
320
319
|
/**
|
|
321
320
|
* Dispute ID
|
|
322
321
|
* @format GUID
|
|
323
322
|
*/
|
|
324
323
|
disputeId: string;
|
|
325
324
|
}
|
|
326
|
-
|
|
325
|
+
interface SubmitDisputeEvidenceResponse {
|
|
327
326
|
/** Dispute */
|
|
328
327
|
dispute?: Dispute;
|
|
329
328
|
}
|
|
330
|
-
|
|
329
|
+
interface CreateDisputeManuallyRequest {
|
|
331
330
|
/**
|
|
332
331
|
* Dispute Id
|
|
333
332
|
* @format GUID
|
|
@@ -382,9 +381,9 @@ export interface CreateDisputeManuallyRequest {
|
|
|
382
381
|
/** Is charge refundable */
|
|
383
382
|
chargeRefundable?: boolean | null;
|
|
384
383
|
}
|
|
385
|
-
|
|
384
|
+
interface CreateDisputeManuallyResponse {
|
|
386
385
|
}
|
|
387
|
-
|
|
386
|
+
interface ChangeDisputeStatusManuallyRequest {
|
|
388
387
|
/**
|
|
389
388
|
* Dispute ID
|
|
390
389
|
* @format GUID
|
|
@@ -395,9 +394,9 @@ export interface ChangeDisputeStatusManuallyRequest {
|
|
|
395
394
|
/** Dispute status based on provider dispute status */
|
|
396
395
|
status?: DisputeStatusWithLiterals;
|
|
397
396
|
}
|
|
398
|
-
|
|
397
|
+
interface ChangeDisputeStatusManuallyResponse {
|
|
399
398
|
}
|
|
400
|
-
|
|
399
|
+
interface BulkUpdateDisputeTagsRequest {
|
|
401
400
|
/**
|
|
402
401
|
* List of NileProtoTagsEntities that their tags will update.
|
|
403
402
|
* @minSize 1
|
|
@@ -432,11 +431,11 @@ export interface BulkUpdateDisputeTagsRequest {
|
|
|
432
431
|
* }
|
|
433
432
|
* }
|
|
434
433
|
*/
|
|
435
|
-
|
|
434
|
+
interface Tags {
|
|
436
435
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
437
436
|
tags?: TagsTagList;
|
|
438
437
|
}
|
|
439
|
-
|
|
438
|
+
interface TagsTagList {
|
|
440
439
|
/**
|
|
441
440
|
* List of tag IDs
|
|
442
441
|
* @maxSize 100
|
|
@@ -444,7 +443,7 @@ export interface TagsTagList {
|
|
|
444
443
|
*/
|
|
445
444
|
tagIds?: string[];
|
|
446
445
|
}
|
|
447
|
-
|
|
446
|
+
interface BulkUpdateDisputeTagsResponse {
|
|
448
447
|
/**
|
|
449
448
|
* Results
|
|
450
449
|
* @minSize 1
|
|
@@ -454,7 +453,7 @@ export interface BulkUpdateDisputeTagsResponse {
|
|
|
454
453
|
/** Metadata regarding the bulk update operation */
|
|
455
454
|
bulkActionMetadata?: BulkActionMetadata;
|
|
456
455
|
}
|
|
457
|
-
|
|
456
|
+
interface ItemMetadata {
|
|
458
457
|
/**
|
|
459
458
|
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
460
459
|
* @format GUID
|
|
@@ -467,7 +466,7 @@ export interface ItemMetadata {
|
|
|
467
466
|
/** Details about the error in case of failure. */
|
|
468
467
|
error?: ApplicationError;
|
|
469
468
|
}
|
|
470
|
-
|
|
469
|
+
interface ApplicationError {
|
|
471
470
|
/** Error code. */
|
|
472
471
|
code?: string;
|
|
473
472
|
/** Description of the error. */
|
|
@@ -475,11 +474,11 @@ export interface ApplicationError {
|
|
|
475
474
|
/** Data related to the error. */
|
|
476
475
|
data?: Record<string, any> | null;
|
|
477
476
|
}
|
|
478
|
-
|
|
477
|
+
interface BulkUpdateDisputeTagsResult {
|
|
479
478
|
/** Metadata regarding the specific single update operation */
|
|
480
479
|
itemMetadata?: ItemMetadata;
|
|
481
480
|
}
|
|
482
|
-
|
|
481
|
+
interface BulkActionMetadata {
|
|
483
482
|
/** Number of items that were successfully processed. */
|
|
484
483
|
totalSuccesses?: number;
|
|
485
484
|
/** Number of items that couldn't be processed. */
|
|
@@ -487,7 +486,7 @@ export interface BulkActionMetadata {
|
|
|
487
486
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
488
487
|
undetailedFailures?: number;
|
|
489
488
|
}
|
|
490
|
-
|
|
489
|
+
interface BulkUpdateDisputeTagsByFilterRequest {
|
|
491
490
|
/** Filter */
|
|
492
491
|
filter: Record<string, any> | null;
|
|
493
492
|
/** List of Tags to assign */
|
|
@@ -495,14 +494,14 @@ export interface BulkUpdateDisputeTagsByFilterRequest {
|
|
|
495
494
|
/** List of Tags to unAssign */
|
|
496
495
|
unassignTags?: Tags;
|
|
497
496
|
}
|
|
498
|
-
|
|
497
|
+
interface BulkUpdateDisputeTagsByFilterResponse {
|
|
499
498
|
/**
|
|
500
499
|
* Job ID
|
|
501
500
|
* @format GUID
|
|
502
501
|
*/
|
|
503
502
|
jobId?: string;
|
|
504
503
|
}
|
|
505
|
-
|
|
504
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
506
505
|
createdEvent?: EntityCreatedEvent;
|
|
507
506
|
updatedEvent?: EntityUpdatedEvent;
|
|
508
507
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -537,19 +536,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
537
536
|
entityEventSequence?: string | null;
|
|
538
537
|
}
|
|
539
538
|
/** @oneof */
|
|
540
|
-
|
|
539
|
+
interface DomainEventBodyOneOf {
|
|
541
540
|
createdEvent?: EntityCreatedEvent;
|
|
542
541
|
updatedEvent?: EntityUpdatedEvent;
|
|
543
542
|
deletedEvent?: EntityDeletedEvent;
|
|
544
543
|
actionEvent?: ActionEvent;
|
|
545
544
|
}
|
|
546
|
-
|
|
545
|
+
interface EntityCreatedEvent {
|
|
547
546
|
entity?: string;
|
|
548
547
|
}
|
|
549
|
-
|
|
548
|
+
interface RestoreInfo {
|
|
550
549
|
deletedDate?: Date | null;
|
|
551
550
|
}
|
|
552
|
-
|
|
551
|
+
interface EntityUpdatedEvent {
|
|
553
552
|
/**
|
|
554
553
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
555
554
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -557,14 +556,14 @@ export interface EntityUpdatedEvent {
|
|
|
557
556
|
*/
|
|
558
557
|
currentEntity?: string;
|
|
559
558
|
}
|
|
560
|
-
|
|
559
|
+
interface EntityDeletedEvent {
|
|
561
560
|
/** Entity that was deleted. */
|
|
562
561
|
deletedEntity?: string | null;
|
|
563
562
|
}
|
|
564
|
-
|
|
563
|
+
interface ActionEvent {
|
|
565
564
|
body?: string;
|
|
566
565
|
}
|
|
567
|
-
|
|
566
|
+
interface MessageEnvelope {
|
|
568
567
|
/**
|
|
569
568
|
* App instance ID.
|
|
570
569
|
* @format GUID
|
|
@@ -580,7 +579,7 @@ export interface MessageEnvelope {
|
|
|
580
579
|
/** Stringify payload. */
|
|
581
580
|
data?: string;
|
|
582
581
|
}
|
|
583
|
-
|
|
582
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
584
583
|
/**
|
|
585
584
|
* ID of a site visitor that has not logged in to the site.
|
|
586
585
|
* @format GUID
|
|
@@ -605,7 +604,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
605
604
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
606
605
|
}
|
|
607
606
|
/** @oneof */
|
|
608
|
-
|
|
607
|
+
interface IdentificationDataIdOneOf {
|
|
609
608
|
/**
|
|
610
609
|
* ID of a site visitor that has not logged in to the site.
|
|
611
610
|
* @format GUID
|
|
@@ -627,7 +626,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
627
626
|
*/
|
|
628
627
|
appId?: string;
|
|
629
628
|
}
|
|
630
|
-
|
|
629
|
+
declare enum WebhookIdentityType {
|
|
631
630
|
UNKNOWN = "UNKNOWN",
|
|
632
631
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
633
632
|
MEMBER = "MEMBER",
|
|
@@ -635,27 +634,7 @@ export declare enum WebhookIdentityType {
|
|
|
635
634
|
APP = "APP"
|
|
636
635
|
}
|
|
637
636
|
/** @enumType */
|
|
638
|
-
|
|
639
|
-
type DisputeNonNullablePaths = `_id` | `chargeId` | `providerDisputeId` | `stage` | `reason` | `status` | `sellerProtection` | `channel` | `tags.tags.tagIds`;
|
|
640
|
-
/**
|
|
641
|
-
* Get Dispute by ID
|
|
642
|
-
* @param disputeId - ID of the Dispute to retrieve.
|
|
643
|
-
* @internal
|
|
644
|
-
* @documentationMaturity preview
|
|
645
|
-
* @requiredField disputeId
|
|
646
|
-
* @permissionId PAYMENTS.DISPUTE_READ
|
|
647
|
-
* @returns The requested Dispute.
|
|
648
|
-
* @fqn wix.payments.disputes.v1.DisputeService.GetDispute
|
|
649
|
-
*/
|
|
650
|
-
export declare function getDispute(disputeId: string): Promise<NonNullablePaths<Dispute, DisputeNonNullablePaths>>;
|
|
651
|
-
/**
|
|
652
|
-
* Retrieves a list of Disputes
|
|
653
|
-
* @internal
|
|
654
|
-
* @documentationMaturity preview
|
|
655
|
-
* @permissionId PAYMENTS.DISPUTE_READ
|
|
656
|
-
* @fqn wix.payments.disputes.v1.DisputeService.QueryDisputes
|
|
657
|
-
*/
|
|
658
|
-
export declare function queryDisputes(): DisputesQueryBuilder;
|
|
637
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
659
638
|
interface QueryCursorResult {
|
|
660
639
|
cursors: Cursors;
|
|
661
640
|
hasNext: () => boolean;
|
|
@@ -663,13 +642,13 @@ interface QueryCursorResult {
|
|
|
663
642
|
length: number;
|
|
664
643
|
pageSize: number;
|
|
665
644
|
}
|
|
666
|
-
|
|
645
|
+
interface DisputesQueryResult extends QueryCursorResult {
|
|
667
646
|
items: Dispute[];
|
|
668
647
|
query: DisputesQueryBuilder;
|
|
669
648
|
next: () => Promise<DisputesQueryResult>;
|
|
670
649
|
prev: () => Promise<DisputesQueryResult>;
|
|
671
650
|
}
|
|
672
|
-
|
|
651
|
+
interface DisputesQueryBuilder {
|
|
673
652
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
674
653
|
* @param value - Value to compare against.
|
|
675
654
|
* @documentationMaturity preview
|
|
@@ -733,73 +712,17 @@ export interface DisputesQueryBuilder {
|
|
|
733
712
|
/** @documentationMaturity preview */
|
|
734
713
|
find: () => Promise<DisputesQueryResult>;
|
|
735
714
|
}
|
|
736
|
-
|
|
737
|
-
* Get Dispute Actions
|
|
738
|
-
* @param disputeId - Dispute ID
|
|
739
|
-
* @internal
|
|
740
|
-
* @documentationMaturity preview
|
|
741
|
-
* @requiredField disputeId
|
|
742
|
-
* @permissionId PAYMENTS.DISPUTE_GET_ACTIONS
|
|
743
|
-
* @fqn wix.payments.disputes.v1.DisputeService.GetDisputeActions
|
|
744
|
-
*/
|
|
745
|
-
export declare function getDisputeActions(disputeId: string): Promise<NonNullablePaths<GetDisputeActionsResponse, `actions` | `actions.${number}.type`>>;
|
|
746
|
-
/**
|
|
747
|
-
* Dispute Accept
|
|
748
|
-
* @param disputeId - Dispute ID
|
|
749
|
-
* @internal
|
|
750
|
-
* @documentationMaturity preview
|
|
751
|
-
* @requiredField disputeId
|
|
752
|
-
* @permissionId PAYMENTS.DISPUTE_ACCEPT
|
|
753
|
-
* @fqn wix.payments.disputes.v1.DisputeService.AcceptDispute
|
|
754
|
-
*/
|
|
755
|
-
export declare function acceptDispute(disputeId: string): Promise<NonNullablePaths<AcceptDisputeResponse, {
|
|
756
|
-
[P in DisputeNonNullablePaths]: `dispute.${P}`;
|
|
757
|
-
}[DisputeNonNullablePaths]>>;
|
|
758
|
-
/**
|
|
759
|
-
* Dispute Submit Evidence
|
|
760
|
-
* @param disputeId - Dispute ID
|
|
761
|
-
* @internal
|
|
762
|
-
* @documentationMaturity preview
|
|
763
|
-
* @requiredField disputeId
|
|
764
|
-
* @permissionId PAYMENTS.DISPUTE_SUBMIT_EVIDENCE
|
|
765
|
-
* @fqn wix.payments.disputes.v1.DisputeService.SubmitDisputeEvidence
|
|
766
|
-
*/
|
|
767
|
-
export declare function submitDisputeEvidence(disputeId: string): Promise<NonNullablePaths<SubmitDisputeEvidenceResponse, {
|
|
768
|
-
[P in DisputeNonNullablePaths]: `dispute.${P}`;
|
|
769
|
-
}[DisputeNonNullablePaths]>>;
|
|
770
|
-
/**
|
|
771
|
-
* Synchronously update tags on multiple Disputes, by list of Disputes ids
|
|
772
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
773
|
-
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
774
|
-
* @internal
|
|
775
|
-
* @documentationMaturity preview
|
|
776
|
-
* @requiredField ids
|
|
777
|
-
* @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS
|
|
778
|
-
* @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTags
|
|
779
|
-
*/
|
|
780
|
-
export declare function bulkUpdateDisputeTags(ids: string[], options?: BulkUpdateDisputeTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsResponse, `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`>>;
|
|
781
|
-
export interface BulkUpdateDisputeTagsOptions {
|
|
715
|
+
interface BulkUpdateDisputeTagsOptions {
|
|
782
716
|
/** List of Tags to assign */
|
|
783
717
|
assignTags?: Tags;
|
|
784
718
|
/** List of Tags to unAssign */
|
|
785
719
|
unassignTags?: Tags;
|
|
786
720
|
}
|
|
787
|
-
|
|
788
|
-
* Asynchronously update tags on multiple Disputes, by provided filter
|
|
789
|
-
* An empty filter will update all Disputes
|
|
790
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
791
|
-
* @param filter - Filter
|
|
792
|
-
* @internal
|
|
793
|
-
* @documentationMaturity preview
|
|
794
|
-
* @requiredField filter
|
|
795
|
-
* @permissionId PAYMENTS.DISPUTE_UPDATE_TAGS
|
|
796
|
-
* @fqn wix.payments.disputes.v1.DisputeService.BulkUpdateDisputeTagsByFilter
|
|
797
|
-
*/
|
|
798
|
-
export declare function bulkUpdateDisputeTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeTagsByFilterResponse, `jobId`>>;
|
|
799
|
-
export interface BulkUpdateDisputeTagsByFilterOptions {
|
|
721
|
+
interface BulkUpdateDisputeTagsByFilterOptions {
|
|
800
722
|
/** List of Tags to assign */
|
|
801
723
|
assignTags?: Tags;
|
|
802
724
|
/** List of Tags to unAssign */
|
|
803
725
|
unassignTags?: Tags;
|
|
804
726
|
}
|
|
805
|
-
|
|
727
|
+
|
|
728
|
+
export { type MessageEnvelope as $, type AcceptDisputeResponse as A, type BulkUpdateDisputeTagsOptions as B, type CursorQuery as C, type Dispute as D, type ExtendedFields as E, type ChangeDisputeStatusManuallyResponse as F, type GetDisputeActionsResponse as G, type BulkUpdateDisputeTagsRequest as H, type Tags as I, type TagsTagList as J, type ItemMetadata as K, type ApplicationError as L, type BulkUpdateDisputeTagsResult as M, type BulkActionMetadata as N, type BulkUpdateDisputeTagsByFilterRequest as O, type PublicTags as P, type QueryDisputesRequest as Q, type DomainEvent as R, type SubmitDisputeEvidenceResponse as S, type TagList as T, type DomainEventBodyOneOf as U, type EntityCreatedEvent as V, WebhookIdentityType as W, type RestoreInfo as X, type EntityUpdatedEvent as Y, type EntityDeletedEvent as Z, type ActionEvent as _, type DisputesQueryBuilder as a, type IdentificationData as a0, type IdentificationDataIdOneOf as a1, type DisputesQueryResult as a2, type BulkUpdateDisputeTagsResponse as b, type BulkUpdateDisputeTagsByFilterOptions as c, type BulkUpdateDisputeTagsByFilterResponse as d, DisputeStage as e, DisputeReason as f, DisputeStatus as g, SellerProtection as h, DisputeChannel as i, SortOrder as j, DisputeActionType as k, type GetDisputeRequest as l, type GetDisputeResponse as m, type CursorQueryPagingMethodOneOf as n, type Sorting as o, type CursorPaging as p, type QueryDisputesResponse as q, type CursorPagingMetadata as r, type Cursors as s, type GetDisputeActionsRequest as t, type DisputeAction as u, type AcceptDisputeRequest as v, type SubmitDisputeEvidenceRequest as w, type CreateDisputeManuallyRequest as x, type CreateDisputeManuallyResponse as y, type ChangeDisputeStatusManuallyRequest as z };
|