@wix/auto_sdk_payments_dispute-history-records 1.0.26 → 1.0.28
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 +42 -547
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +648 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +61 -40
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +42 -547
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +648 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +61 -40
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +21 -21
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +95 -58
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +59 -39
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +21 -21
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +95 -58
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +59 -39
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequest$1, GetDisputeHistoryRecordResponse as GetDisputeHistoryRecordResponse$1, QueryDisputeHistoryRecordsRequest as QueryDisputeHistoryRecordsRequest$1, QueryDisputeHistoryRecordsResponse as QueryDisputeHistoryRecordsResponse$1, BulkUpdateDisputeHistoryRecordTagsRequest as BulkUpdateDisputeHistoryRecordTagsRequest$1, BulkUpdateDisputeHistoryRecordTagsResponse as BulkUpdateDisputeHistoryRecordTagsResponse$1, BulkUpdateDisputeHistoryRecordTagsByFilterRequest as BulkUpdateDisputeHistoryRecordTagsByFilterRequest$1, BulkUpdateDisputeHistoryRecordTagsByFilterResponse as BulkUpdateDisputeHistoryRecordTagsByFilterResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* A dispute history record represents a snapshot of dispute information at a specific point in time.
|
|
6
|
+
*
|
|
7
|
+
* Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail for compliance and audit requirements.
|
|
8
|
+
*/
|
|
5
9
|
interface DisputeHistoryRecord {
|
|
6
10
|
/**
|
|
7
11
|
* DisputeHistoryRecord ID.
|
|
@@ -9,9 +13,10 @@ interface DisputeHistoryRecord {
|
|
|
9
13
|
* @readonly
|
|
10
14
|
* @immutable
|
|
11
15
|
*/
|
|
12
|
-
id?: string
|
|
16
|
+
id?: string;
|
|
13
17
|
/**
|
|
14
|
-
* Revision number
|
|
18
|
+
* Revision number, which increments by 1 each time the dispute history record is updated.
|
|
19
|
+
* To prevent conflicting changes, the existing revision must be specified when updating a dispute history record.
|
|
15
20
|
* @readonly
|
|
16
21
|
*/
|
|
17
22
|
revision?: string | null;
|
|
@@ -28,54 +33,57 @@ interface DisputeHistoryRecord {
|
|
|
28
33
|
*/
|
|
29
34
|
updatedDate?: Date | null;
|
|
30
35
|
/**
|
|
31
|
-
*
|
|
36
|
+
* ID of the dispute that this history record tracks. Each dispute can have multiple history records showing its lifecycle changes.
|
|
32
37
|
* @format GUID
|
|
33
38
|
* @immutable
|
|
34
39
|
*/
|
|
35
40
|
disputeId?: string;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* Stage of the dispute lifecycle at the time this record was created.
|
|
43
|
+
* Indicates whether this was an inquiry (request for information) or a chargeback (formal dispute).
|
|
38
44
|
* @readonly
|
|
39
45
|
* @immutable
|
|
40
46
|
*/
|
|
41
47
|
stage?: DisputeStageWithLiterals;
|
|
42
48
|
/**
|
|
43
|
-
*
|
|
49
|
+
* Status of the dispute at the time this record was created.
|
|
50
|
+
* Indicates what action was required and by whom at this point in the dispute lifecycle.
|
|
44
51
|
* @readonly
|
|
45
52
|
* @immutable
|
|
46
53
|
*/
|
|
47
54
|
status?: DisputeStatusWithLiterals;
|
|
48
55
|
/**
|
|
49
|
-
*
|
|
56
|
+
* Date by which action must be taken on the dispute.
|
|
57
|
+
* After this date, the dispute may be automatically resolved against the merchant.
|
|
50
58
|
* @readonly
|
|
51
59
|
* @immutable
|
|
52
60
|
*/
|
|
53
61
|
dueDate?: Date | null;
|
|
54
62
|
/**
|
|
55
|
-
*
|
|
63
|
+
* ID of the payment charge that is being disputed.
|
|
64
|
+
* Links this history record to the original transaction.
|
|
56
65
|
* @format GUID
|
|
57
66
|
* @readonly
|
|
58
67
|
* @immutable
|
|
59
68
|
*/
|
|
60
69
|
chargeId?: string;
|
|
61
70
|
/**
|
|
62
|
-
*
|
|
63
|
-
* Internal
|
|
64
|
-
* External - this dispute is created on bank side
|
|
71
|
+
* Channel through which the dispute is being processed.
|
|
72
|
+
* Internal disputes are handled by the payment processor, while external disputes go through the card network or issuing bank.
|
|
65
73
|
* @readonly
|
|
66
74
|
* @immutable
|
|
67
75
|
*/
|
|
68
76
|
channel?: DisputeChannelWithLiterals;
|
|
69
|
-
/**
|
|
77
|
+
/** Custom field data for the dispute history record. Extended fields must be configured in the app dashboard before they can be accessed with API calls. */
|
|
70
78
|
extendedFields?: ExtendedFields;
|
|
71
79
|
/** Tags */
|
|
72
80
|
tags?: Tags;
|
|
73
81
|
}
|
|
74
82
|
declare enum DisputeStage {
|
|
75
83
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
76
|
-
/**
|
|
84
|
+
/** Formal dispute filed by the cardholder through their bank. */
|
|
77
85
|
CHARGEBACK = "CHARGEBACK",
|
|
78
|
-
/**
|
|
86
|
+
/** Request for additional information about the transaction, which may escalate to a chargeback if not resolved. */
|
|
79
87
|
INQUIRY = "INQUIRY"
|
|
80
88
|
}
|
|
81
89
|
/** @enumType */
|
|
@@ -83,28 +91,28 @@ type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGE
|
|
|
83
91
|
declare enum DisputeStatus {
|
|
84
92
|
/** Unknown status */
|
|
85
93
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
86
|
-
/** Waiting for
|
|
94
|
+
/** Waiting for merchant action, such as submitting evidence or accepting the dispute. */
|
|
87
95
|
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
88
|
-
/** Dispute is under review by
|
|
96
|
+
/** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */
|
|
89
97
|
UNDER_REVIEW = "UNDER_REVIEW",
|
|
90
|
-
/** Waiting for
|
|
98
|
+
/** Waiting for buyer action or response. */
|
|
91
99
|
WAITING_BUYER = "WAITING_BUYER",
|
|
92
|
-
/** Dispute
|
|
100
|
+
/** Dispute was resolved in favor of the merchant. */
|
|
93
101
|
WON = "WON",
|
|
94
|
-
/** Dispute
|
|
102
|
+
/** Dispute was resolved in favor of the cardholder. */
|
|
95
103
|
LOST = "LOST",
|
|
96
|
-
/** Evidence
|
|
104
|
+
/** Evidence was submitted and is being processed on the provider side. This status will be removed in a future version. */
|
|
97
105
|
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
98
|
-
/** The dispute was accepted and the acceptance is being processed on provider side */
|
|
106
|
+
/** The dispute was accepted and the acceptance is being processed on the provider side. This status will be removed in a future version. */
|
|
99
107
|
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
100
108
|
}
|
|
101
109
|
/** @enumType */
|
|
102
110
|
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
103
111
|
declare enum DisputeChannel {
|
|
104
112
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
105
|
-
/**
|
|
113
|
+
/** Dispute is reviewed internally by the payment service provider. */
|
|
106
114
|
INTERNAL = "INTERNAL",
|
|
107
|
-
/**
|
|
115
|
+
/** Dispute is reviewed externally by the bank or other financial institution. */
|
|
108
116
|
EXTERNAL = "EXTERNAL"
|
|
109
117
|
}
|
|
110
118
|
/** @enumType */
|
|
@@ -124,6 +132,7 @@ interface ExtendedFields {
|
|
|
124
132
|
* Common object for tags.
|
|
125
133
|
* Should be use as in this example:
|
|
126
134
|
* message Foo {
|
|
135
|
+
* option (.wix.api.decomposite_of) = "wix.commons.v2.tags.Foo";
|
|
127
136
|
* string id = 1;
|
|
128
137
|
* ...
|
|
129
138
|
* Tags tags = 5
|
|
@@ -133,7 +142,7 @@ interface ExtendedFields {
|
|
|
133
142
|
* {
|
|
134
143
|
* id: "123"
|
|
135
144
|
* tags: {
|
|
136
|
-
*
|
|
145
|
+
* public_tags: {
|
|
137
146
|
* tag_ids:["11","22"]
|
|
138
147
|
* },
|
|
139
148
|
* private_tags: {
|
|
@@ -143,12 +152,14 @@ interface ExtendedFields {
|
|
|
143
152
|
* }
|
|
144
153
|
*/
|
|
145
154
|
interface Tags {
|
|
155
|
+
/** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */
|
|
156
|
+
privateTags?: TagList;
|
|
146
157
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
147
|
-
|
|
158
|
+
publicTags?: TagList;
|
|
148
159
|
}
|
|
149
160
|
interface TagList {
|
|
150
161
|
/**
|
|
151
|
-
* List of tag IDs
|
|
162
|
+
* List of tag IDs.
|
|
152
163
|
* @maxSize 100
|
|
153
164
|
* @maxLength 5
|
|
154
165
|
*/
|
|
@@ -156,17 +167,21 @@ interface TagList {
|
|
|
156
167
|
}
|
|
157
168
|
interface GetDisputeHistoryRecordRequest {
|
|
158
169
|
/**
|
|
159
|
-
* ID of the
|
|
170
|
+
* ID of the dispute history record to retrieve.
|
|
160
171
|
* @format GUID
|
|
161
172
|
*/
|
|
162
173
|
disputeHistoryRecordId: string;
|
|
163
174
|
}
|
|
164
175
|
interface GetDisputeHistoryRecordResponse {
|
|
165
|
-
/** The requested
|
|
176
|
+
/** The requested dispute history record. */
|
|
166
177
|
disputeHistoryRecord?: DisputeHistoryRecord;
|
|
167
178
|
}
|
|
168
179
|
interface QueryDisputeHistoryRecordsRequest {
|
|
169
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* WQL expression for filtering, sorting, and paging dispute history records.
|
|
182
|
+
*
|
|
183
|
+
* Supported properties: `disputeId`, `stage`, `status`, `dueDate`, `chargeId`, `channel`, `createdDate`, `updatedDate`
|
|
184
|
+
*/
|
|
170
185
|
query?: CursorQuery;
|
|
171
186
|
}
|
|
172
187
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -224,9 +239,9 @@ interface CursorPaging {
|
|
|
224
239
|
cursor?: string | null;
|
|
225
240
|
}
|
|
226
241
|
interface QueryDisputeHistoryRecordsResponse {
|
|
227
|
-
/** List of
|
|
242
|
+
/** List of dispute history records matching the query criteria. */
|
|
228
243
|
disputeHistoryRecords?: DisputeHistoryRecord[];
|
|
229
|
-
/** Paging metadata */
|
|
244
|
+
/** Paging metadata for cursor-based pagination. */
|
|
230
245
|
pagingMetadata?: CursorPagingMetadata;
|
|
231
246
|
}
|
|
232
247
|
interface CursorPagingMetadata {
|
|
@@ -256,25 +271,27 @@ interface Cursors {
|
|
|
256
271
|
}
|
|
257
272
|
interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
258
273
|
/**
|
|
259
|
-
* List of
|
|
274
|
+
* List of dispute history record IDs whose tags will be updated.
|
|
275
|
+
*
|
|
276
|
+
* Limited to 100 IDs per request.
|
|
260
277
|
* @minSize 1
|
|
261
278
|
* @maxSize 100
|
|
262
279
|
* @format GUID
|
|
263
280
|
*/
|
|
264
281
|
ids: string[];
|
|
265
|
-
/**
|
|
282
|
+
/** Tags to assign to the dispute history records. */
|
|
266
283
|
assignTags?: Tags;
|
|
267
|
-
/**
|
|
284
|
+
/** Tags to unassign from the dispute history records. */
|
|
268
285
|
unassignTags?: Tags;
|
|
269
286
|
}
|
|
270
287
|
interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
271
288
|
/**
|
|
272
|
-
* Results
|
|
289
|
+
* Results of the bulk tag update operation for each dispute history record.
|
|
273
290
|
* @minSize 1
|
|
274
291
|
* @maxSize 100
|
|
275
292
|
*/
|
|
276
293
|
results?: BulkUpdateDisputeHistoryRecordTagsResult[];
|
|
277
|
-
/** Metadata
|
|
294
|
+
/** Metadata about the bulk update operation. */
|
|
278
295
|
bulkActionMetadata?: BulkActionMetadata;
|
|
279
296
|
}
|
|
280
297
|
interface ItemMetadata {
|
|
@@ -299,7 +316,7 @@ interface ApplicationError {
|
|
|
299
316
|
data?: Record<string, any> | null;
|
|
300
317
|
}
|
|
301
318
|
interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
302
|
-
/** Metadata
|
|
319
|
+
/** Metadata about the individual item update operation. */
|
|
303
320
|
itemMetadata?: ItemMetadata;
|
|
304
321
|
}
|
|
305
322
|
interface BulkActionMetadata {
|
|
@@ -311,7 +328,10 @@ interface BulkActionMetadata {
|
|
|
311
328
|
undetailedFailures?: number;
|
|
312
329
|
}
|
|
313
330
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
314
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Filter criteria for selecting dispute history records to update.
|
|
333
|
+
* An empty filter will update all dispute history records.
|
|
334
|
+
*/
|
|
315
335
|
filter: Record<string, any> | null;
|
|
316
336
|
/** List of Tags to assign */
|
|
317
337
|
assignTags?: Tags;
|
|
@@ -320,7 +340,7 @@ interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
|
320
340
|
}
|
|
321
341
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
322
342
|
/**
|
|
323
|
-
* Job ID
|
|
343
|
+
* Job ID for tracking the asynchronous bulk update operation.
|
|
324
344
|
* @format GUID
|
|
325
345
|
*/
|
|
326
346
|
jobId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../meta.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a DisputeHistoryRecord. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/** Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1]. */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Synchronously update tags on multiple products, by list of product ids\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously update tags on multiple products, by provided filter\n * An empty filter will update all products\n * A tag that appears both in the list of assign and unassign tags, will be assigned\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4CAAAA;AAAA,EAAA,kDAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,wEACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,wBACd,SAC4B;AAC5B,WAAS,0BAA0B,EAAE,KAAK,GAAQ;AAChD,UAAM,WAAW;AAAA,MACf,YACE;AAAA,MACF,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK;AAAA,QACH;AAAA,UACE,WAAW;AAAA,UACX,MAAM;AAAA,UACN;AAAA,QACF;AAAA,MACF;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,MACjC,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,mCAAmC;A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A,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8CAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6D;AAAA,IAC/D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
|
|
1
|
+
{"version":3,"sources":["../../../meta.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts","../../../src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts"],"sourcesContent":["export * from './src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_payments_dispute-history-records';\n\n/** Retrieves a dispute history record by ID. */\nexport function getDisputeHistoryRecord(\n payload: object\n): RequestOptionsFactory<any> {\n function __getDisputeHistoryRecord({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecord.createdDate' },\n { path: 'disputeHistoryRecord.updatedDate' },\n { path: 'disputeHistoryRecord.dueDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDisputeHistoryRecord;\n}\n\n/**\n * Retrieves dispute history records with support for filtering, cursor-based paging, and sorting.\n *\n * Use this method to get the complete audit trail for specific disputes or to query records across multiple disputes based on various criteria.\n */\nexport function queryDisputeHistoryRecords(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryDisputeHistoryRecords({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'GET' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n { protoPath: '/v1/dispute-history-records/query', data: payload, host }\n ),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'disputeHistoryRecords.createdDate' },\n { path: 'disputeHistoryRecords.updatedDate' },\n { path: 'disputeHistoryRecords.dueDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/dispute-history-records/query',\n data: payload,\n host,\n }\n ),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryDisputeHistoryRecords;\n}\n\n/**\n * Synchronously updates tags on multiple dispute history records by ID.\n *\n * Use this method when you need immediate confirmation of tag updates for a specific set of records.\n * Limited to 100 records per request. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTags({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTags;\n}\n\n/**\n * Asynchronously updates tags on multiple dispute history records using a filter.\n *\n * Use this method for bulk operations on large sets of records. An empty filter will update all dispute history records.\n * Returns a job ID for tracking the operation status. If a tag appears in both assign and unassign lists, it will be assigned.\n */\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn:\n 'wix.payments.dispute_history_records.v1.dispute_history_record',\n method: 'POST' as any,\n methodFqn:\n 'wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter',\n packageName: PACKAGE_NAME,\n url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(\n {\n protoPath: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n data: payload,\n host,\n }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateDisputeHistoryRecordTagsByFilter;\n}\n","import * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js';\nimport * as ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes from './payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getDisputeHistoryRecord(): __PublicMethodMetaInfo<\n 'GET',\n { disputeHistoryRecordId: string },\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.GetDisputeHistoryRecordResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.GetDisputeHistoryRecordResponse\n> {\n const payload = { disputeHistoryRecordId: ':disputeHistoryRecordId' } as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/{disputeHistoryRecordId}',\n pathParams: { disputeHistoryRecordId: 'disputeHistoryRecordId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDisputeHistoryRecords(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.QueryDisputeHistoryRecordsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.QueryDisputeHistoryRecordsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/dispute-history-records/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTags(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkUpdateDisputeHistoryRecordTagsByFilter(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterRequest,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordUniversalTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse,\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordTypes.BulkUpdateDisputeHistoryRecordTagsByFilterResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/dispute-history-records/update-tags-by-filter',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;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AAAA,EAC1B;AACF;","names":["bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter","getDisputeHistoryRecord","queryDisputeHistoryRecords","import_rest_modules","payload","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors } from './index.typings.mjs';
|
|
3
|
-
export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
3
|
+
export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHistoryRecordTagsByFilterRequest, BulkUpdateDisputeHistoryRecordTagsRequest, BulkUpdateDisputeHistoryRecordTagsResult, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DisputeChannel, DisputeChannelWithLiterals, DisputeHistoryRecordsQueryResult, DisputeStage, DisputeStageWithLiterals, DisputeStatus, DisputeStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetDisputeHistoryRecordRequest, GetDisputeHistoryRecordResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, QueryDisputeHistoryRecordsRequest, QueryDisputeHistoryRecordsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, TagList, Tags, TagsModified, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
|
-
/** @internal */
|
|
6
5
|
declare function getDisputeHistoryRecord$1(httpClient: HttpClient): GetDisputeHistoryRecordSignature;
|
|
7
6
|
interface GetDisputeHistoryRecordSignature {
|
|
8
7
|
/**
|
|
9
|
-
* Retrieves a
|
|
10
|
-
* @param - ID of the
|
|
11
|
-
* @returns The requested
|
|
8
|
+
* Retrieves a dispute history record by ID.
|
|
9
|
+
* @param - ID of the dispute history record to retrieve.
|
|
10
|
+
* @returns The requested dispute history record.
|
|
12
11
|
*/
|
|
13
|
-
(disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.
|
|
12
|
+
(disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, `_id` | `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.privateTags.tagIds`, 4>>;
|
|
14
13
|
}
|
|
15
|
-
/** @internal */
|
|
16
14
|
declare function queryDisputeHistoryRecords$1(httpClient: HttpClient): QueryDisputeHistoryRecordsSignature;
|
|
17
15
|
interface QueryDisputeHistoryRecordsSignature {
|
|
18
16
|
/**
|
|
19
|
-
* Retrieves
|
|
17
|
+
* Retrieves dispute history records with support for filtering, cursor-based paging, and sorting.
|
|
18
|
+
*
|
|
19
|
+
* Use this method to get the complete audit trail for specific disputes or to query records across multiple disputes based on various criteria.
|
|
20
20
|
*/
|
|
21
21
|
(): DisputeHistoryRecordsQueryBuilder;
|
|
22
22
|
}
|
|
23
|
-
/** @internal */
|
|
24
23
|
declare function bulkUpdateDisputeHistoryRecordTags$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsSignature;
|
|
25
24
|
interface BulkUpdateDisputeHistoryRecordTagsSignature {
|
|
26
25
|
/**
|
|
27
|
-
* Synchronously
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* Synchronously updates tags on multiple dispute history records by ID.
|
|
27
|
+
*
|
|
28
|
+
* Use this method when you need immediate confirmation of tag updates for a specific set of records.
|
|
29
|
+
* Limited to 100 records per request. If a tag appears in both assign and unassign lists, it will be assigned.
|
|
30
|
+
* @param - List of dispute history record IDs whose tags will be updated.
|
|
31
|
+
*
|
|
32
|
+
* Limited to 100 IDs per request.
|
|
30
33
|
*/
|
|
31
34
|
(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`, 6> & {
|
|
32
35
|
__applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;
|
|
33
36
|
}>;
|
|
34
37
|
}
|
|
35
|
-
/** @internal */
|
|
36
38
|
declare function bulkUpdateDisputeHistoryRecordTagsByFilter$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsByFilterSignature;
|
|
37
39
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterSignature {
|
|
38
40
|
/**
|
|
39
|
-
* Asynchronously
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Asynchronously updates tags on multiple dispute history records using a filter.
|
|
42
|
+
*
|
|
43
|
+
* Use this method for bulk operations on large sets of records. An empty filter will update all dispute history records.
|
|
44
|
+
* Returns a job ID for tracking the operation status. If a tag appears in both assign and unassign lists, it will be assigned.
|
|
45
|
+
* @param - Filter criteria for selecting dispute history records to update.
|
|
46
|
+
* An empty filter will update all dispute history records.
|
|
43
47
|
*/
|
|
44
48
|
(filter: Record<string, any>, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`, 2> & {
|
|
45
49
|
__applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;
|
|
46
50
|
}>;
|
|
47
51
|
}
|
|
48
52
|
|
|
49
|
-
/** @internal */
|
|
50
53
|
declare const getDisputeHistoryRecord: MaybeContext<BuildRESTFunction<typeof getDisputeHistoryRecord$1> & typeof getDisputeHistoryRecord$1>;
|
|
51
|
-
/** @internal */
|
|
52
54
|
declare const queryDisputeHistoryRecords: MaybeContext<BuildRESTFunction<typeof queryDisputeHistoryRecords$1> & typeof queryDisputeHistoryRecords$1>;
|
|
53
|
-
/** @internal */
|
|
54
55
|
declare const bulkUpdateDisputeHistoryRecordTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeHistoryRecordTags$1> & typeof bulkUpdateDisputeHistoryRecordTags$1>;
|
|
55
|
-
/** @internal */
|
|
56
56
|
declare const bulkUpdateDisputeHistoryRecordTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateDisputeHistoryRecordTagsByFilter$1> & typeof bulkUpdateDisputeHistoryRecordTagsByFilter$1>;
|
|
57
57
|
|
|
58
58
|
export { BulkUpdateDisputeHistoryRecordTagsApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors, BulkUpdateDisputeHistoryRecordTagsByFilterOptions, BulkUpdateDisputeHistoryRecordTagsByFilterResponse, BulkUpdateDisputeHistoryRecordTagsOptions, BulkUpdateDisputeHistoryRecordTagsResponse, DisputeHistoryRecord, DisputeHistoryRecordsQueryBuilder, bulkUpdateDisputeHistoryRecordTags, bulkUpdateDisputeHistoryRecordTagsByFilter, getDisputeHistoryRecord, queryDisputeHistoryRecords };
|