@wix/auto_sdk_payments_dispute-history-records 1.0.27 → 1.0.29
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 +19 -11
- package/build/cjs/index.js +12 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +69 -49
- package/build/cjs/index.typings.js +12 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -33
- package/build/cjs/meta.js +12 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -11
- package/build/es/index.mjs +12 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +69 -49
- package/build/es/index.typings.mjs +12 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -33
- package/build/es/meta.mjs +12 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -11
- package/build/internal/cjs/index.js +12 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +69 -49
- package/build/internal/cjs/index.typings.js +12 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +44 -33
- package/build/internal/cjs/meta.js +12 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -11
- package/build/internal/es/index.mjs +12 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +69 -49
- package/build/internal/es/index.typings.mjs +12 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +44 -33
- package/build/internal/es/meta.mjs +12 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { GetDisputeHistoryRecordRequest as GetDisputeHistoryRecordRequest$1, Get
|
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* A
|
|
6
|
-
*
|
|
7
|
-
* Records are automatically created whenever a dispute changes status, stage, or other key properties, providing a complete audit trail.
|
|
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
8
|
*/
|
|
9
9
|
interface DisputeHistoryRecord {
|
|
10
10
|
/**
|
|
@@ -39,27 +39,29 @@ interface DisputeHistoryRecord {
|
|
|
39
39
|
*/
|
|
40
40
|
disputeId?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Stage of the dispute lifecycle.
|
|
43
|
-
* Indicates whether this
|
|
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).
|
|
44
44
|
* @readonly
|
|
45
45
|
* @immutable
|
|
46
46
|
*/
|
|
47
47
|
stage?: DisputeStageWithLiterals;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
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.
|
|
51
51
|
* @readonly
|
|
52
52
|
* @immutable
|
|
53
53
|
*/
|
|
54
54
|
status?: DisputeStatusWithLiterals;
|
|
55
55
|
/**
|
|
56
|
-
* Date by which action must be taken on the dispute.
|
|
56
|
+
* Date by which action must be taken on the dispute.
|
|
57
|
+
* After this date, the dispute may be automatically resolved against the merchant.
|
|
57
58
|
* @readonly
|
|
58
59
|
* @immutable
|
|
59
60
|
*/
|
|
60
61
|
dueDate?: Date | null;
|
|
61
62
|
/**
|
|
62
|
-
* ID of the payment charge that is being disputed.
|
|
63
|
+
* ID of the payment charge that is being disputed.
|
|
64
|
+
* Links this history record to the original transaction.
|
|
63
65
|
* @format GUID
|
|
64
66
|
* @readonly
|
|
65
67
|
* @immutable
|
|
@@ -79,9 +81,9 @@ interface DisputeHistoryRecord {
|
|
|
79
81
|
}
|
|
80
82
|
declare enum DisputeStage {
|
|
81
83
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
82
|
-
/**
|
|
84
|
+
/** Formal dispute filed by the cardholder through their bank. */
|
|
83
85
|
CHARGEBACK = "CHARGEBACK",
|
|
84
|
-
/**
|
|
86
|
+
/** Request for additional information about the transaction, which may escalate to a chargeback if not resolved. */
|
|
85
87
|
INQUIRY = "INQUIRY"
|
|
86
88
|
}
|
|
87
89
|
/** @enumType */
|
|
@@ -89,28 +91,28 @@ type DisputeStageWithLiterals = DisputeStage | 'UNKNOWN_DISPUTE_STAGE' | 'CHARGE
|
|
|
89
91
|
declare enum DisputeStatus {
|
|
90
92
|
/** Unknown status */
|
|
91
93
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
92
|
-
/** Waiting for
|
|
94
|
+
/** Waiting for merchant action, such as submitting evidence or accepting the dispute. */
|
|
93
95
|
WAITING_MERCHANT = "WAITING_MERCHANT",
|
|
94
|
-
/** Dispute is under review by
|
|
96
|
+
/** Dispute is under review by the payment service provider (internal channel) or bank (external channel). */
|
|
95
97
|
UNDER_REVIEW = "UNDER_REVIEW",
|
|
96
|
-
/** Waiting for
|
|
98
|
+
/** Waiting for buyer action or response. */
|
|
97
99
|
WAITING_BUYER = "WAITING_BUYER",
|
|
98
|
-
/** Dispute
|
|
100
|
+
/** Dispute was resolved in favor of the merchant. */
|
|
99
101
|
WON = "WON",
|
|
100
|
-
/** Dispute
|
|
102
|
+
/** Dispute was resolved in favor of the cardholder. */
|
|
101
103
|
LOST = "LOST",
|
|
102
|
-
/** Evidence
|
|
104
|
+
/** Evidence was submitted and is being processed on the provider side. This status will be removed in a future version. */
|
|
103
105
|
PROCESSING_EVIDENCE_SUBMISSION = "PROCESSING_EVIDENCE_SUBMISSION",
|
|
104
|
-
/** 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. */
|
|
105
107
|
PROCESSING_ACCEPTANCE = "PROCESSING_ACCEPTANCE"
|
|
106
108
|
}
|
|
107
109
|
/** @enumType */
|
|
108
110
|
type DisputeStatusWithLiterals = DisputeStatus | 'UNKNOWN_DISPUTE_STATUS' | 'WAITING_MERCHANT' | 'UNDER_REVIEW' | 'WAITING_BUYER' | 'WON' | 'LOST' | 'PROCESSING_EVIDENCE_SUBMISSION' | 'PROCESSING_ACCEPTANCE';
|
|
109
111
|
declare enum DisputeChannel {
|
|
110
112
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
111
|
-
/**
|
|
113
|
+
/** Dispute is reviewed internally by the payment service provider. */
|
|
112
114
|
INTERNAL = "INTERNAL",
|
|
113
|
-
/**
|
|
115
|
+
/** Dispute is reviewed externally by the bank or other financial institution. */
|
|
114
116
|
EXTERNAL = "EXTERNAL"
|
|
115
117
|
}
|
|
116
118
|
/** @enumType */
|
|
@@ -165,17 +167,21 @@ interface TagList {
|
|
|
165
167
|
}
|
|
166
168
|
interface GetDisputeHistoryRecordRequest {
|
|
167
169
|
/**
|
|
168
|
-
* ID of the
|
|
170
|
+
* ID of the dispute history record to retrieve.
|
|
169
171
|
* @format GUID
|
|
170
172
|
*/
|
|
171
173
|
disputeHistoryRecordId: string;
|
|
172
174
|
}
|
|
173
175
|
interface GetDisputeHistoryRecordResponse {
|
|
174
|
-
/** The requested
|
|
176
|
+
/** The requested dispute history record. */
|
|
175
177
|
disputeHistoryRecord?: DisputeHistoryRecord;
|
|
176
178
|
}
|
|
177
179
|
interface QueryDisputeHistoryRecordsRequest {
|
|
178
|
-
/**
|
|
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
|
+
*/
|
|
179
185
|
query?: CursorQuery;
|
|
180
186
|
}
|
|
181
187
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -233,9 +239,9 @@ interface CursorPaging {
|
|
|
233
239
|
cursor?: string | null;
|
|
234
240
|
}
|
|
235
241
|
interface QueryDisputeHistoryRecordsResponse {
|
|
236
|
-
/** List of
|
|
242
|
+
/** List of dispute history records matching the query criteria. */
|
|
237
243
|
disputeHistoryRecords?: DisputeHistoryRecord[];
|
|
238
|
-
/** Paging metadata */
|
|
244
|
+
/** Paging metadata for cursor-based pagination. */
|
|
239
245
|
pagingMetadata?: CursorPagingMetadata;
|
|
240
246
|
}
|
|
241
247
|
interface CursorPagingMetadata {
|
|
@@ -265,25 +271,27 @@ interface Cursors {
|
|
|
265
271
|
}
|
|
266
272
|
interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
267
273
|
/**
|
|
268
|
-
* List of dispute history record IDs whose tags will be updated
|
|
274
|
+
* List of dispute history record IDs whose tags will be updated.
|
|
275
|
+
*
|
|
276
|
+
* Limited to 100 IDs per request.
|
|
269
277
|
* @minSize 1
|
|
270
278
|
* @maxSize 100
|
|
271
279
|
* @format GUID
|
|
272
280
|
*/
|
|
273
281
|
ids: string[];
|
|
274
|
-
/**
|
|
282
|
+
/** Tags to assign to the dispute history records. */
|
|
275
283
|
assignTags?: Tags;
|
|
276
|
-
/**
|
|
284
|
+
/** Tags to unassign from the dispute history records. */
|
|
277
285
|
unassignTags?: Tags;
|
|
278
286
|
}
|
|
279
287
|
interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
280
288
|
/**
|
|
281
|
-
* Results
|
|
289
|
+
* Results of the bulk tag update operation for each dispute history record.
|
|
282
290
|
* @minSize 1
|
|
283
291
|
* @maxSize 100
|
|
284
292
|
*/
|
|
285
293
|
results?: BulkUpdateDisputeHistoryRecordTagsResult[];
|
|
286
|
-
/** Metadata
|
|
294
|
+
/** Metadata about the bulk update operation. */
|
|
287
295
|
bulkActionMetadata?: BulkActionMetadata;
|
|
288
296
|
}
|
|
289
297
|
interface ItemMetadata {
|
|
@@ -308,7 +316,7 @@ interface ApplicationError {
|
|
|
308
316
|
data?: Record<string, any> | null;
|
|
309
317
|
}
|
|
310
318
|
interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
311
|
-
/** Metadata
|
|
319
|
+
/** Metadata about the individual item update operation. */
|
|
312
320
|
itemMetadata?: ItemMetadata;
|
|
313
321
|
}
|
|
314
322
|
interface BulkActionMetadata {
|
|
@@ -320,7 +328,10 @@ interface BulkActionMetadata {
|
|
|
320
328
|
undetailedFailures?: number;
|
|
321
329
|
}
|
|
322
330
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
323
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Filter criteria for selecting dispute history records to update.
|
|
333
|
+
* An empty filter will update all dispute history records.
|
|
334
|
+
*/
|
|
324
335
|
filter: Record<string, any> | null;
|
|
325
336
|
/** List of Tags to assign */
|
|
326
337
|
assignTags?: Tags;
|
|
@@ -329,7 +340,7 @@ interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
|
329
340
|
}
|
|
330
341
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
331
342
|
/**
|
|
332
|
-
* Job ID
|
|
343
|
+
* Job ID for tracking the asynchronous bulk update operation.
|
|
333
344
|
* @format GUID
|
|
334
345
|
*/
|
|
335
346
|
jobId?: string;
|
package/build/cjs/meta.js
CHANGED
|
@@ -44,6 +44,9 @@ function getDisputeHistoryRecord(payload) {
|
|
|
44
44
|
method: "GET",
|
|
45
45
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord",
|
|
46
46
|
packageName: PACKAGE_NAME,
|
|
47
|
+
migrationOptions: {
|
|
48
|
+
optInTransformResponse: true
|
|
49
|
+
},
|
|
47
50
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
48
51
|
{
|
|
49
52
|
protoPath: "/v1/dispute-history-records/{disputeHistoryRecordId}",
|
|
@@ -74,6 +77,9 @@ function queryDisputeHistoryRecords(payload) {
|
|
|
74
77
|
method: "GET",
|
|
75
78
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords",
|
|
76
79
|
packageName: PACKAGE_NAME,
|
|
80
|
+
migrationOptions: {
|
|
81
|
+
optInTransformResponse: true
|
|
82
|
+
},
|
|
77
83
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
78
84
|
{ protoPath: "/v1/dispute-history-records/query", data: payload, host }
|
|
79
85
|
),
|
|
@@ -113,6 +119,9 @@ function bulkUpdateDisputeHistoryRecordTags(payload) {
|
|
|
113
119
|
method: "POST",
|
|
114
120
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags",
|
|
115
121
|
packageName: PACKAGE_NAME,
|
|
122
|
+
migrationOptions: {
|
|
123
|
+
optInTransformResponse: true
|
|
124
|
+
},
|
|
116
125
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
117
126
|
{
|
|
118
127
|
protoPath: "/v1/bulk/dispute-history-records/update-tags",
|
|
@@ -133,6 +142,9 @@ function bulkUpdateDisputeHistoryRecordTagsByFilter(payload) {
|
|
|
133
142
|
method: "POST",
|
|
134
143
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter",
|
|
135
144
|
packageName: PACKAGE_NAME,
|
|
145
|
+
migrationOptions: {
|
|
146
|
+
optInTransformResponse: true
|
|
147
|
+
},
|
|
136
148
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
137
149
|
{
|
|
138
150
|
protoPath: "/v1/bulk/dispute-history-records/update-tags-by-filter",
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -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 dispute history records with support for filtering by dispute_id and other fields, cursor-based paging, and sorting. */\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 dispute history records, by list of dispute history record 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 dispute history records, by provided filter.\n * An empty filter will update all dispute history records\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;AAAA,YAC3C,EAAE,MAAM,mCAAmC;AAAA,YAC3C,EAAE,MAAM,+BAA+B;AAAA,UACzC;AAAA,QACF;AAAA,MACF,CAA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,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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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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yB;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"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -5,25 +5,31 @@ export { ActionEvent, ApplicationError, BulkActionMetadata, BulkUpdateDisputeHis
|
|
|
5
5
|
declare function getDisputeHistoryRecord$1(httpClient: HttpClient): GetDisputeHistoryRecordSignature;
|
|
6
6
|
interface GetDisputeHistoryRecordSignature {
|
|
7
7
|
/**
|
|
8
|
-
* Retrieves a
|
|
9
|
-
* @param - ID of the
|
|
10
|
-
* @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.
|
|
11
11
|
*/
|
|
12
12
|
(disputeHistoryRecordId: string): Promise<NonNullablePaths<DisputeHistoryRecord, `_id` | `disputeId` | `stage` | `status` | `chargeId` | `channel` | `tags.privateTags.tagIds`, 4>>;
|
|
13
13
|
}
|
|
14
14
|
declare function queryDisputeHistoryRecords$1(httpClient: HttpClient): QueryDisputeHistoryRecordsSignature;
|
|
15
15
|
interface QueryDisputeHistoryRecordsSignature {
|
|
16
16
|
/**
|
|
17
|
-
* Retrieves dispute history records with support for filtering
|
|
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.
|
|
18
20
|
*/
|
|
19
21
|
(): DisputeHistoryRecordsQueryBuilder;
|
|
20
22
|
}
|
|
21
23
|
declare function bulkUpdateDisputeHistoryRecordTags$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsSignature;
|
|
22
24
|
interface BulkUpdateDisputeHistoryRecordTagsSignature {
|
|
23
25
|
/**
|
|
24
|
-
* Synchronously
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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.
|
|
27
33
|
*/
|
|
28
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> & {
|
|
29
35
|
__applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsApplicationErrors;
|
|
@@ -32,10 +38,12 @@ interface BulkUpdateDisputeHistoryRecordTagsSignature {
|
|
|
32
38
|
declare function bulkUpdateDisputeHistoryRecordTagsByFilter$1(httpClient: HttpClient): BulkUpdateDisputeHistoryRecordTagsByFilterSignature;
|
|
33
39
|
interface BulkUpdateDisputeHistoryRecordTagsByFilterSignature {
|
|
34
40
|
/**
|
|
35
|
-
* Asynchronously
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
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.
|
|
39
47
|
*/
|
|
40
48
|
(filter: Record<string, any>, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateDisputeHistoryRecordTagsByFilterResponse, `jobId`, 2> & {
|
|
41
49
|
__applicationErrorsType?: BulkUpdateDisputeHistoryRecordTagsByFilterApplicationErrors;
|
package/build/es/index.mjs
CHANGED
|
@@ -23,6 +23,9 @@ function getDisputeHistoryRecord(payload) {
|
|
|
23
23
|
method: "GET",
|
|
24
24
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord",
|
|
25
25
|
packageName: PACKAGE_NAME,
|
|
26
|
+
migrationOptions: {
|
|
27
|
+
optInTransformResponse: true
|
|
28
|
+
},
|
|
26
29
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
27
30
|
{
|
|
28
31
|
protoPath: "/v1/dispute-history-records/{disputeHistoryRecordId}",
|
|
@@ -53,6 +56,9 @@ function queryDisputeHistoryRecords(payload) {
|
|
|
53
56
|
method: "GET",
|
|
54
57
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords",
|
|
55
58
|
packageName: PACKAGE_NAME,
|
|
59
|
+
migrationOptions: {
|
|
60
|
+
optInTransformResponse: true
|
|
61
|
+
},
|
|
56
62
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
57
63
|
{ protoPath: "/v1/dispute-history-records/query", data: payload, host }
|
|
58
64
|
),
|
|
@@ -92,6 +98,9 @@ function bulkUpdateDisputeHistoryRecordTags(payload) {
|
|
|
92
98
|
method: "POST",
|
|
93
99
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags",
|
|
94
100
|
packageName: PACKAGE_NAME,
|
|
101
|
+
migrationOptions: {
|
|
102
|
+
optInTransformResponse: true
|
|
103
|
+
},
|
|
95
104
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
96
105
|
{
|
|
97
106
|
protoPath: "/v1/bulk/dispute-history-records/update-tags",
|
|
@@ -112,6 +121,9 @@ function bulkUpdateDisputeHistoryRecordTagsByFilter(payload) {
|
|
|
112
121
|
method: "POST",
|
|
113
122
|
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter",
|
|
114
123
|
packageName: PACKAGE_NAME,
|
|
124
|
+
migrationOptions: {
|
|
125
|
+
optInTransformResponse: true
|
|
126
|
+
},
|
|
115
127
|
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
116
128
|
{
|
|
117
129
|
protoPath: "/v1/bulk/dispute-history-records/update-tags-by-filter",
|