@wix/auto_sdk_payments_disputes 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.
- 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 +506 -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/cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts +593 -0
- 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/package.json +3 -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 +506 -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/es/src/payments-disputes-v1-dispute-disputes.universal.d.ts +593 -0
- 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 +506 -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/cjs/src/payments-disputes-v1-dispute-disputes.universal.d.ts +665 -0
- 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 +506 -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/es/src/payments-disputes-v1-dispute-disputes.universal.d.ts +665 -0
- 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/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,506 @@
|
|
|
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. */
|
|
2
|
+
export interface Dispute {
|
|
3
|
+
/** Dispute ID */
|
|
4
|
+
id?: string;
|
|
5
|
+
/** Charge ID */
|
|
6
|
+
chargeId?: string;
|
|
7
|
+
/** Dispute stage */
|
|
8
|
+
stage?: DisputeStage;
|
|
9
|
+
/** Dispute reason */
|
|
10
|
+
reason?: DisputeReason;
|
|
11
|
+
/** Dispute currency. Should be the same as the charge currency. */
|
|
12
|
+
currency?: string | null;
|
|
13
|
+
/** Dispute Amount in currency's main units (such as dollars or euros). For example, `"12.95"`. */
|
|
14
|
+
amount?: string | null;
|
|
15
|
+
/** Dispute status based on provider dispute status */
|
|
16
|
+
status?: DisputeStatus;
|
|
17
|
+
/** True if the merchant can do the refund with the opened dispute, false otherwise */
|
|
18
|
+
chargeRefundable?: boolean | null;
|
|
19
|
+
/** Seller protection */
|
|
20
|
+
sellerProtection?: SellerProtection;
|
|
21
|
+
/**
|
|
22
|
+
* Dispute Channel
|
|
23
|
+
* Internal - this dispute is created on provider side
|
|
24
|
+
* External - this dispute is created on bank side
|
|
25
|
+
*/
|
|
26
|
+
channel?: DisputeChannel;
|
|
27
|
+
/** The latest date and time until which the dispute can remain in its current status */
|
|
28
|
+
dueDate?: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* The dispute created date
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
createdDate?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* The dispute updated date
|
|
36
|
+
* @readonly
|
|
37
|
+
*/
|
|
38
|
+
updatedDate?: Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* Revision number, which increments by 1 each time the Dispute is updated.
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
revision?: string | null;
|
|
44
|
+
/** Data Extensions */
|
|
45
|
+
extendedFields?: ExtendedFields;
|
|
46
|
+
/** Tags */
|
|
47
|
+
tags?: PublicTags;
|
|
48
|
+
}
|
|
49
|
+
export declare enum DisputeStage {
|
|
50
|
+
UNKNOWN_DISPUTE_TYPE = "UNKNOWN_DISPUTE_TYPE",
|
|
51
|
+
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
52
|
+
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
53
|
+
/** Request for Information / Inquiry */
|
|
54
|
+
RFI = "RFI",
|
|
55
|
+
/** Chargeback */
|
|
56
|
+
CHARGEBACK = "CHARGEBACK"
|
|
57
|
+
}
|
|
58
|
+
export declare enum DisputeReason {
|
|
59
|
+
/** Unknown reason */
|
|
60
|
+
UNKNOWN_DISPUTE_REASON = "UNKNOWN_DISPUTE_REASON",
|
|
61
|
+
/** Fraud card */
|
|
62
|
+
FRAUD_CARD_PRESENT = "FRAUD_CARD_PRESENT",
|
|
63
|
+
/** Card absent */
|
|
64
|
+
FRAUD_CARD_ABSENT = "FRAUD_CARD_ABSENT",
|
|
65
|
+
/** DUPLICATE */
|
|
66
|
+
DUPLICATE_PROCESSING = "DUPLICATE_PROCESSING",
|
|
67
|
+
/** Service not provided */
|
|
68
|
+
SERVICES_NOT_PROVIDED = "SERVICES_NOT_PROVIDED",
|
|
69
|
+
/** Canceled Recurring */
|
|
70
|
+
CANCELED_RECURRING = "CANCELED_RECURRING",
|
|
71
|
+
/** Item not as describe */
|
|
72
|
+
NOT_AS_DESCRIBED = "NOT_AS_DESCRIBED",
|
|
73
|
+
/** Counterfeit */
|
|
74
|
+
COUNTERFEIT = "COUNTERFEIT",
|
|
75
|
+
/** Misrepresentation */
|
|
76
|
+
MISREPRESENTATION = "MISREPRESENTATION",
|
|
77
|
+
/** Canceled */
|
|
78
|
+
CANCELED = "CANCELED",
|
|
79
|
+
/** Other reason */
|
|
80
|
+
OTHER = "OTHER"
|
|
81
|
+
}
|
|
82
|
+
export declare enum DisputeStatus {
|
|
83
|
+
/** Unknown status */
|
|
84
|
+
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
85
|
+
/** Waiting for some merchant action */
|
|
86
|
+
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
87
|
+
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
88
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
89
|
+
/** Waiting for some buyer action */
|
|
90
|
+
WAITING_BUYER = "WAITING_BUYER",
|
|
91
|
+
/** Dispute won */
|
|
92
|
+
WON = "WON",
|
|
93
|
+
/** Dispute lost */
|
|
94
|
+
LOST = "LOST"
|
|
95
|
+
}
|
|
96
|
+
export declare enum SellerProtection {
|
|
97
|
+
UNKNOWN_SELLER_PROTECTION = "UNKNOWN_SELLER_PROTECTION",
|
|
98
|
+
/** Not Eligible */
|
|
99
|
+
NOT_ELIGIBLE = "NOT_ELIGIBLE",
|
|
100
|
+
/** Eligible */
|
|
101
|
+
ELIGIBLE = "ELIGIBLE",
|
|
102
|
+
/** Extended seller protection */
|
|
103
|
+
EXTENDED = "EXTENDED"
|
|
104
|
+
}
|
|
105
|
+
export declare enum DisputeChannel {
|
|
106
|
+
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
107
|
+
/** Internal, the dispute is reviewed by PSP */
|
|
108
|
+
INTERNAL = "INTERNAL",
|
|
109
|
+
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
110
|
+
EXTERNAL = "EXTERNAL"
|
|
111
|
+
}
|
|
112
|
+
export interface ExtendedFields {
|
|
113
|
+
/**
|
|
114
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
115
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
116
|
+
*
|
|
117
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
118
|
+
*
|
|
119
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
120
|
+
*/
|
|
121
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
122
|
+
}
|
|
123
|
+
export interface PublicTags {
|
|
124
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
125
|
+
tags?: TagList;
|
|
126
|
+
}
|
|
127
|
+
export interface TagList {
|
|
128
|
+
/** List of tag IDs */
|
|
129
|
+
tagIds?: string[];
|
|
130
|
+
}
|
|
131
|
+
export interface GetDisputeRequest {
|
|
132
|
+
/** ID of the Dispute to retrieve. */
|
|
133
|
+
disputeId: string;
|
|
134
|
+
}
|
|
135
|
+
export interface GetDisputeResponse {
|
|
136
|
+
/** The requested Dispute. */
|
|
137
|
+
dispute?: Dispute;
|
|
138
|
+
}
|
|
139
|
+
export interface QueryDisputesRequest {
|
|
140
|
+
/** WQL expression. */
|
|
141
|
+
query?: CursorQuery;
|
|
142
|
+
}
|
|
143
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
144
|
+
/** 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`. */
|
|
145
|
+
cursorPaging?: CursorPaging;
|
|
146
|
+
/**
|
|
147
|
+
* Filter object in the following format:
|
|
148
|
+
* `"filter" : {
|
|
149
|
+
* "fieldName1": "value1",
|
|
150
|
+
* "fieldName2":{"$operator":"value2"}
|
|
151
|
+
* }`
|
|
152
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
153
|
+
*/
|
|
154
|
+
filter?: Record<string, any> | null;
|
|
155
|
+
/**
|
|
156
|
+
* Sort object in the following format:
|
|
157
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
158
|
+
*/
|
|
159
|
+
sort?: Sorting[];
|
|
160
|
+
}
|
|
161
|
+
/** @oneof */
|
|
162
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
163
|
+
/** 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`. */
|
|
164
|
+
cursorPaging?: CursorPaging;
|
|
165
|
+
}
|
|
166
|
+
export interface Sorting {
|
|
167
|
+
/** Name of the field to sort by. */
|
|
168
|
+
fieldName?: string;
|
|
169
|
+
/** Sort order. */
|
|
170
|
+
order?: SortOrder;
|
|
171
|
+
}
|
|
172
|
+
export declare enum SortOrder {
|
|
173
|
+
ASC = "ASC",
|
|
174
|
+
DESC = "DESC"
|
|
175
|
+
}
|
|
176
|
+
export interface CursorPaging {
|
|
177
|
+
/** Maximum number of items to return in the results. */
|
|
178
|
+
limit?: number | null;
|
|
179
|
+
/**
|
|
180
|
+
* Pointer to the next or previous page in the list of results.
|
|
181
|
+
*
|
|
182
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
183
|
+
* Not relevant for the first request.
|
|
184
|
+
*/
|
|
185
|
+
cursor?: string | null;
|
|
186
|
+
}
|
|
187
|
+
export interface QueryDisputesResponse {
|
|
188
|
+
/** List of Disputes. */
|
|
189
|
+
disputes?: Dispute[];
|
|
190
|
+
/** Paging metadata */
|
|
191
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
192
|
+
}
|
|
193
|
+
export interface CursorPagingMetadata {
|
|
194
|
+
/** Number of items returned in the response. */
|
|
195
|
+
count?: number | null;
|
|
196
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
197
|
+
cursors?: Cursors;
|
|
198
|
+
/**
|
|
199
|
+
* Whether there are more pages to retrieve following the current page.
|
|
200
|
+
*
|
|
201
|
+
* + `true`: Another page of results can be retrieved.
|
|
202
|
+
* + `false`: This is the last page.
|
|
203
|
+
*/
|
|
204
|
+
hasNext?: boolean | null;
|
|
205
|
+
}
|
|
206
|
+
export interface Cursors {
|
|
207
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
208
|
+
next?: string | null;
|
|
209
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
210
|
+
prev?: string | null;
|
|
211
|
+
}
|
|
212
|
+
export interface GetDisputeActionsRequest {
|
|
213
|
+
/** Dispute ID */
|
|
214
|
+
disputeId: string;
|
|
215
|
+
}
|
|
216
|
+
export interface GetDisputeActionsResponse {
|
|
217
|
+
/** Dispute actions */
|
|
218
|
+
actions?: DisputeAction[];
|
|
219
|
+
}
|
|
220
|
+
export interface DisputeAction {
|
|
221
|
+
/** Dispute Action type */
|
|
222
|
+
type?: DisputeActionType;
|
|
223
|
+
/** The latest date and time until which the action can be performed */
|
|
224
|
+
dueDate?: Date | null;
|
|
225
|
+
}
|
|
226
|
+
export declare enum DisputeActionType {
|
|
227
|
+
/** Unknown dispute status */
|
|
228
|
+
UNKNOWN_DISPUTE_ACTION = "UNKNOWN_DISPUTE_ACTION",
|
|
229
|
+
/** Accept dispute */
|
|
230
|
+
ACCEPT = "ACCEPT",
|
|
231
|
+
/** Submit evidence */
|
|
232
|
+
SUBMIT_EVIDENCE = "SUBMIT_EVIDENCE"
|
|
233
|
+
}
|
|
234
|
+
export interface AcceptDisputeRequest {
|
|
235
|
+
/** Dispute ID */
|
|
236
|
+
disputeId: string;
|
|
237
|
+
}
|
|
238
|
+
export interface AcceptDisputeResponse {
|
|
239
|
+
/** Dispute */
|
|
240
|
+
dispute?: Dispute;
|
|
241
|
+
}
|
|
242
|
+
export interface SubmitDisputeEvidenceRequest {
|
|
243
|
+
/** Dispute ID */
|
|
244
|
+
disputeId: string;
|
|
245
|
+
}
|
|
246
|
+
export interface SubmitDisputeEvidenceResponse {
|
|
247
|
+
/** Dispute */
|
|
248
|
+
dispute?: Dispute;
|
|
249
|
+
}
|
|
250
|
+
export interface BulkUpdateDisputeTagsRequest {
|
|
251
|
+
/** List of NileProtoTagsEntities that their tags will update. */
|
|
252
|
+
ids: string[];
|
|
253
|
+
/** List of Tags to assign */
|
|
254
|
+
assignTags?: Tags;
|
|
255
|
+
/** List of Tags to unAssign */
|
|
256
|
+
unassignTags?: Tags;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Common object for tags.
|
|
260
|
+
* Should be use as in this example:
|
|
261
|
+
* message Foo {
|
|
262
|
+
* string id = 1;
|
|
263
|
+
* ...
|
|
264
|
+
* Tags tags = 5
|
|
265
|
+
* }
|
|
266
|
+
*
|
|
267
|
+
* example of taggable entity
|
|
268
|
+
* {
|
|
269
|
+
* id: "123"
|
|
270
|
+
* tags: {
|
|
271
|
+
* tags: {
|
|
272
|
+
* tag_ids:["11","22"]
|
|
273
|
+
* },
|
|
274
|
+
* private_tags: {
|
|
275
|
+
* tag_ids: ["33", "44"]
|
|
276
|
+
* }
|
|
277
|
+
* }
|
|
278
|
+
* }
|
|
279
|
+
*/
|
|
280
|
+
export interface Tags {
|
|
281
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
282
|
+
tags?: TagsTagList;
|
|
283
|
+
}
|
|
284
|
+
export interface TagsTagList {
|
|
285
|
+
/** List of tag IDs */
|
|
286
|
+
tagIds?: string[];
|
|
287
|
+
}
|
|
288
|
+
export interface BulkUpdateDisputeTagsResponse {
|
|
289
|
+
/** Results */
|
|
290
|
+
results?: BulkUpdateDisputeTagsResult[];
|
|
291
|
+
/** Metadata regarding the bulk update operation */
|
|
292
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
293
|
+
}
|
|
294
|
+
export interface ItemMetadata {
|
|
295
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
296
|
+
id?: string | null;
|
|
297
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
298
|
+
originalIndex?: number;
|
|
299
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
300
|
+
success?: boolean;
|
|
301
|
+
/** Details about the error in case of failure. */
|
|
302
|
+
error?: ApplicationError;
|
|
303
|
+
}
|
|
304
|
+
export interface ApplicationError {
|
|
305
|
+
/** Error code. */
|
|
306
|
+
code?: string;
|
|
307
|
+
/** Description of the error. */
|
|
308
|
+
description?: string;
|
|
309
|
+
/** Data related to the error. */
|
|
310
|
+
data?: Record<string, any> | null;
|
|
311
|
+
}
|
|
312
|
+
export interface BulkUpdateDisputeTagsResult {
|
|
313
|
+
/** Metadata regarding the specific single update operation */
|
|
314
|
+
itemMetadata?: ItemMetadata;
|
|
315
|
+
}
|
|
316
|
+
export interface BulkActionMetadata {
|
|
317
|
+
/** Number of items that were successfully processed. */
|
|
318
|
+
totalSuccesses?: number;
|
|
319
|
+
/** Number of items that couldn't be processed. */
|
|
320
|
+
totalFailures?: number;
|
|
321
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
322
|
+
undetailedFailures?: number;
|
|
323
|
+
}
|
|
324
|
+
export interface BulkUpdateDisputeTagsByFilterRequest {
|
|
325
|
+
/** Filter */
|
|
326
|
+
filter: Record<string, any> | null;
|
|
327
|
+
/** List of Tags to assign */
|
|
328
|
+
assignTags?: Tags;
|
|
329
|
+
/** List of Tags to unAssign */
|
|
330
|
+
unassignTags?: Tags;
|
|
331
|
+
}
|
|
332
|
+
export interface BulkUpdateDisputeTagsByFilterResponse {
|
|
333
|
+
/** Job ID */
|
|
334
|
+
jobId?: string;
|
|
335
|
+
}
|
|
336
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
337
|
+
createdEvent?: EntityCreatedEvent;
|
|
338
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
339
|
+
deletedEvent?: EntityDeletedEvent;
|
|
340
|
+
actionEvent?: ActionEvent;
|
|
341
|
+
/**
|
|
342
|
+
* Unique event ID.
|
|
343
|
+
* Allows clients to ignore duplicate webhooks.
|
|
344
|
+
*/
|
|
345
|
+
id?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Assumes actions are also always typed to an entity_type
|
|
348
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
349
|
+
*/
|
|
350
|
+
entityFqdn?: string;
|
|
351
|
+
/**
|
|
352
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
353
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
354
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
355
|
+
*/
|
|
356
|
+
slug?: string;
|
|
357
|
+
/** ID of the entity associated with the event. */
|
|
358
|
+
entityId?: string;
|
|
359
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
360
|
+
eventTime?: Date | null;
|
|
361
|
+
/**
|
|
362
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
363
|
+
* (for example, GDPR).
|
|
364
|
+
*/
|
|
365
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
366
|
+
/** If present, indicates the action that triggered the event. */
|
|
367
|
+
originatedFrom?: string | null;
|
|
368
|
+
/**
|
|
369
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
370
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
371
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
372
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
373
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
374
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
375
|
+
*/
|
|
376
|
+
entityEventSequence?: string | null;
|
|
377
|
+
}
|
|
378
|
+
/** @oneof */
|
|
379
|
+
export interface DomainEventBodyOneOf {
|
|
380
|
+
createdEvent?: EntityCreatedEvent;
|
|
381
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
382
|
+
deletedEvent?: EntityDeletedEvent;
|
|
383
|
+
actionEvent?: ActionEvent;
|
|
384
|
+
}
|
|
385
|
+
export interface EntityCreatedEvent {
|
|
386
|
+
entityAsJson?: string;
|
|
387
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
388
|
+
restoreInfo?: RestoreInfo;
|
|
389
|
+
}
|
|
390
|
+
export interface RestoreInfo {
|
|
391
|
+
deletedDate?: Date | null;
|
|
392
|
+
}
|
|
393
|
+
export interface EntityUpdatedEvent {
|
|
394
|
+
/**
|
|
395
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
396
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
397
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
398
|
+
*/
|
|
399
|
+
currentEntityAsJson?: string;
|
|
400
|
+
}
|
|
401
|
+
export interface EntityDeletedEvent {
|
|
402
|
+
/** Entity that was deleted */
|
|
403
|
+
deletedEntityAsJson?: string | null;
|
|
404
|
+
}
|
|
405
|
+
export interface ActionEvent {
|
|
406
|
+
bodyAsJson?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface MessageEnvelope {
|
|
409
|
+
/** App instance ID. */
|
|
410
|
+
instanceId?: string | null;
|
|
411
|
+
/** Event type. */
|
|
412
|
+
eventType?: string;
|
|
413
|
+
/** The identification type and identity data. */
|
|
414
|
+
identity?: IdentificationData;
|
|
415
|
+
/** Stringify payload. */
|
|
416
|
+
data?: string;
|
|
417
|
+
}
|
|
418
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
419
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
420
|
+
anonymousVisitorId?: string;
|
|
421
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
422
|
+
memberId?: string;
|
|
423
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
424
|
+
wixUserId?: string;
|
|
425
|
+
/** ID of an app. */
|
|
426
|
+
appId?: string;
|
|
427
|
+
/** @readonly */
|
|
428
|
+
identityType?: WebhookIdentityType;
|
|
429
|
+
}
|
|
430
|
+
/** @oneof */
|
|
431
|
+
export interface IdentificationDataIdOneOf {
|
|
432
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
433
|
+
anonymousVisitorId?: string;
|
|
434
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
435
|
+
memberId?: string;
|
|
436
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
437
|
+
wixUserId?: string;
|
|
438
|
+
/** ID of an app. */
|
|
439
|
+
appId?: string;
|
|
440
|
+
}
|
|
441
|
+
export declare enum WebhookIdentityType {
|
|
442
|
+
UNKNOWN = "UNKNOWN",
|
|
443
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
444
|
+
MEMBER = "MEMBER",
|
|
445
|
+
WIX_USER = "WIX_USER",
|
|
446
|
+
APP = "APP"
|
|
447
|
+
}
|
|
448
|
+
interface TagListNonNullableFields {
|
|
449
|
+
tagIds: string[];
|
|
450
|
+
}
|
|
451
|
+
interface PublicTagsNonNullableFields {
|
|
452
|
+
tags?: TagListNonNullableFields;
|
|
453
|
+
}
|
|
454
|
+
interface DisputeNonNullableFields {
|
|
455
|
+
id: string;
|
|
456
|
+
chargeId: string;
|
|
457
|
+
stage: DisputeStage;
|
|
458
|
+
reason: DisputeReason;
|
|
459
|
+
status: DisputeStatus;
|
|
460
|
+
sellerProtection: SellerProtection;
|
|
461
|
+
channel: DisputeChannel;
|
|
462
|
+
tags?: PublicTagsNonNullableFields;
|
|
463
|
+
}
|
|
464
|
+
export interface GetDisputeResponseNonNullableFields {
|
|
465
|
+
dispute?: DisputeNonNullableFields;
|
|
466
|
+
}
|
|
467
|
+
export interface QueryDisputesResponseNonNullableFields {
|
|
468
|
+
disputes: DisputeNonNullableFields[];
|
|
469
|
+
}
|
|
470
|
+
interface DisputeActionNonNullableFields {
|
|
471
|
+
type: DisputeActionType;
|
|
472
|
+
}
|
|
473
|
+
export interface GetDisputeActionsResponseNonNullableFields {
|
|
474
|
+
actions: DisputeActionNonNullableFields[];
|
|
475
|
+
}
|
|
476
|
+
export interface AcceptDisputeResponseNonNullableFields {
|
|
477
|
+
dispute?: DisputeNonNullableFields;
|
|
478
|
+
}
|
|
479
|
+
export interface SubmitDisputeEvidenceResponseNonNullableFields {
|
|
480
|
+
dispute?: DisputeNonNullableFields;
|
|
481
|
+
}
|
|
482
|
+
interface ApplicationErrorNonNullableFields {
|
|
483
|
+
code: string;
|
|
484
|
+
description: string;
|
|
485
|
+
}
|
|
486
|
+
interface ItemMetadataNonNullableFields {
|
|
487
|
+
originalIndex: number;
|
|
488
|
+
success: boolean;
|
|
489
|
+
error?: ApplicationErrorNonNullableFields;
|
|
490
|
+
}
|
|
491
|
+
interface BulkUpdateDisputeTagsResultNonNullableFields {
|
|
492
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
493
|
+
}
|
|
494
|
+
interface BulkActionMetadataNonNullableFields {
|
|
495
|
+
totalSuccesses: number;
|
|
496
|
+
totalFailures: number;
|
|
497
|
+
undetailedFailures: number;
|
|
498
|
+
}
|
|
499
|
+
export interface BulkUpdateDisputeTagsResponseNonNullableFields {
|
|
500
|
+
results: BulkUpdateDisputeTagsResultNonNullableFields[];
|
|
501
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
502
|
+
}
|
|
503
|
+
export interface BulkUpdateDisputeTagsByFilterResponseNonNullableFields {
|
|
504
|
+
jobId: string;
|
|
505
|
+
}
|
|
506
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export var DisputeStage;
|
|
2
|
+
(function (DisputeStage) {
|
|
3
|
+
DisputeStage["UNKNOWN_DISPUTE_TYPE"] = "UNKNOWN_DISPUTE_TYPE";
|
|
4
|
+
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
5
|
+
DisputeStage["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
|
|
6
|
+
/** Request for Information / Inquiry */
|
|
7
|
+
DisputeStage["RFI"] = "RFI";
|
|
8
|
+
/** Chargeback */
|
|
9
|
+
DisputeStage["CHARGEBACK"] = "CHARGEBACK";
|
|
10
|
+
})(DisputeStage || (DisputeStage = {}));
|
|
11
|
+
export var DisputeReason;
|
|
12
|
+
(function (DisputeReason) {
|
|
13
|
+
/** Unknown reason */
|
|
14
|
+
DisputeReason["UNKNOWN_DISPUTE_REASON"] = "UNKNOWN_DISPUTE_REASON";
|
|
15
|
+
/** Fraud card */
|
|
16
|
+
DisputeReason["FRAUD_CARD_PRESENT"] = "FRAUD_CARD_PRESENT";
|
|
17
|
+
/** Card absent */
|
|
18
|
+
DisputeReason["FRAUD_CARD_ABSENT"] = "FRAUD_CARD_ABSENT";
|
|
19
|
+
/** DUPLICATE */
|
|
20
|
+
DisputeReason["DUPLICATE_PROCESSING"] = "DUPLICATE_PROCESSING";
|
|
21
|
+
/** Service not provided */
|
|
22
|
+
DisputeReason["SERVICES_NOT_PROVIDED"] = "SERVICES_NOT_PROVIDED";
|
|
23
|
+
/** Canceled Recurring */
|
|
24
|
+
DisputeReason["CANCELED_RECURRING"] = "CANCELED_RECURRING";
|
|
25
|
+
/** Item not as describe */
|
|
26
|
+
DisputeReason["NOT_AS_DESCRIBED"] = "NOT_AS_DESCRIBED";
|
|
27
|
+
/** Counterfeit */
|
|
28
|
+
DisputeReason["COUNTERFEIT"] = "COUNTERFEIT";
|
|
29
|
+
/** Misrepresentation */
|
|
30
|
+
DisputeReason["MISREPRESENTATION"] = "MISREPRESENTATION";
|
|
31
|
+
/** Canceled */
|
|
32
|
+
DisputeReason["CANCELED"] = "CANCELED";
|
|
33
|
+
/** Other reason */
|
|
34
|
+
DisputeReason["OTHER"] = "OTHER";
|
|
35
|
+
})(DisputeReason || (DisputeReason = {}));
|
|
36
|
+
export var DisputeStatus;
|
|
37
|
+
(function (DisputeStatus) {
|
|
38
|
+
/** Unknown status */
|
|
39
|
+
DisputeStatus["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
40
|
+
/** Waiting for some merchant action */
|
|
41
|
+
DisputeStatus["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
42
|
+
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
43
|
+
DisputeStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
44
|
+
/** Waiting for some buyer action */
|
|
45
|
+
DisputeStatus["WAITING_BUYER"] = "WAITING_BUYER";
|
|
46
|
+
/** Dispute won */
|
|
47
|
+
DisputeStatus["WON"] = "WON";
|
|
48
|
+
/** Dispute lost */
|
|
49
|
+
DisputeStatus["LOST"] = "LOST";
|
|
50
|
+
})(DisputeStatus || (DisputeStatus = {}));
|
|
51
|
+
export var SellerProtection;
|
|
52
|
+
(function (SellerProtection) {
|
|
53
|
+
SellerProtection["UNKNOWN_SELLER_PROTECTION"] = "UNKNOWN_SELLER_PROTECTION";
|
|
54
|
+
/** Not Eligible */
|
|
55
|
+
SellerProtection["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
56
|
+
/** Eligible */
|
|
57
|
+
SellerProtection["ELIGIBLE"] = "ELIGIBLE";
|
|
58
|
+
/** Extended seller protection */
|
|
59
|
+
SellerProtection["EXTENDED"] = "EXTENDED";
|
|
60
|
+
})(SellerProtection || (SellerProtection = {}));
|
|
61
|
+
export var DisputeChannel;
|
|
62
|
+
(function (DisputeChannel) {
|
|
63
|
+
DisputeChannel["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
|
|
64
|
+
/** Internal, the dispute is reviewed by PSP */
|
|
65
|
+
DisputeChannel["INTERNAL"] = "INTERNAL";
|
|
66
|
+
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
67
|
+
DisputeChannel["EXTERNAL"] = "EXTERNAL";
|
|
68
|
+
})(DisputeChannel || (DisputeChannel = {}));
|
|
69
|
+
export var SortOrder;
|
|
70
|
+
(function (SortOrder) {
|
|
71
|
+
SortOrder["ASC"] = "ASC";
|
|
72
|
+
SortOrder["DESC"] = "DESC";
|
|
73
|
+
})(SortOrder || (SortOrder = {}));
|
|
74
|
+
export var DisputeActionType;
|
|
75
|
+
(function (DisputeActionType) {
|
|
76
|
+
/** Unknown dispute status */
|
|
77
|
+
DisputeActionType["UNKNOWN_DISPUTE_ACTION"] = "UNKNOWN_DISPUTE_ACTION";
|
|
78
|
+
/** Accept dispute */
|
|
79
|
+
DisputeActionType["ACCEPT"] = "ACCEPT";
|
|
80
|
+
/** Submit evidence */
|
|
81
|
+
DisputeActionType["SUBMIT_EVIDENCE"] = "SUBMIT_EVIDENCE";
|
|
82
|
+
})(DisputeActionType || (DisputeActionType = {}));
|
|
83
|
+
export var WebhookIdentityType;
|
|
84
|
+
(function (WebhookIdentityType) {
|
|
85
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
86
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
87
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
88
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
89
|
+
WebhookIdentityType["APP"] = "APP";
|
|
90
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
91
|
+
//# sourceMappingURL=payments-disputes-v1-dispute-disputes.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-disputes-v1-dispute-disputes.types.js","sourceRoot":"","sources":["../../../src/payments-disputes-v1-dispute-disputes.types.ts"],"names":[],"mappings":"AAiDA,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6DAA6C,CAAA;IAC7C,iEAAiE;IACjE,+DAA+C,CAAA;IAC/C,wCAAwC;IACxC,2BAAW,CAAA;IACX,iBAAiB;IACjB,yCAAyB,CAAA;AAC3B,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB;AAED,MAAM,CAAN,IAAY,aAuBX;AAvBD,WAAY,aAAa;IACvB,qBAAqB;IACrB,kEAAiD,CAAA;IACjD,iBAAiB;IACjB,0DAAyC,CAAA;IACzC,kBAAkB;IAClB,wDAAuC,CAAA;IACvC,gBAAgB;IAChB,8DAA6C,CAAA;IAC7C,2BAA2B;IAC3B,gEAA+C,CAAA;IAC/C,yBAAyB;IACzB,0DAAyC,CAAA;IACzC,2BAA2B;IAC3B,sDAAqC,CAAA;IACrC,kBAAkB;IAClB,4CAA2B,CAAA;IAC3B,wBAAwB;IACxB,wDAAuC,CAAA;IACvC,eAAe;IACf,sCAAqB,CAAA;IACrB,mBAAmB;IACnB,gCAAe,CAAA;AACjB,CAAC,EAvBW,aAAa,KAAb,aAAa,QAuBxB;AAED,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,qBAAqB;IACrB,kEAAiD,CAAA;IACjD,uCAAuC;IACvC,sDAAqC,CAAA;IACrC,mFAAmF;IACnF,8CAA6B,CAAA;IAC7B,oCAAoC;IACpC,gDAA+B,CAAA;IAC/B,kBAAkB;IAClB,4BAAW,CAAA;IACX,mBAAmB;IACnB,8BAAa,CAAA;AACf,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB;AAED,MAAM,CAAN,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,2EAAuD,CAAA;IACvD,mBAAmB;IACnB,iDAA6B,CAAA;IAC7B,eAAe;IACf,yCAAqB,CAAA;IACrB,iCAAiC;IACjC,yCAAqB,CAAA;AACvB,CAAC,EARW,gBAAgB,KAAhB,gBAAgB,QAQ3B;AAED,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qEAAmD,CAAA;IACnD,+CAA+C;IAC/C,uCAAqB,CAAA;IACrB,iFAAiF;IACjF,uCAAqB,CAAA;AACvB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAuED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AA2DD,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,6BAA6B;IAC7B,sEAAiD,CAAA;IACjD,qBAAqB;IACrB,sCAAiB,CAAA;IACjB,sBAAsB;IACtB,wDAAmC,CAAA;AACrC,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B;AAyOD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|