@wix/auto_sdk_payments_dispute-history-records 1.0.6 → 1.0.8
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 +20 -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 +40 -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 +458 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +50 -0
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/{index.d.mts → cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts} +43 -44
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +244 -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/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 +458 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +47 -0
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +1 -0
- package/build/{index.d.ts → es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts} +43 -44
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +214 -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 +20 -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 +40 -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 +458 -0
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +50 -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/{payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-60Otw4pt.d.mts → cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts} +87 -44
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +244 -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 +458 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +47 -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/{payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-60Otw4pt.d.ts → es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts} +87 -44
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +214 -0
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -386
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -354
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -54
- package/build/internal/index.d.ts +0 -54
- package/build/internal/index.js +0 -386
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -354
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -335
- package/build/internal/meta.d.ts +0 -335
- package/build/internal/meta.js +0 -238
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -208
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -335
- package/build/meta.d.ts +0 -335
- package/build/meta.js +0 -238
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -208
- package/build/meta.mjs.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
/** A DisputeHistoryRecord */
|
|
2
|
-
interface DisputeHistoryRecord {
|
|
3
|
+
export interface DisputeHistoryRecord {
|
|
3
4
|
/**
|
|
4
5
|
* DisputeHistoryRecord ID.
|
|
5
6
|
* @format GUID
|
|
@@ -68,7 +69,7 @@ interface DisputeHistoryRecord {
|
|
|
68
69
|
/** Tags */
|
|
69
70
|
tags?: Tags;
|
|
70
71
|
}
|
|
71
|
-
declare enum DisputeStage {
|
|
72
|
+
export declare enum DisputeStage {
|
|
72
73
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
73
74
|
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
74
75
|
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
@@ -77,7 +78,7 @@ declare enum DisputeStage {
|
|
|
77
78
|
/** Chargeback */
|
|
78
79
|
CHARGEBACK = "CHARGEBACK"
|
|
79
80
|
}
|
|
80
|
-
declare enum DisputeStatus {
|
|
81
|
+
export declare enum DisputeStatus {
|
|
81
82
|
/** Unknown status */
|
|
82
83
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
83
84
|
/** Waiting for some merchant action */
|
|
@@ -91,14 +92,14 @@ declare enum DisputeStatus {
|
|
|
91
92
|
/** Dispute lost */
|
|
92
93
|
LOST = "LOST"
|
|
93
94
|
}
|
|
94
|
-
declare enum DisputeChannel {
|
|
95
|
+
export declare enum DisputeChannel {
|
|
95
96
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
96
97
|
/** Internal, the dispute is reviewed by PSP */
|
|
97
98
|
INTERNAL = "INTERNAL",
|
|
98
99
|
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
99
100
|
EXTERNAL = "EXTERNAL"
|
|
100
101
|
}
|
|
101
|
-
interface ExtendedFields {
|
|
102
|
+
export interface ExtendedFields {
|
|
102
103
|
/**
|
|
103
104
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
104
105
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -131,11 +132,11 @@ interface ExtendedFields {
|
|
|
131
132
|
* }
|
|
132
133
|
* }
|
|
133
134
|
*/
|
|
134
|
-
interface Tags {
|
|
135
|
+
export interface Tags {
|
|
135
136
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
136
137
|
tags?: TagList;
|
|
137
138
|
}
|
|
138
|
-
interface TagList {
|
|
139
|
+
export interface TagList {
|
|
139
140
|
/**
|
|
140
141
|
* List of tag IDs
|
|
141
142
|
* @maxSize 100
|
|
@@ -143,22 +144,22 @@ interface TagList {
|
|
|
143
144
|
*/
|
|
144
145
|
tagIds?: string[];
|
|
145
146
|
}
|
|
146
|
-
interface GetDisputeHistoryRecordRequest {
|
|
147
|
+
export interface GetDisputeHistoryRecordRequest {
|
|
147
148
|
/**
|
|
148
149
|
* ID of the DisputeHistoryRecord to retrieve.
|
|
149
150
|
* @format GUID
|
|
150
151
|
*/
|
|
151
152
|
disputeHistoryRecordId: string;
|
|
152
153
|
}
|
|
153
|
-
interface GetDisputeHistoryRecordResponse {
|
|
154
|
+
export interface GetDisputeHistoryRecordResponse {
|
|
154
155
|
/** The requested DisputeHistoryRecord. */
|
|
155
156
|
disputeHistoryRecord?: DisputeHistoryRecord;
|
|
156
157
|
}
|
|
157
|
-
interface QueryDisputeHistoryRecordsRequest {
|
|
158
|
+
export interface QueryDisputeHistoryRecordsRequest {
|
|
158
159
|
/** WQL expression. */
|
|
159
160
|
query?: CursorQuery;
|
|
160
161
|
}
|
|
161
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
162
|
+
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
162
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`. */
|
|
163
164
|
cursorPaging?: CursorPaging;
|
|
164
165
|
/**
|
|
@@ -178,11 +179,11 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
178
179
|
sort?: Sorting[];
|
|
179
180
|
}
|
|
180
181
|
/** @oneof */
|
|
181
|
-
interface CursorQueryPagingMethodOneOf {
|
|
182
|
+
export interface CursorQueryPagingMethodOneOf {
|
|
182
183
|
/** 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`. */
|
|
183
184
|
cursorPaging?: CursorPaging;
|
|
184
185
|
}
|
|
185
|
-
interface Sorting {
|
|
186
|
+
export interface Sorting {
|
|
186
187
|
/**
|
|
187
188
|
* Name of the field to sort by.
|
|
188
189
|
* @maxLength 512
|
|
@@ -191,11 +192,11 @@ interface Sorting {
|
|
|
191
192
|
/** Sort order. */
|
|
192
193
|
order?: SortOrder;
|
|
193
194
|
}
|
|
194
|
-
declare enum SortOrder {
|
|
195
|
+
export declare enum SortOrder {
|
|
195
196
|
ASC = "ASC",
|
|
196
197
|
DESC = "DESC"
|
|
197
198
|
}
|
|
198
|
-
interface CursorPaging {
|
|
199
|
+
export interface CursorPaging {
|
|
199
200
|
/**
|
|
200
201
|
* Maximum number of items to return in the results.
|
|
201
202
|
* @max 100
|
|
@@ -210,13 +211,13 @@ interface CursorPaging {
|
|
|
210
211
|
*/
|
|
211
212
|
cursor?: string | null;
|
|
212
213
|
}
|
|
213
|
-
interface QueryDisputeHistoryRecordsResponse {
|
|
214
|
+
export interface QueryDisputeHistoryRecordsResponse {
|
|
214
215
|
/** List of DisputeHistoryRecords. */
|
|
215
216
|
disputeHistoryRecords?: DisputeHistoryRecord[];
|
|
216
217
|
/** Paging metadata */
|
|
217
218
|
pagingMetadata?: CursorPagingMetadata;
|
|
218
219
|
}
|
|
219
|
-
interface CursorPagingMetadata {
|
|
220
|
+
export interface CursorPagingMetadata {
|
|
220
221
|
/** Number of items returned in the response. */
|
|
221
222
|
count?: number | null;
|
|
222
223
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -229,7 +230,7 @@ interface CursorPagingMetadata {
|
|
|
229
230
|
*/
|
|
230
231
|
hasNext?: boolean | null;
|
|
231
232
|
}
|
|
232
|
-
interface Cursors {
|
|
233
|
+
export interface Cursors {
|
|
233
234
|
/**
|
|
234
235
|
* Cursor string pointing to the next page in the list of results.
|
|
235
236
|
* @maxLength 16000
|
|
@@ -241,7 +242,7 @@ interface Cursors {
|
|
|
241
242
|
*/
|
|
242
243
|
prev?: string | null;
|
|
243
244
|
}
|
|
244
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
245
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
245
246
|
createdEvent?: EntityCreatedEvent;
|
|
246
247
|
updatedEvent?: EntityUpdatedEvent;
|
|
247
248
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -284,19 +285,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
284
285
|
entityEventSequence?: string | null;
|
|
285
286
|
}
|
|
286
287
|
/** @oneof */
|
|
287
|
-
interface DomainEventBodyOneOf {
|
|
288
|
+
export interface DomainEventBodyOneOf {
|
|
288
289
|
createdEvent?: EntityCreatedEvent;
|
|
289
290
|
updatedEvent?: EntityUpdatedEvent;
|
|
290
291
|
deletedEvent?: EntityDeletedEvent;
|
|
291
292
|
actionEvent?: ActionEvent;
|
|
292
293
|
}
|
|
293
|
-
interface EntityCreatedEvent {
|
|
294
|
+
export interface EntityCreatedEvent {
|
|
294
295
|
entity?: string;
|
|
295
296
|
}
|
|
296
|
-
interface RestoreInfo {
|
|
297
|
+
export interface RestoreInfo {
|
|
297
298
|
deletedDate?: Date | null;
|
|
298
299
|
}
|
|
299
|
-
interface EntityUpdatedEvent {
|
|
300
|
+
export interface EntityUpdatedEvent {
|
|
300
301
|
/**
|
|
301
302
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
302
303
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -304,16 +305,16 @@ interface EntityUpdatedEvent {
|
|
|
304
305
|
*/
|
|
305
306
|
currentEntity?: string;
|
|
306
307
|
}
|
|
307
|
-
interface EntityDeletedEvent {
|
|
308
|
+
export interface EntityDeletedEvent {
|
|
308
309
|
/** Entity that was deleted */
|
|
309
310
|
deletedEntity?: string | null;
|
|
310
311
|
}
|
|
311
|
-
interface ActionEvent {
|
|
312
|
+
export interface ActionEvent {
|
|
312
313
|
body?: string;
|
|
313
314
|
}
|
|
314
|
-
interface Empty {
|
|
315
|
+
export interface Empty {
|
|
315
316
|
}
|
|
316
|
-
interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
317
|
+
export interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
317
318
|
/**
|
|
318
319
|
* List of NileProtoTagsEntities that their tags will update.
|
|
319
320
|
* @minSize 1
|
|
@@ -326,7 +327,7 @@ interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
|
326
327
|
/** List of Tags to unAssign */
|
|
327
328
|
unassignTags?: Tags;
|
|
328
329
|
}
|
|
329
|
-
interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
330
|
+
export interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
330
331
|
/**
|
|
331
332
|
* Results
|
|
332
333
|
* @minSize 1
|
|
@@ -336,7 +337,7 @@ interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
|
336
337
|
/** Metadata regarding the bulk update operation */
|
|
337
338
|
bulkActionMetadata?: BulkActionMetadata;
|
|
338
339
|
}
|
|
339
|
-
interface ItemMetadata {
|
|
340
|
+
export interface ItemMetadata {
|
|
340
341
|
/**
|
|
341
342
|
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
342
343
|
* @format GUID
|
|
@@ -349,7 +350,7 @@ interface ItemMetadata {
|
|
|
349
350
|
/** Details about the error in case of failure. */
|
|
350
351
|
error?: ApplicationError;
|
|
351
352
|
}
|
|
352
|
-
interface ApplicationError {
|
|
353
|
+
export interface ApplicationError {
|
|
353
354
|
/** Error code. */
|
|
354
355
|
code?: string;
|
|
355
356
|
/** Description of the error. */
|
|
@@ -357,11 +358,11 @@ interface ApplicationError {
|
|
|
357
358
|
/** Data related to the error. */
|
|
358
359
|
data?: Record<string, any> | null;
|
|
359
360
|
}
|
|
360
|
-
interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
361
|
+
export interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
361
362
|
/** Metadata regarding the specific single update operation */
|
|
362
363
|
itemMetadata?: ItemMetadata;
|
|
363
364
|
}
|
|
364
|
-
interface BulkActionMetadata {
|
|
365
|
+
export interface BulkActionMetadata {
|
|
365
366
|
/** Number of items that were successfully processed. */
|
|
366
367
|
totalSuccesses?: number;
|
|
367
368
|
/** Number of items that couldn't be processed. */
|
|
@@ -369,7 +370,7 @@ interface BulkActionMetadata {
|
|
|
369
370
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
370
371
|
undetailedFailures?: number;
|
|
371
372
|
}
|
|
372
|
-
interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
373
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
373
374
|
/** Filter */
|
|
374
375
|
filter: Record<string, any> | null;
|
|
375
376
|
/** List of Tags to assign */
|
|
@@ -377,14 +378,14 @@ interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
|
377
378
|
/** List of Tags to unAssign */
|
|
378
379
|
unassignTags?: Tags;
|
|
379
380
|
}
|
|
380
|
-
interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
381
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
381
382
|
/**
|
|
382
383
|
* Job ID
|
|
383
384
|
* @format GUID
|
|
384
385
|
*/
|
|
385
386
|
jobId?: string;
|
|
386
387
|
}
|
|
387
|
-
interface MessageEnvelope {
|
|
388
|
+
export interface MessageEnvelope {
|
|
388
389
|
/**
|
|
389
390
|
* App instance ID.
|
|
390
391
|
* @format GUID
|
|
@@ -400,7 +401,7 @@ interface MessageEnvelope {
|
|
|
400
401
|
/** Stringify payload. */
|
|
401
402
|
data?: string;
|
|
402
403
|
}
|
|
403
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
404
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
404
405
|
/**
|
|
405
406
|
* ID of a site visitor that has not logged in to the site.
|
|
406
407
|
* @format GUID
|
|
@@ -425,7 +426,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
425
426
|
identityType?: WebhookIdentityType;
|
|
426
427
|
}
|
|
427
428
|
/** @oneof */
|
|
428
|
-
interface IdentificationDataIdOneOf {
|
|
429
|
+
export interface IdentificationDataIdOneOf {
|
|
429
430
|
/**
|
|
430
431
|
* ID of a site visitor that has not logged in to the site.
|
|
431
432
|
* @format GUID
|
|
@@ -447,13 +448,33 @@ interface IdentificationDataIdOneOf {
|
|
|
447
448
|
*/
|
|
448
449
|
appId?: string;
|
|
449
450
|
}
|
|
450
|
-
declare enum WebhookIdentityType {
|
|
451
|
+
export declare enum WebhookIdentityType {
|
|
451
452
|
UNKNOWN = "UNKNOWN",
|
|
452
453
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
453
454
|
MEMBER = "MEMBER",
|
|
454
455
|
WIX_USER = "WIX_USER",
|
|
455
456
|
APP = "APP"
|
|
456
457
|
}
|
|
458
|
+
type DisputeHistoryRecordNonNullablePaths = `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.tags.tagIds`;
|
|
459
|
+
/**
|
|
460
|
+
* Retrieves a DisputeHistoryRecord.
|
|
461
|
+
* @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.
|
|
462
|
+
* @internal
|
|
463
|
+
* @documentationMaturity preview
|
|
464
|
+
* @requiredField disputeHistoryRecordId
|
|
465
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
466
|
+
* @returns The requested DisputeHistoryRecord.
|
|
467
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
|
|
468
|
+
*/
|
|
469
|
+
export declare function getDisputeHistoryRecord(disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, DisputeHistoryRecordNonNullablePaths>>;
|
|
470
|
+
/**
|
|
471
|
+
* Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].
|
|
472
|
+
* @internal
|
|
473
|
+
* @documentationMaturity preview
|
|
474
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
475
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
|
|
476
|
+
*/
|
|
477
|
+
export declare function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder;
|
|
457
478
|
interface QueryCursorResult {
|
|
458
479
|
cursors: Cursors;
|
|
459
480
|
hasNext: () => boolean;
|
|
@@ -461,13 +482,13 @@ interface QueryCursorResult {
|
|
|
461
482
|
length: number;
|
|
462
483
|
pageSize: number;
|
|
463
484
|
}
|
|
464
|
-
interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
|
|
485
|
+
export interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
|
|
465
486
|
items: DisputeHistoryRecord[];
|
|
466
487
|
query: DisputeHistoryRecordsQueryBuilder;
|
|
467
488
|
next: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
468
489
|
prev: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
469
490
|
}
|
|
470
|
-
interface DisputeHistoryRecordsQueryBuilder {
|
|
491
|
+
export interface DisputeHistoryRecordsQueryBuilder {
|
|
471
492
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
472
493
|
* @param value - Value to compare against.
|
|
473
494
|
* @documentationMaturity preview
|
|
@@ -511,17 +532,39 @@ interface DisputeHistoryRecordsQueryBuilder {
|
|
|
511
532
|
/** @documentationMaturity preview */
|
|
512
533
|
find: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
513
534
|
}
|
|
514
|
-
|
|
535
|
+
/**
|
|
536
|
+
* Synchronously update tags on multiple products, by list of product ids
|
|
537
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
538
|
+
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
539
|
+
* @internal
|
|
540
|
+
* @documentationMaturity preview
|
|
541
|
+
* @requiredField ids
|
|
542
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
543
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
|
|
544
|
+
*/
|
|
545
|
+
export declare function bulkUpdateDisputeHistoryRecordTags(ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
546
|
+
export interface BulkUpdateDisputeHistoryRecordTagsOptions {
|
|
515
547
|
/** List of Tags to assign */
|
|
516
548
|
assignTags?: Tags;
|
|
517
549
|
/** List of Tags to unAssign */
|
|
518
550
|
unassignTags?: Tags;
|
|
519
551
|
}
|
|
520
|
-
|
|
552
|
+
/**
|
|
553
|
+
* Asynchronously update tags on multiple products, by provided filter
|
|
554
|
+
* An empty filter will update all products
|
|
555
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
556
|
+
* @param filter - Filter
|
|
557
|
+
* @internal
|
|
558
|
+
* @documentationMaturity preview
|
|
559
|
+
* @requiredField filter
|
|
560
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
561
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
|
|
562
|
+
*/
|
|
563
|
+
export declare function bulkUpdateDisputeHistoryRecordTagsByFilter(filter: Record<string, any>, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`>>;
|
|
564
|
+
export interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
|
|
521
565
|
/** List of Tags to assign */
|
|
522
566
|
assignTags?: Tags;
|
|
523
567
|
/** List of Tags to unAssign */
|
|
524
568
|
unassignTags?: Tags;
|
|
525
569
|
}
|
|
526
|
-
|
|
527
|
-
export { type ActionEvent as A, type BulkUpdateDisputeHistoryRecordTagsOptions as B, type CursorQuery as C, type DisputeHistoryRecord as D, type ExtendedFields as E, type IdentificationData as F, type GetDisputeHistoryRecordRequest as G, type IdentificationDataIdOneOf as H, type ItemMetadata as I, type DisputeHistoryRecordsQueryResult as J, type MessageEnvelope as M, type QueryDisputeHistoryRecordsRequest as Q, type RestoreInfo as R, SortOrder as S, type Tags as T, WebhookIdentityType as W, type DisputeHistoryRecordsQueryBuilder as a, type BulkUpdateDisputeHistoryRecordTagsResponse as b, type BulkUpdateDisputeHistoryRecordTagsByFilterOptions as c, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse as d, DisputeStage as e, DisputeStatus as f, DisputeChannel as g, type TagList as h, type GetDisputeHistoryRecordResponse as i, type CursorQueryPagingMethodOneOf as j, type Sorting as k, type CursorPaging as l, type QueryDisputeHistoryRecordsResponse as m, type CursorPagingMetadata as n, type Cursors as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type EntityUpdatedEvent as s, type EntityDeletedEvent as t, type Empty as u, type BulkUpdateDisputeHistoryRecordTagsRequest as v, type ApplicationError as w, type BulkUpdateDisputeHistoryRecordTagsResult as x, type BulkActionMetadata as y, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest as z };
|
|
570
|
+
export {};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
+
import { queryBuilder } from '@wix/sdk-runtime/query-builder';
|
|
3
|
+
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
4
|
+
import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';
|
|
5
|
+
export var DisputeStage;
|
|
6
|
+
(function (DisputeStage) {
|
|
7
|
+
DisputeStage["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
|
|
8
|
+
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
9
|
+
DisputeStage["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
|
|
10
|
+
/** Request for Information / Inquiry */
|
|
11
|
+
DisputeStage["RFI"] = "RFI";
|
|
12
|
+
/** Chargeback */
|
|
13
|
+
DisputeStage["CHARGEBACK"] = "CHARGEBACK";
|
|
14
|
+
})(DisputeStage || (DisputeStage = {}));
|
|
15
|
+
export var DisputeStatus;
|
|
16
|
+
(function (DisputeStatus) {
|
|
17
|
+
/** Unknown status */
|
|
18
|
+
DisputeStatus["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
19
|
+
/** Waiting for some merchant action */
|
|
20
|
+
DisputeStatus["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
21
|
+
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
22
|
+
DisputeStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
23
|
+
/** Waiting for some buyer action */
|
|
24
|
+
DisputeStatus["WAITING_BUYER"] = "WAITING_BUYER";
|
|
25
|
+
/** Dispute won */
|
|
26
|
+
DisputeStatus["WON"] = "WON";
|
|
27
|
+
/** Dispute lost */
|
|
28
|
+
DisputeStatus["LOST"] = "LOST";
|
|
29
|
+
})(DisputeStatus || (DisputeStatus = {}));
|
|
30
|
+
export var DisputeChannel;
|
|
31
|
+
(function (DisputeChannel) {
|
|
32
|
+
DisputeChannel["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
|
|
33
|
+
/** Internal, the dispute is reviewed by PSP */
|
|
34
|
+
DisputeChannel["INTERNAL"] = "INTERNAL";
|
|
35
|
+
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
36
|
+
DisputeChannel["EXTERNAL"] = "EXTERNAL";
|
|
37
|
+
})(DisputeChannel || (DisputeChannel = {}));
|
|
38
|
+
export var SortOrder;
|
|
39
|
+
(function (SortOrder) {
|
|
40
|
+
SortOrder["ASC"] = "ASC";
|
|
41
|
+
SortOrder["DESC"] = "DESC";
|
|
42
|
+
})(SortOrder || (SortOrder = {}));
|
|
43
|
+
export var WebhookIdentityType;
|
|
44
|
+
(function (WebhookIdentityType) {
|
|
45
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
46
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
47
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
48
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
49
|
+
WebhookIdentityType["APP"] = "APP";
|
|
50
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a DisputeHistoryRecord.
|
|
53
|
+
* @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.
|
|
54
|
+
* @internal
|
|
55
|
+
* @documentationMaturity preview
|
|
56
|
+
* @requiredField disputeHistoryRecordId
|
|
57
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
58
|
+
* @returns The requested DisputeHistoryRecord.
|
|
59
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
|
|
60
|
+
*/
|
|
61
|
+
export async function getDisputeHistoryRecord(disputeHistoryRecordId) {
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
64
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
65
|
+
disputeHistoryRecordId: disputeHistoryRecordId,
|
|
66
|
+
});
|
|
67
|
+
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(payload);
|
|
68
|
+
sideEffects?.onSiteCall?.();
|
|
69
|
+
try {
|
|
70
|
+
const result = await httpClient.request(reqOpts);
|
|
71
|
+
sideEffects?.onSuccess?.(result);
|
|
72
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
73
|
+
?.disputeHistoryRecord;
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
const transformedError = sdkTransformError(err, {
|
|
77
|
+
spreadPathsToArguments: {},
|
|
78
|
+
explicitPathsToArguments: { disputeHistoryRecordId: '$[0]' },
|
|
79
|
+
singleArgumentUnchanged: false,
|
|
80
|
+
}, ['disputeHistoryRecordId']);
|
|
81
|
+
sideEffects?.onError?.(err);
|
|
82
|
+
throw transformedError;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].
|
|
87
|
+
* @internal
|
|
88
|
+
* @documentationMaturity preview
|
|
89
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
90
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
|
|
91
|
+
*/
|
|
92
|
+
export function queryDisputeHistoryRecords() {
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
95
|
+
return queryBuilder({
|
|
96
|
+
func: async (payload) => {
|
|
97
|
+
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(payload);
|
|
98
|
+
sideEffects?.onSiteCall?.();
|
|
99
|
+
try {
|
|
100
|
+
const result = await httpClient.request(reqOpts);
|
|
101
|
+
sideEffects?.onSuccess?.(result);
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
catch (err) {
|
|
105
|
+
sideEffects?.onError?.(err);
|
|
106
|
+
throw err;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
requestTransformer: (query) => {
|
|
110
|
+
const args = [query, {}];
|
|
111
|
+
return renameKeysFromSDKRequestToRESTRequest({
|
|
112
|
+
...args?.[1],
|
|
113
|
+
query: args?.[0],
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
responseTransformer: ({ data, }) => {
|
|
117
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(data);
|
|
118
|
+
return {
|
|
119
|
+
items: transformedData?.disputeHistoryRecords,
|
|
120
|
+
pagingMetadata: transformedData?.pagingMetadata,
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
errorTransformer: (err) => {
|
|
124
|
+
const transformedError = sdkTransformError(err, {
|
|
125
|
+
spreadPathsToArguments: {},
|
|
126
|
+
explicitPathsToArguments: { query: '$[0]' },
|
|
127
|
+
singleArgumentUnchanged: false,
|
|
128
|
+
});
|
|
129
|
+
throw transformedError;
|
|
130
|
+
},
|
|
131
|
+
pagingMethod: 'CURSOR',
|
|
132
|
+
transformationPaths: {},
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Synchronously update tags on multiple products, by list of product ids
|
|
137
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
138
|
+
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
139
|
+
* @internal
|
|
140
|
+
* @documentationMaturity preview
|
|
141
|
+
* @requiredField ids
|
|
142
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
143
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
|
|
144
|
+
*/
|
|
145
|
+
export async function bulkUpdateDisputeHistoryRecordTags(ids, options) {
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
148
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
149
|
+
ids: ids,
|
|
150
|
+
assignTags: options?.assignTags,
|
|
151
|
+
unassignTags: options?.unassignTags,
|
|
152
|
+
});
|
|
153
|
+
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(payload);
|
|
154
|
+
sideEffects?.onSiteCall?.();
|
|
155
|
+
try {
|
|
156
|
+
const result = await httpClient.request(reqOpts);
|
|
157
|
+
sideEffects?.onSuccess?.(result);
|
|
158
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
159
|
+
}
|
|
160
|
+
catch (err) {
|
|
161
|
+
const transformedError = sdkTransformError(err, {
|
|
162
|
+
spreadPathsToArguments: {},
|
|
163
|
+
explicitPathsToArguments: {
|
|
164
|
+
ids: '$[0]',
|
|
165
|
+
assignTags: '$[1].assignTags',
|
|
166
|
+
unassignTags: '$[1].unassignTags',
|
|
167
|
+
},
|
|
168
|
+
singleArgumentUnchanged: false,
|
|
169
|
+
}, ['ids', 'options']);
|
|
170
|
+
sideEffects?.onError?.(err);
|
|
171
|
+
throw transformedError;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Asynchronously update tags on multiple products, by provided filter
|
|
176
|
+
* An empty filter will update all products
|
|
177
|
+
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
178
|
+
* @param filter - Filter
|
|
179
|
+
* @internal
|
|
180
|
+
* @documentationMaturity preview
|
|
181
|
+
* @requiredField filter
|
|
182
|
+
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
183
|
+
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
|
|
184
|
+
*/
|
|
185
|
+
export async function bulkUpdateDisputeHistoryRecordTagsByFilter(filter, options) {
|
|
186
|
+
// @ts-ignore
|
|
187
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
188
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
189
|
+
filter: filter,
|
|
190
|
+
assignTags: options?.assignTags,
|
|
191
|
+
unassignTags: options?.unassignTags,
|
|
192
|
+
});
|
|
193
|
+
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(payload);
|
|
194
|
+
sideEffects?.onSiteCall?.();
|
|
195
|
+
try {
|
|
196
|
+
const result = await httpClient.request(reqOpts);
|
|
197
|
+
sideEffects?.onSuccess?.(result);
|
|
198
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
199
|
+
}
|
|
200
|
+
catch (err) {
|
|
201
|
+
const transformedError = sdkTransformError(err, {
|
|
202
|
+
spreadPathsToArguments: {},
|
|
203
|
+
explicitPathsToArguments: {
|
|
204
|
+
filter: '$[0]',
|
|
205
|
+
assignTags: '$[1].assignTags',
|
|
206
|
+
unassignTags: '$[1].unassignTags',
|
|
207
|
+
},
|
|
208
|
+
singleArgumentUnchanged: false,
|
|
209
|
+
}, ['filter', 'options']);
|
|
210
|
+
sideEffects?.onError?.(err);
|
|
211
|
+
throw transformedError;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js","sourceRoot":"","sources":["../../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,gEAAgE,MAAM,8FAA8F,CAAC;AA0EjL,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,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,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,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;AAwGD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,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AUG;AACH,MAAM,CAAC,KAAK,UAAU,0CAA0C,CAC9D,MAA2B,EAC3B,OAA2D;IAI3D,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC;QACpD,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,YAAY,EAAE,OAAO,EAAE,YAAY;KACpC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,gEAAgE,CAAC,0CAA0C,CACzG,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE,iBAAiB;gBAC7B,YAAY,EAAE,mBAAmB;aAClC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,QAAQ,EAAE,SAAS,CAAC,CACtB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_payments_dispute-history-records",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"sideEffects": false,
|
|
10
|
-
"main": "
|
|
11
|
-
"types": "./build/index.d.
|
|
10
|
+
"main": "./build/cjs/index.js",
|
|
11
|
+
"types": "./build/es/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./build/index.
|
|
15
|
-
"require": "./build/index.js",
|
|
16
|
-
"types": "./build/index.d.
|
|
14
|
+
"import": "./build/es/index.js",
|
|
15
|
+
"require": "./build/cjs/index.js",
|
|
16
|
+
"types": "./build/es/index.d.ts"
|
|
17
17
|
},
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
"./meta": {
|
|
20
|
-
"import": "./build/meta.
|
|
21
|
-
"require": "./build/meta.js",
|
|
22
|
-
"types": "./build/meta.d.
|
|
20
|
+
"import": "./build/es/meta.js",
|
|
21
|
+
"require": "./build/cjs/meta.js",
|
|
22
|
+
"types": "./build/es/meta.d.ts"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -32,11 +32,10 @@
|
|
|
32
32
|
"@wix/sdk-types": "^1.13.16"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"tsup": "^8.4.0",
|
|
36
35
|
"typescript": "^5.3.2"
|
|
37
36
|
},
|
|
38
37
|
"scripts": {
|
|
39
|
-
"build": "
|
|
38
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
|
|
40
39
|
"test": ":"
|
|
41
40
|
},
|
|
42
41
|
"wix": {
|
|
@@ -49,5 +48,5 @@
|
|
|
49
48
|
"fqdn": "wix.payments.dispute_history_records.v1.dispute_history_record"
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
|
-
"falconPackageHash": "
|
|
51
|
+
"falconPackageHash": "0fff7a42ab82b6772249d97cc78c946f9b7517f89870f00a51d881ab"
|
|
53
52
|
}
|