@wix/auto_sdk_payments_dispute-history-records 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +2 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +19 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +127 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +104 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +4 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +39 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +42 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +464 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +236 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.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-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +2 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +12 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +120 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +74 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +4 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +28 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +39 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +464 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +206 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.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-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +12 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +19 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +127 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +104 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +45 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +39 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +42 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +506 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +236 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.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-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +12 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +12 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +1 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +16 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +120 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +1 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +18 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +74 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +1 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +45 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +28 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +1 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +397 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +39 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +506 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +206 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
/** A DisputeHistoryRecord */
|
|
2
|
+
export interface DisputeHistoryRecord {
|
|
3
|
+
/**
|
|
4
|
+
* DisputeHistoryRecord ID.
|
|
5
|
+
* @readonly
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Revision number
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
revision?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Date and time the DisputeHistoryRecord was created.
|
|
15
|
+
* @readonly
|
|
16
|
+
*/
|
|
17
|
+
createdDate?: Date | null;
|
|
18
|
+
/**
|
|
19
|
+
* Date and time the DisputeHistoryRecord was last updated.
|
|
20
|
+
* @readonly
|
|
21
|
+
*/
|
|
22
|
+
updatedDate?: Date | null;
|
|
23
|
+
/** Dispute ID */
|
|
24
|
+
disputeId?: string;
|
|
25
|
+
/** Dispute stage (RFI, Chargeback, so on) */
|
|
26
|
+
stage?: DisputeStage;
|
|
27
|
+
/** Dispute Status */
|
|
28
|
+
status?: DisputeStatus;
|
|
29
|
+
/**
|
|
30
|
+
* Due Date
|
|
31
|
+
* @readonly
|
|
32
|
+
*/
|
|
33
|
+
dueDate?: Date | null;
|
|
34
|
+
/** Data Extensions */
|
|
35
|
+
extendedFields?: ExtendedFields;
|
|
36
|
+
/** Tags */
|
|
37
|
+
tags?: Tags;
|
|
38
|
+
}
|
|
39
|
+
export declare enum DisputeStage {
|
|
40
|
+
UNKNOWN_DISPUTE_TYPE = "UNKNOWN_DISPUTE_TYPE",
|
|
41
|
+
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
42
|
+
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
43
|
+
/** Request for Information / Inquiry */
|
|
44
|
+
RFI = "RFI",
|
|
45
|
+
/** Chargeback */
|
|
46
|
+
CHARGEBACK = "CHARGEBACK"
|
|
47
|
+
}
|
|
48
|
+
export declare enum DisputeStatus {
|
|
49
|
+
/** Unknown status */
|
|
50
|
+
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
51
|
+
/** Waiting for some merchant action */
|
|
52
|
+
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
53
|
+
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
54
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
55
|
+
/** Waiting for some buyer action */
|
|
56
|
+
WAITING_BUYER = "WAITING_BUYER",
|
|
57
|
+
/** Dispute won */
|
|
58
|
+
WON = "WON",
|
|
59
|
+
/** Dispute lost */
|
|
60
|
+
LOST = "LOST"
|
|
61
|
+
}
|
|
62
|
+
export interface ExtendedFields {
|
|
63
|
+
/**
|
|
64
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
65
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
66
|
+
*
|
|
67
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
68
|
+
*
|
|
69
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
70
|
+
*/
|
|
71
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Common object for tags.
|
|
75
|
+
* Should be use as in this example:
|
|
76
|
+
* message Foo {
|
|
77
|
+
* string id = 1;
|
|
78
|
+
* ...
|
|
79
|
+
* Tags tags = 5
|
|
80
|
+
* }
|
|
81
|
+
*
|
|
82
|
+
* example of taggable entity
|
|
83
|
+
* {
|
|
84
|
+
* id: "123"
|
|
85
|
+
* tags: {
|
|
86
|
+
* tags: {
|
|
87
|
+
* tag_ids:["11","22"]
|
|
88
|
+
* },
|
|
89
|
+
* private_tags: {
|
|
90
|
+
* tag_ids: ["33", "44"]
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* }
|
|
94
|
+
*/
|
|
95
|
+
export interface Tags {
|
|
96
|
+
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
97
|
+
tags?: TagList;
|
|
98
|
+
}
|
|
99
|
+
export interface TagList {
|
|
100
|
+
/** List of tag IDs */
|
|
101
|
+
tagIds?: string[];
|
|
102
|
+
}
|
|
103
|
+
export interface GetDisputeHistoryRecordRequest {
|
|
104
|
+
/** ID of the DisputeHistoryRecord to retrieve. */
|
|
105
|
+
disputeHistoryRecordId: string;
|
|
106
|
+
}
|
|
107
|
+
export interface GetDisputeHistoryRecordResponse {
|
|
108
|
+
/** The requested DisputeHistoryRecord. */
|
|
109
|
+
disputeHistoryRecord?: DisputeHistoryRecord;
|
|
110
|
+
}
|
|
111
|
+
export interface QueryDisputeHistoryRecordsRequest {
|
|
112
|
+
/** WQL expression. */
|
|
113
|
+
query?: CursorQuery;
|
|
114
|
+
}
|
|
115
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
116
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
117
|
+
cursorPaging?: CursorPaging;
|
|
118
|
+
/**
|
|
119
|
+
* Filter object in the following format:
|
|
120
|
+
* `"filter" : {
|
|
121
|
+
* "fieldName1": "value1",
|
|
122
|
+
* "fieldName2":{"$operator":"value2"}
|
|
123
|
+
* }`
|
|
124
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
125
|
+
*/
|
|
126
|
+
filter?: Record<string, any> | null;
|
|
127
|
+
/**
|
|
128
|
+
* Sort object in the following format:
|
|
129
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
130
|
+
*/
|
|
131
|
+
sort?: Sorting[];
|
|
132
|
+
}
|
|
133
|
+
/** @oneof */
|
|
134
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
135
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
136
|
+
cursorPaging?: CursorPaging;
|
|
137
|
+
}
|
|
138
|
+
export interface Sorting {
|
|
139
|
+
/** Name of the field to sort by. */
|
|
140
|
+
fieldName?: string;
|
|
141
|
+
/** Sort order. */
|
|
142
|
+
order?: SortOrder;
|
|
143
|
+
}
|
|
144
|
+
export declare enum SortOrder {
|
|
145
|
+
ASC = "ASC",
|
|
146
|
+
DESC = "DESC"
|
|
147
|
+
}
|
|
148
|
+
export interface CursorPaging {
|
|
149
|
+
/** Maximum number of items to return in the results. */
|
|
150
|
+
limit?: number | null;
|
|
151
|
+
/**
|
|
152
|
+
* Pointer to the next or previous page in the list of results.
|
|
153
|
+
*
|
|
154
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
155
|
+
* Not relevant for the first request.
|
|
156
|
+
*/
|
|
157
|
+
cursor?: string | null;
|
|
158
|
+
}
|
|
159
|
+
export interface QueryDisputeHistoryRecordsResponse {
|
|
160
|
+
/** List of DisputeHistoryRecords. */
|
|
161
|
+
disputeHistoryRecords?: DisputeHistoryRecord[];
|
|
162
|
+
/** Paging metadata */
|
|
163
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
164
|
+
}
|
|
165
|
+
export interface CursorPagingMetadata {
|
|
166
|
+
/** Number of items returned in the response. */
|
|
167
|
+
count?: number | null;
|
|
168
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
169
|
+
cursors?: Cursors;
|
|
170
|
+
/**
|
|
171
|
+
* Whether there are more pages to retrieve following the current page.
|
|
172
|
+
*
|
|
173
|
+
* + `true`: Another page of results can be retrieved.
|
|
174
|
+
* + `false`: This is the last page.
|
|
175
|
+
*/
|
|
176
|
+
hasNext?: boolean | null;
|
|
177
|
+
}
|
|
178
|
+
export interface Cursors {
|
|
179
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
180
|
+
next?: string | null;
|
|
181
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
182
|
+
prev?: string | null;
|
|
183
|
+
}
|
|
184
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
185
|
+
createdEvent?: EntityCreatedEvent;
|
|
186
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
187
|
+
deletedEvent?: EntityDeletedEvent;
|
|
188
|
+
actionEvent?: ActionEvent;
|
|
189
|
+
/**
|
|
190
|
+
* Unique event ID.
|
|
191
|
+
* Allows clients to ignore duplicate webhooks.
|
|
192
|
+
*/
|
|
193
|
+
id?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Assumes actions are also always typed to an entity_type
|
|
196
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
197
|
+
*/
|
|
198
|
+
entityFqdn?: string;
|
|
199
|
+
/**
|
|
200
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
201
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
202
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
203
|
+
*/
|
|
204
|
+
slug?: string;
|
|
205
|
+
/** ID of the entity associated with the event. */
|
|
206
|
+
entityId?: string;
|
|
207
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
208
|
+
eventTime?: Date | null;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
211
|
+
* (for example, GDPR).
|
|
212
|
+
*/
|
|
213
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
214
|
+
/** If present, indicates the action that triggered the event. */
|
|
215
|
+
originatedFrom?: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
218
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
219
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
220
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
221
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
222
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
223
|
+
*/
|
|
224
|
+
entityEventSequence?: string | null;
|
|
225
|
+
}
|
|
226
|
+
/** @oneof */
|
|
227
|
+
export interface DomainEventBodyOneOf {
|
|
228
|
+
createdEvent?: EntityCreatedEvent;
|
|
229
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
230
|
+
deletedEvent?: EntityDeletedEvent;
|
|
231
|
+
actionEvent?: ActionEvent;
|
|
232
|
+
}
|
|
233
|
+
export interface EntityCreatedEvent {
|
|
234
|
+
entityAsJson?: string;
|
|
235
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
236
|
+
restoreInfo?: RestoreInfo;
|
|
237
|
+
}
|
|
238
|
+
export interface RestoreInfo {
|
|
239
|
+
deletedDate?: Date | null;
|
|
240
|
+
}
|
|
241
|
+
export interface EntityUpdatedEvent {
|
|
242
|
+
/**
|
|
243
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
244
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
245
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
246
|
+
*/
|
|
247
|
+
currentEntityAsJson?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface EntityDeletedEvent {
|
|
250
|
+
/** Entity that was deleted */
|
|
251
|
+
deletedEntityAsJson?: string | null;
|
|
252
|
+
}
|
|
253
|
+
export interface ActionEvent {
|
|
254
|
+
bodyAsJson?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface Empty {
|
|
257
|
+
}
|
|
258
|
+
export interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
259
|
+
/** List of NileProtoTagsEntities that their tags will update. */
|
|
260
|
+
ids: string[];
|
|
261
|
+
/** List of Tags to assign */
|
|
262
|
+
assignTags?: Tags;
|
|
263
|
+
/** List of Tags to unAssign */
|
|
264
|
+
unassignTags?: Tags;
|
|
265
|
+
}
|
|
266
|
+
export interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
267
|
+
/** Results */
|
|
268
|
+
results?: BulkUpdateDisputeHistoryRecordTagsResult[];
|
|
269
|
+
/** Metadata regarding the bulk update operation */
|
|
270
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
271
|
+
}
|
|
272
|
+
export interface ItemMetadata {
|
|
273
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
274
|
+
id?: string | null;
|
|
275
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
276
|
+
originalIndex?: number;
|
|
277
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
278
|
+
success?: boolean;
|
|
279
|
+
/** Details about the error in case of failure. */
|
|
280
|
+
error?: ApplicationError;
|
|
281
|
+
}
|
|
282
|
+
export interface ApplicationError {
|
|
283
|
+
/** Error code. */
|
|
284
|
+
code?: string;
|
|
285
|
+
/** Description of the error. */
|
|
286
|
+
description?: string;
|
|
287
|
+
/** Data related to the error. */
|
|
288
|
+
data?: Record<string, any> | null;
|
|
289
|
+
}
|
|
290
|
+
export interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
291
|
+
/** Metadata regarding the specific single update operation */
|
|
292
|
+
itemMetadata?: ItemMetadata;
|
|
293
|
+
}
|
|
294
|
+
export interface BulkActionMetadata {
|
|
295
|
+
/** Number of items that were successfully processed. */
|
|
296
|
+
totalSuccesses?: number;
|
|
297
|
+
/** Number of items that couldn't be processed. */
|
|
298
|
+
totalFailures?: number;
|
|
299
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
300
|
+
undetailedFailures?: number;
|
|
301
|
+
}
|
|
302
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
303
|
+
/** Filter */
|
|
304
|
+
filter: Record<string, any> | null;
|
|
305
|
+
/** List of Tags to assign */
|
|
306
|
+
assignTags?: Tags;
|
|
307
|
+
/** List of Tags to unAssign */
|
|
308
|
+
unassignTags?: Tags;
|
|
309
|
+
}
|
|
310
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
311
|
+
/** Job ID */
|
|
312
|
+
jobId?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface MessageEnvelope {
|
|
315
|
+
/** App instance ID. */
|
|
316
|
+
instanceId?: string | null;
|
|
317
|
+
/** Event type. */
|
|
318
|
+
eventType?: string;
|
|
319
|
+
/** The identification type and identity data. */
|
|
320
|
+
identity?: IdentificationData;
|
|
321
|
+
/** Stringify payload. */
|
|
322
|
+
data?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
325
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
326
|
+
anonymousVisitorId?: string;
|
|
327
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
328
|
+
memberId?: string;
|
|
329
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
330
|
+
wixUserId?: string;
|
|
331
|
+
/** ID of an app. */
|
|
332
|
+
appId?: string;
|
|
333
|
+
/** @readonly */
|
|
334
|
+
identityType?: WebhookIdentityType;
|
|
335
|
+
}
|
|
336
|
+
/** @oneof */
|
|
337
|
+
export interface IdentificationDataIdOneOf {
|
|
338
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
339
|
+
anonymousVisitorId?: string;
|
|
340
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
341
|
+
memberId?: string;
|
|
342
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
343
|
+
wixUserId?: string;
|
|
344
|
+
/** ID of an app. */
|
|
345
|
+
appId?: string;
|
|
346
|
+
}
|
|
347
|
+
export declare enum WebhookIdentityType {
|
|
348
|
+
UNKNOWN = "UNKNOWN",
|
|
349
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
350
|
+
MEMBER = "MEMBER",
|
|
351
|
+
WIX_USER = "WIX_USER",
|
|
352
|
+
APP = "APP"
|
|
353
|
+
}
|
|
354
|
+
interface TagListNonNullableFields {
|
|
355
|
+
tagIds: string[];
|
|
356
|
+
}
|
|
357
|
+
interface TagsNonNullableFields {
|
|
358
|
+
tags?: TagListNonNullableFields;
|
|
359
|
+
}
|
|
360
|
+
interface DisputeHistoryRecordNonNullableFields {
|
|
361
|
+
id: string;
|
|
362
|
+
disputeId: string;
|
|
363
|
+
stage: DisputeStage;
|
|
364
|
+
status: DisputeStatus;
|
|
365
|
+
tags?: TagsNonNullableFields;
|
|
366
|
+
}
|
|
367
|
+
export interface GetDisputeHistoryRecordResponseNonNullableFields {
|
|
368
|
+
disputeHistoryRecord?: DisputeHistoryRecordNonNullableFields;
|
|
369
|
+
}
|
|
370
|
+
export interface QueryDisputeHistoryRecordsResponseNonNullableFields {
|
|
371
|
+
disputeHistoryRecords: DisputeHistoryRecordNonNullableFields[];
|
|
372
|
+
}
|
|
373
|
+
interface ApplicationErrorNonNullableFields {
|
|
374
|
+
code: string;
|
|
375
|
+
description: string;
|
|
376
|
+
}
|
|
377
|
+
interface ItemMetadataNonNullableFields {
|
|
378
|
+
originalIndex: number;
|
|
379
|
+
success: boolean;
|
|
380
|
+
error?: ApplicationErrorNonNullableFields;
|
|
381
|
+
}
|
|
382
|
+
interface BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields {
|
|
383
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
384
|
+
}
|
|
385
|
+
interface BulkActionMetadataNonNullableFields {
|
|
386
|
+
totalSuccesses: number;
|
|
387
|
+
totalFailures: number;
|
|
388
|
+
undetailedFailures: number;
|
|
389
|
+
}
|
|
390
|
+
export interface BulkUpdateDisputeHistoryRecordTagsResponseNonNullableFields {
|
|
391
|
+
results: BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields[];
|
|
392
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
393
|
+
}
|
|
394
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponseNonNullableFields {
|
|
395
|
+
jobId: string;
|
|
396
|
+
}
|
|
397
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.DisputeStatus = exports.DisputeStage = void 0;
|
|
4
|
+
var DisputeStage;
|
|
5
|
+
(function (DisputeStage) {
|
|
6
|
+
DisputeStage["UNKNOWN_DISPUTE_TYPE"] = "UNKNOWN_DISPUTE_TYPE";
|
|
7
|
+
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
8
|
+
DisputeStage["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
|
|
9
|
+
/** Request for Information / Inquiry */
|
|
10
|
+
DisputeStage["RFI"] = "RFI";
|
|
11
|
+
/** Chargeback */
|
|
12
|
+
DisputeStage["CHARGEBACK"] = "CHARGEBACK";
|
|
13
|
+
})(DisputeStage || (exports.DisputeStage = DisputeStage = {}));
|
|
14
|
+
var DisputeStatus;
|
|
15
|
+
(function (DisputeStatus) {
|
|
16
|
+
/** Unknown status */
|
|
17
|
+
DisputeStatus["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
18
|
+
/** Waiting for some merchant action */
|
|
19
|
+
DisputeStatus["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
20
|
+
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
21
|
+
DisputeStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
22
|
+
/** Waiting for some buyer action */
|
|
23
|
+
DisputeStatus["WAITING_BUYER"] = "WAITING_BUYER";
|
|
24
|
+
/** Dispute won */
|
|
25
|
+
DisputeStatus["WON"] = "WON";
|
|
26
|
+
/** Dispute lost */
|
|
27
|
+
DisputeStatus["LOST"] = "LOST";
|
|
28
|
+
})(DisputeStatus || (exports.DisputeStatus = DisputeStatus = {}));
|
|
29
|
+
var SortOrder;
|
|
30
|
+
(function (SortOrder) {
|
|
31
|
+
SortOrder["ASC"] = "ASC";
|
|
32
|
+
SortOrder["DESC"] = "DESC";
|
|
33
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
34
|
+
var WebhookIdentityType;
|
|
35
|
+
(function (WebhookIdentityType) {
|
|
36
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
37
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
38
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
39
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
40
|
+
WebhookIdentityType["APP"] = "APP";
|
|
41
|
+
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
|
|
42
|
+
//# sourceMappingURL=payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js","sourceRoot":"","sources":["../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.ts"],"names":[],"mappings":";;;AAuCA,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,4BAAZ,YAAY,QAQvB;AAED,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,6BAAb,aAAa,QAaxB;AA6FD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AA+ND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|