@wix/auto_sdk_payments_disputes 1.0.9 → 1.0.11
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/{index.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
- package/build/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +2 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +4 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/{index.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +58 -59
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
- package/build/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js +29 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js +217 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js +161 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js +64 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js +94 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.mts → cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js +386 -0
- package/build/internal/cjs/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.d.ts +18 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js +18 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.context.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.d.ts +22 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js +207 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.http.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.d.ts +27 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js +128 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.meta.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.d.ts +72 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js +46 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.public.js.map +1 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.d.ts +631 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js +91 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.types.js.map +1 -0
- package/build/internal/{payments-disputes-v1-dispute-disputes.universal-T48jckbY.d.ts → es/src/payments-disputes-v1-dispute-disputes.universal.d.ts} +136 -59
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js +353 -0
- package/build/internal/es/src/payments-disputes-v1-dispute-disputes.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -588
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -550
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -87
- package/build/internal/index.d.ts +0 -87
- package/build/internal/index.js +0 -588
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -550
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -449
- package/build/internal/meta.d.ts +0 -449
- package/build/internal/meta.js +0 -366
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -333
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -449
- package/build/meta.d.ts +0 -449
- package/build/meta.js +0 -366
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -333
- package/build/meta.mjs.map +0 -1
package/build/meta.d.ts
DELETED
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import { GetDisputeRequest as GetDisputeRequest$1, GetDisputeResponse as GetDisputeResponse$1, QueryDisputesRequest as QueryDisputesRequest$1, QueryDisputesResponse as QueryDisputesResponse$1, GetDisputeActionsRequest as GetDisputeActionsRequest$1, GetDisputeActionsResponse as GetDisputeActionsResponse$1, AcceptDisputeRequest as AcceptDisputeRequest$1, AcceptDisputeResponse as AcceptDisputeResponse$1, SubmitDisputeEvidenceRequest as SubmitDisputeEvidenceRequest$1, SubmitDisputeEvidenceResponse as SubmitDisputeEvidenceResponse$1, BulkUpdateDisputeTagsRequest as BulkUpdateDisputeTagsRequest$1, BulkUpdateDisputeTagsResponse as BulkUpdateDisputeTagsResponse$1, BulkUpdateDisputeTagsByFilterRequest as BulkUpdateDisputeTagsByFilterRequest$1, BulkUpdateDisputeTagsByFilterResponse as BulkUpdateDisputeTagsByFilterResponse$1 } from './index.js';
|
|
2
|
-
|
|
3
|
-
/** 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. */
|
|
4
|
-
interface Dispute {
|
|
5
|
-
/**
|
|
6
|
-
* Dispute ID
|
|
7
|
-
* @format GUID
|
|
8
|
-
* @immutable
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Charge ID
|
|
13
|
-
* @format GUID
|
|
14
|
-
* @immutable
|
|
15
|
-
*/
|
|
16
|
-
chargeId?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Provider Dispute ID
|
|
19
|
-
* @format GUID
|
|
20
|
-
* @immutable
|
|
21
|
-
*/
|
|
22
|
-
providerDisputeId?: string;
|
|
23
|
-
/** Dispute stage */
|
|
24
|
-
stage?: DisputeStage;
|
|
25
|
-
/** Dispute reason */
|
|
26
|
-
reason?: DisputeReason;
|
|
27
|
-
/**
|
|
28
|
-
* Dispute currency. Should be the same as the charge currency.
|
|
29
|
-
* @immutable
|
|
30
|
-
* @format CURRENCY
|
|
31
|
-
*/
|
|
32
|
-
currencyCode?: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`.
|
|
35
|
-
* @immutable
|
|
36
|
-
* @decimalValue options { gt:0, maxScale:8 }
|
|
37
|
-
*/
|
|
38
|
-
amount?: string | null;
|
|
39
|
-
/** Dispute status based on provider dispute status */
|
|
40
|
-
status?: DisputeStatus;
|
|
41
|
-
/** True if the merchant can do the refund with the opened dispute, false otherwise */
|
|
42
|
-
chargeRefundable?: boolean | null;
|
|
43
|
-
/** Seller protection */
|
|
44
|
-
sellerProtection?: SellerProtection;
|
|
45
|
-
/**
|
|
46
|
-
* Dispute Channel
|
|
47
|
-
* Internal - this dispute is created on provider side
|
|
48
|
-
* External - this dispute is created on bank side
|
|
49
|
-
*/
|
|
50
|
-
channel?: DisputeChannel;
|
|
51
|
-
/** The latest date and time until which the dispute can remain in its current status */
|
|
52
|
-
dueDate?: Date | null;
|
|
53
|
-
/**
|
|
54
|
-
* Network reason code
|
|
55
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=visa
|
|
56
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=mastercard
|
|
57
|
-
* https://docs.stripe.com/disputes/reason-codes-defense-requirements?card-network=amex
|
|
58
|
-
* @minLength 1
|
|
59
|
-
* @maxLength 64
|
|
60
|
-
*/
|
|
61
|
-
networkReasonCode?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
* The dispute created date
|
|
64
|
-
* @readonly
|
|
65
|
-
* @immutable
|
|
66
|
-
*/
|
|
67
|
-
createdDate?: Date | null;
|
|
68
|
-
/**
|
|
69
|
-
* The dispute updated date
|
|
70
|
-
* @readonly
|
|
71
|
-
*/
|
|
72
|
-
updatedDate?: Date | null;
|
|
73
|
-
/**
|
|
74
|
-
* Revision number, which increments by 1 each time the Dispute is updated.
|
|
75
|
-
* @readonly
|
|
76
|
-
*/
|
|
77
|
-
revision?: string | null;
|
|
78
|
-
/** Data Extensions */
|
|
79
|
-
extendedFields?: ExtendedFields;
|
|
80
|
-
/** Tags */
|
|
81
|
-
tags?: PublicTags;
|
|
82
|
-
}
|
|
83
|
-
declare enum DisputeStage {
|
|
84
|
-
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
85
|
-
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
86
|
-
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
87
|
-
/** Request for Information / Inquiry */
|
|
88
|
-
RFI = "RFI",
|
|
89
|
-
/** Chargeback */
|
|
90
|
-
CHARGEBACK = "CHARGEBACK"
|
|
91
|
-
}
|
|
92
|
-
declare enum DisputeReason {
|
|
93
|
-
/** Unknown reason */
|
|
94
|
-
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
95
|
-
/** Fraud card */
|
|
96
|
-
FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
|
|
97
|
-
/** Card absent */
|
|
98
|
-
FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
|
|
99
|
-
/** DUPLICATE */
|
|
100
|
-
DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
|
|
101
|
-
/** Service not provided */
|
|
102
|
-
SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
|
|
103
|
-
/** Canceled Recurring */
|
|
104
|
-
CANCELED_RECURRING = "CANCELED_RECURRING",
|
|
105
|
-
/** Item not as describe */
|
|
106
|
-
NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
|
|
107
|
-
/** Counterfeit */
|
|
108
|
-
COUNTERFEIT = "COUNTERFEIT",
|
|
109
|
-
/** Misrepresentation */
|
|
110
|
-
MISREPRESENTATION = "MISREPRESENTATION",
|
|
111
|
-
/** Canceled */
|
|
112
|
-
CANCELED = "CANCELED",
|
|
113
|
-
/** Other reason */
|
|
114
|
-
OTHER = "OTHER"
|
|
115
|
-
}
|
|
116
|
-
declare enum DisputeStatus {
|
|
117
|
-
/** Unknown status */
|
|
118
|
-
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
119
|
-
/** Waiting for some merchant action */
|
|
120
|
-
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
121
|
-
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
122
|
-
UNDER_REVIEW = "UNDER_REVIEW",
|
|
123
|
-
/** Waiting for some buyer action */
|
|
124
|
-
WAITING_BUYER = "WAITING_BUYER",
|
|
125
|
-
/** Dispute won */
|
|
126
|
-
WON = "WON",
|
|
127
|
-
/** Dispute lost */
|
|
128
|
-
LOST = "LOST"
|
|
129
|
-
}
|
|
130
|
-
declare enum SellerProtection {
|
|
131
|
-
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
132
|
-
/** Not Eligible */
|
|
133
|
-
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
134
|
-
/** Eligible */
|
|
135
|
-
ELIGIBLE = "ELIGIBLE",
|
|
136
|
-
/** Extended seller protection */
|
|
137
|
-
EXTENDED = "EXTENDED"
|
|
138
|
-
}
|
|
139
|
-
declare enum DisputeChannel {
|
|
140
|
-
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
141
|
-
/** Internal, the dispute is reviewed by PSP */
|
|
142
|
-
INTERNAL = "INTERNAL",
|
|
143
|
-
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
144
|
-
EXTERNAL = "EXTERNAL"
|
|
145
|
-
}
|
|
146
|
-
interface ExtendedFields {
|
|
147
|
-
/**
|
|
148
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
149
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
150
|
-
*
|
|
151
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
152
|
-
*
|
|
153
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
154
|
-
*/
|
|
155
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
156
|
-
}
|
|
157
|
-
interface PublicTags {
|
|
158
|
-
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
159
|
-
tags?: TagList;
|
|
160
|
-
}
|
|
161
|
-
interface TagList {
|
|
162
|
-
/**
|
|
163
|
-
* List of tag IDs
|
|
164
|
-
* @maxSize 100
|
|
165
|
-
* @maxLength 5
|
|
166
|
-
*/
|
|
167
|
-
tagIds?: string[];
|
|
168
|
-
}
|
|
169
|
-
interface GetDisputeRequest {
|
|
170
|
-
/**
|
|
171
|
-
* ID of the Dispute to retrieve.
|
|
172
|
-
* @format GUID
|
|
173
|
-
*/
|
|
174
|
-
disputeId: string;
|
|
175
|
-
}
|
|
176
|
-
interface GetDisputeResponse {
|
|
177
|
-
/** The requested Dispute. */
|
|
178
|
-
dispute?: Dispute;
|
|
179
|
-
}
|
|
180
|
-
interface QueryDisputesRequest {
|
|
181
|
-
/** WQL expression. */
|
|
182
|
-
query?: CursorQuery;
|
|
183
|
-
}
|
|
184
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
185
|
-
/** 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`. */
|
|
186
|
-
cursorPaging?: CursorPaging;
|
|
187
|
-
/**
|
|
188
|
-
* Filter object in the following format:
|
|
189
|
-
* `"filter" : {
|
|
190
|
-
* "fieldName1": "value1",
|
|
191
|
-
* "fieldName2":{"$operator":"value2"}
|
|
192
|
-
* }`
|
|
193
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
194
|
-
*/
|
|
195
|
-
filter?: Record<string, any> | null;
|
|
196
|
-
/**
|
|
197
|
-
* Sort object in the following format:
|
|
198
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
199
|
-
* @maxSize 5
|
|
200
|
-
*/
|
|
201
|
-
sort?: Sorting[];
|
|
202
|
-
}
|
|
203
|
-
/** @oneof */
|
|
204
|
-
interface CursorQueryPagingMethodOneOf {
|
|
205
|
-
/** 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`. */
|
|
206
|
-
cursorPaging?: CursorPaging;
|
|
207
|
-
}
|
|
208
|
-
interface Sorting {
|
|
209
|
-
/**
|
|
210
|
-
* Name of the field to sort by.
|
|
211
|
-
* @maxLength 512
|
|
212
|
-
*/
|
|
213
|
-
fieldName?: string;
|
|
214
|
-
/** Sort order. */
|
|
215
|
-
order?: SortOrder;
|
|
216
|
-
}
|
|
217
|
-
declare enum SortOrder {
|
|
218
|
-
ASC = "ASC",
|
|
219
|
-
DESC = "DESC"
|
|
220
|
-
}
|
|
221
|
-
interface CursorPaging {
|
|
222
|
-
/**
|
|
223
|
-
* Maximum number of items to return in the results.
|
|
224
|
-
* @max 100
|
|
225
|
-
*/
|
|
226
|
-
limit?: number | null;
|
|
227
|
-
/**
|
|
228
|
-
* Pointer to the next or previous page in the list of results.
|
|
229
|
-
*
|
|
230
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
231
|
-
* Not relevant for the first request.
|
|
232
|
-
* @maxLength 16000
|
|
233
|
-
*/
|
|
234
|
-
cursor?: string | null;
|
|
235
|
-
}
|
|
236
|
-
interface QueryDisputesResponse {
|
|
237
|
-
/** List of Disputes. */
|
|
238
|
-
disputes?: Dispute[];
|
|
239
|
-
/** Paging metadata */
|
|
240
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
241
|
-
}
|
|
242
|
-
interface CursorPagingMetadata {
|
|
243
|
-
/** Number of items returned in the response. */
|
|
244
|
-
count?: number | null;
|
|
245
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
246
|
-
cursors?: Cursors;
|
|
247
|
-
/**
|
|
248
|
-
* Whether there are more pages to retrieve following the current page.
|
|
249
|
-
*
|
|
250
|
-
* + `true`: Another page of results can be retrieved.
|
|
251
|
-
* + `false`: This is the last page.
|
|
252
|
-
*/
|
|
253
|
-
hasNext?: boolean | null;
|
|
254
|
-
}
|
|
255
|
-
interface Cursors {
|
|
256
|
-
/**
|
|
257
|
-
* Cursor string pointing to the next page in the list of results.
|
|
258
|
-
* @maxLength 16000
|
|
259
|
-
*/
|
|
260
|
-
next?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* Cursor pointing to the previous page in the list of results.
|
|
263
|
-
* @maxLength 16000
|
|
264
|
-
*/
|
|
265
|
-
prev?: string | null;
|
|
266
|
-
}
|
|
267
|
-
interface GetDisputeActionsRequest {
|
|
268
|
-
/**
|
|
269
|
-
* Dispute ID
|
|
270
|
-
* @format GUID
|
|
271
|
-
*/
|
|
272
|
-
disputeId: string;
|
|
273
|
-
}
|
|
274
|
-
interface GetDisputeActionsResponse {
|
|
275
|
-
/**
|
|
276
|
-
* Dispute actions
|
|
277
|
-
* @maxSize 20
|
|
278
|
-
*/
|
|
279
|
-
actions?: DisputeAction[];
|
|
280
|
-
}
|
|
281
|
-
interface DisputeAction {
|
|
282
|
-
/** Dispute Action type */
|
|
283
|
-
type?: DisputeActionType;
|
|
284
|
-
/** The latest date and time until which the action can be performed */
|
|
285
|
-
dueDate?: Date | null;
|
|
286
|
-
}
|
|
287
|
-
declare enum DisputeActionType {
|
|
288
|
-
/** Unknown dispute status */
|
|
289
|
-
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
290
|
-
/** Accept dispute */
|
|
291
|
-
ACCEPT = "ACCEPT",
|
|
292
|
-
/** Submit evidence */
|
|
293
|
-
SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
|
|
294
|
-
}
|
|
295
|
-
interface AcceptDisputeRequest {
|
|
296
|
-
/**
|
|
297
|
-
* Dispute ID
|
|
298
|
-
* @format GUID
|
|
299
|
-
*/
|
|
300
|
-
disputeId: string;
|
|
301
|
-
}
|
|
302
|
-
interface AcceptDisputeResponse {
|
|
303
|
-
/** Dispute */
|
|
304
|
-
dispute?: Dispute;
|
|
305
|
-
}
|
|
306
|
-
interface SubmitDisputeEvidenceRequest {
|
|
307
|
-
/**
|
|
308
|
-
* Dispute ID
|
|
309
|
-
* @format GUID
|
|
310
|
-
*/
|
|
311
|
-
disputeId: string;
|
|
312
|
-
}
|
|
313
|
-
interface SubmitDisputeEvidenceResponse {
|
|
314
|
-
/** Dispute */
|
|
315
|
-
dispute?: Dispute;
|
|
316
|
-
}
|
|
317
|
-
interface BulkUpdateDisputeTagsRequest {
|
|
318
|
-
/**
|
|
319
|
-
* List of NileProtoTagsEntities that their tags will update.
|
|
320
|
-
* @minSize 1
|
|
321
|
-
* @maxSize 100
|
|
322
|
-
* @format GUID
|
|
323
|
-
*/
|
|
324
|
-
ids: string[];
|
|
325
|
-
/** List of Tags to assign */
|
|
326
|
-
assignTags?: Tags;
|
|
327
|
-
/** List of Tags to unAssign */
|
|
328
|
-
unassignTags?: Tags;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Common object for tags.
|
|
332
|
-
* Should be use as in this example:
|
|
333
|
-
* message Foo {
|
|
334
|
-
* string id = 1;
|
|
335
|
-
* ...
|
|
336
|
-
* Tags tags = 5
|
|
337
|
-
* }
|
|
338
|
-
*
|
|
339
|
-
* example of taggable entity
|
|
340
|
-
* {
|
|
341
|
-
* id: "123"
|
|
342
|
-
* tags: {
|
|
343
|
-
* tags: {
|
|
344
|
-
* tag_ids:["11","22"]
|
|
345
|
-
* },
|
|
346
|
-
* private_tags: {
|
|
347
|
-
* tag_ids: ["33", "44"]
|
|
348
|
-
* }
|
|
349
|
-
* }
|
|
350
|
-
* }
|
|
351
|
-
*/
|
|
352
|
-
interface Tags {
|
|
353
|
-
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
354
|
-
tags?: TagsTagList;
|
|
355
|
-
}
|
|
356
|
-
interface TagsTagList {
|
|
357
|
-
/**
|
|
358
|
-
* List of tag IDs
|
|
359
|
-
* @maxSize 100
|
|
360
|
-
* @maxLength 5
|
|
361
|
-
*/
|
|
362
|
-
tagIds?: string[];
|
|
363
|
-
}
|
|
364
|
-
interface BulkUpdateDisputeTagsResponse {
|
|
365
|
-
/**
|
|
366
|
-
* Results
|
|
367
|
-
* @minSize 1
|
|
368
|
-
* @maxSize 100
|
|
369
|
-
*/
|
|
370
|
-
results?: BulkUpdateDisputeTagsResult[];
|
|
371
|
-
/** Metadata regarding the bulk update operation */
|
|
372
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
373
|
-
}
|
|
374
|
-
interface ItemMetadata {
|
|
375
|
-
/**
|
|
376
|
-
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
377
|
-
* @format GUID
|
|
378
|
-
*/
|
|
379
|
-
id?: string | null;
|
|
380
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
381
|
-
originalIndex?: number;
|
|
382
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
383
|
-
success?: boolean;
|
|
384
|
-
/** Details about the error in case of failure. */
|
|
385
|
-
error?: ApplicationError;
|
|
386
|
-
}
|
|
387
|
-
interface ApplicationError {
|
|
388
|
-
/** Error code. */
|
|
389
|
-
code?: string;
|
|
390
|
-
/** Description of the error. */
|
|
391
|
-
description?: string;
|
|
392
|
-
/** Data related to the error. */
|
|
393
|
-
data?: Record<string, any> | null;
|
|
394
|
-
}
|
|
395
|
-
interface BulkUpdateDisputeTagsResult {
|
|
396
|
-
/** Metadata regarding the specific single update operation */
|
|
397
|
-
itemMetadata?: ItemMetadata;
|
|
398
|
-
}
|
|
399
|
-
interface BulkActionMetadata {
|
|
400
|
-
/** Number of items that were successfully processed. */
|
|
401
|
-
totalSuccesses?: number;
|
|
402
|
-
/** Number of items that couldn't be processed. */
|
|
403
|
-
totalFailures?: number;
|
|
404
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
405
|
-
undetailedFailures?: number;
|
|
406
|
-
}
|
|
407
|
-
interface BulkUpdateDisputeTagsByFilterRequest {
|
|
408
|
-
/** Filter */
|
|
409
|
-
filter: Record<string, any> | null;
|
|
410
|
-
/** List of Tags to assign */
|
|
411
|
-
assignTags?: Tags;
|
|
412
|
-
/** List of Tags to unAssign */
|
|
413
|
-
unassignTags?: Tags;
|
|
414
|
-
}
|
|
415
|
-
interface BulkUpdateDisputeTagsByFilterResponse {
|
|
416
|
-
/**
|
|
417
|
-
* Job ID
|
|
418
|
-
* @format GUID
|
|
419
|
-
*/
|
|
420
|
-
jobId?: string;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
424
|
-
getUrl: (context: any) => string;
|
|
425
|
-
httpMethod: K;
|
|
426
|
-
path: string;
|
|
427
|
-
pathParams: M;
|
|
428
|
-
__requestType: T;
|
|
429
|
-
__originalRequestType: S;
|
|
430
|
-
__responseType: Q;
|
|
431
|
-
__originalResponseType: R;
|
|
432
|
-
};
|
|
433
|
-
declare function getDispute(): __PublicMethodMetaInfo<'GET', {
|
|
434
|
-
disputeId: string;
|
|
435
|
-
}, GetDisputeRequest$1, GetDisputeRequest, GetDisputeResponse$1, GetDisputeResponse>;
|
|
436
|
-
declare function queryDisputes(): __PublicMethodMetaInfo<'GET', {}, QueryDisputesRequest$1, QueryDisputesRequest, QueryDisputesResponse$1, QueryDisputesResponse>;
|
|
437
|
-
declare function getDisputeActions(): __PublicMethodMetaInfo<'GET', {
|
|
438
|
-
disputeId: string;
|
|
439
|
-
}, GetDisputeActionsRequest$1, GetDisputeActionsRequest, GetDisputeActionsResponse$1, GetDisputeActionsResponse>;
|
|
440
|
-
declare function acceptDispute(): __PublicMethodMetaInfo<'POST', {
|
|
441
|
-
disputeId: string;
|
|
442
|
-
}, AcceptDisputeRequest$1, AcceptDisputeRequest, AcceptDisputeResponse$1, AcceptDisputeResponse>;
|
|
443
|
-
declare function submitDisputeEvidence(): __PublicMethodMetaInfo<'POST', {
|
|
444
|
-
disputeId: string;
|
|
445
|
-
}, SubmitDisputeEvidenceRequest$1, SubmitDisputeEvidenceRequest, SubmitDisputeEvidenceResponse$1, SubmitDisputeEvidenceResponse>;
|
|
446
|
-
declare function bulkUpdateDisputeTags(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeTagsRequest$1, BulkUpdateDisputeTagsRequest, BulkUpdateDisputeTagsResponse$1, BulkUpdateDisputeTagsResponse>;
|
|
447
|
-
declare function bulkUpdateDisputeTagsByFilter(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateDisputeTagsByFilterRequest$1, BulkUpdateDisputeTagsByFilterRequest, BulkUpdateDisputeTagsByFilterResponse$1, BulkUpdateDisputeTagsByFilterResponse>;
|
|
448
|
-
|
|
449
|
-
export { type __PublicMethodMetaInfo, acceptDispute, bulkUpdateDisputeTags, bulkUpdateDisputeTagsByFilter, getDispute, getDisputeActions, queryDisputes, submitDisputeEvidence };
|