@wix/auto_sdk_payments_dispute-history-records 1.0.14 → 1.0.16
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 +549 -1
- package/build/cjs/index.js +386 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +343 -1
- package/build/cjs/meta.js +235 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → es/index.d.mts} +49 -48
- package/build/es/index.mjs +357 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/{src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.mts} +51 -168
- package/build/es/meta.mjs +208 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +54 -1
- package/build/internal/cjs/index.js +386 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +343 -1
- package/build/internal/cjs/meta.js +235 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → internal/cjs/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.ts} +49 -48
- package/build/internal/es/index.d.mts +54 -0
- package/build/internal/es/index.mjs +357 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → internal/es/meta.d.mts} +51 -168
- package/build/internal/es/meta.mjs +208 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → es/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-BpPZdD2w.d.mts} +49 -92
- package/package.json +9 -8
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
- package/build/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -2
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -4
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
- package/build/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -20
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -127
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -104
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -40
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +0 -460
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -50
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -246
- package/build/internal/cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.d.ts +0 -12
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js +0 -12
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.context.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.d.ts +0 -16
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js +0 -120
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.d.ts +0 -18
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js +0 -74
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.d.ts +0 -45
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js +0 -28
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.public.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts +0 -460
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js +0 -47
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.js.map +0 -1
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts +0 -592
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js +0 -216
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
|
@@ -1,216 +0,0 @@
|
|
|
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
|
-
// @ts-ignore
|
|
6
|
-
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
7
|
-
export var DisputeStage;
|
|
8
|
-
(function (DisputeStage) {
|
|
9
|
-
DisputeStage["UNKNOWN_DISPUTE_STAGE"] = "UNKNOWN_DISPUTE_STAGE";
|
|
10
|
-
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
11
|
-
DisputeStage["NOTIFICATION_OF_FRAUD"] = "NOTIFICATION_OF_FRAUD";
|
|
12
|
-
/** Request for Information / Inquiry */
|
|
13
|
-
DisputeStage["RFI"] = "RFI";
|
|
14
|
-
/** Chargeback */
|
|
15
|
-
DisputeStage["CHARGEBACK"] = "CHARGEBACK";
|
|
16
|
-
})(DisputeStage || (DisputeStage = {}));
|
|
17
|
-
export var DisputeStatus;
|
|
18
|
-
(function (DisputeStatus) {
|
|
19
|
-
/** Unknown status */
|
|
20
|
-
DisputeStatus["UNKNOWN_DISPUTE_STATUS"] = "UNKNOWN_DISPUTE_STATUS";
|
|
21
|
-
/** Waiting for some merchant action */
|
|
22
|
-
DisputeStatus["WAITING_MERCHANT"] = "WAITING_MERCHANT";
|
|
23
|
-
/** Dispute is under review by PSP (internal channel) or Bank (external channel) */
|
|
24
|
-
DisputeStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
25
|
-
/** Waiting for some buyer action */
|
|
26
|
-
DisputeStatus["WAITING_BUYER"] = "WAITING_BUYER";
|
|
27
|
-
/** Dispute won */
|
|
28
|
-
DisputeStatus["WON"] = "WON";
|
|
29
|
-
/** Dispute lost */
|
|
30
|
-
DisputeStatus["LOST"] = "LOST";
|
|
31
|
-
})(DisputeStatus || (DisputeStatus = {}));
|
|
32
|
-
export var DisputeChannel;
|
|
33
|
-
(function (DisputeChannel) {
|
|
34
|
-
DisputeChannel["UNKNOWN_DISPUTE_CHANNEL"] = "UNKNOWN_DISPUTE_CHANNEL";
|
|
35
|
-
/** Internal, the dispute is reviewed by PSP */
|
|
36
|
-
DisputeChannel["INTERNAL"] = "INTERNAL";
|
|
37
|
-
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
38
|
-
DisputeChannel["EXTERNAL"] = "EXTERNAL";
|
|
39
|
-
})(DisputeChannel || (DisputeChannel = {}));
|
|
40
|
-
export var SortOrder;
|
|
41
|
-
(function (SortOrder) {
|
|
42
|
-
SortOrder["ASC"] = "ASC";
|
|
43
|
-
SortOrder["DESC"] = "DESC";
|
|
44
|
-
})(SortOrder || (SortOrder = {}));
|
|
45
|
-
export var WebhookIdentityType;
|
|
46
|
-
(function (WebhookIdentityType) {
|
|
47
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
48
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
49
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
50
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
51
|
-
WebhookIdentityType["APP"] = "APP";
|
|
52
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
53
|
-
/**
|
|
54
|
-
* Retrieves a DisputeHistoryRecord.
|
|
55
|
-
* @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.
|
|
56
|
-
* @internal
|
|
57
|
-
* @documentationMaturity preview
|
|
58
|
-
* @requiredField disputeHistoryRecordId
|
|
59
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
60
|
-
* @returns The requested DisputeHistoryRecord.
|
|
61
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
|
|
62
|
-
*/
|
|
63
|
-
export async function getDisputeHistoryRecord(disputeHistoryRecordId) {
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
66
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
67
|
-
disputeHistoryRecordId: disputeHistoryRecordId,
|
|
68
|
-
});
|
|
69
|
-
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.getDisputeHistoryRecord(payload);
|
|
70
|
-
sideEffects?.onSiteCall?.();
|
|
71
|
-
try {
|
|
72
|
-
const result = await httpClient.request(reqOpts);
|
|
73
|
-
sideEffects?.onSuccess?.(result);
|
|
74
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
75
|
-
?.disputeHistoryRecord;
|
|
76
|
-
}
|
|
77
|
-
catch (err) {
|
|
78
|
-
const transformedError = sdkTransformError(err, {
|
|
79
|
-
spreadPathsToArguments: {},
|
|
80
|
-
explicitPathsToArguments: { disputeHistoryRecordId: '$[0]' },
|
|
81
|
-
singleArgumentUnchanged: false,
|
|
82
|
-
}, ['disputeHistoryRecordId']);
|
|
83
|
-
sideEffects?.onError?.(err);
|
|
84
|
-
throw transformedError;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].
|
|
89
|
-
* @internal
|
|
90
|
-
* @documentationMaturity preview
|
|
91
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
92
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
|
|
93
|
-
*/
|
|
94
|
-
export function queryDisputeHistoryRecords() {
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
97
|
-
return queryBuilder({
|
|
98
|
-
func: async (payload) => {
|
|
99
|
-
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.queryDisputeHistoryRecords(payload);
|
|
100
|
-
sideEffects?.onSiteCall?.();
|
|
101
|
-
try {
|
|
102
|
-
const result = await httpClient.request(reqOpts);
|
|
103
|
-
sideEffects?.onSuccess?.(result);
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
catch (err) {
|
|
107
|
-
sideEffects?.onError?.(err);
|
|
108
|
-
throw err;
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
requestTransformer: (query) => {
|
|
112
|
-
const args = [query, {}];
|
|
113
|
-
return renameKeysFromSDKRequestToRESTRequest({
|
|
114
|
-
...args?.[1],
|
|
115
|
-
query: args?.[0],
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
responseTransformer: ({ data, }) => {
|
|
119
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, []));
|
|
120
|
-
return {
|
|
121
|
-
items: transformedData?.disputeHistoryRecords,
|
|
122
|
-
pagingMetadata: transformedData?.pagingMetadata,
|
|
123
|
-
};
|
|
124
|
-
},
|
|
125
|
-
errorTransformer: (err) => {
|
|
126
|
-
const transformedError = sdkTransformError(err, {
|
|
127
|
-
spreadPathsToArguments: {},
|
|
128
|
-
explicitPathsToArguments: { query: '$[0]' },
|
|
129
|
-
singleArgumentUnchanged: false,
|
|
130
|
-
});
|
|
131
|
-
throw transformedError;
|
|
132
|
-
},
|
|
133
|
-
pagingMethod: 'CURSOR',
|
|
134
|
-
transformationPaths: {},
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Synchronously update tags on multiple products, by list of product ids
|
|
139
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
140
|
-
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
141
|
-
* @internal
|
|
142
|
-
* @documentationMaturity preview
|
|
143
|
-
* @requiredField ids
|
|
144
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
145
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
|
|
146
|
-
*/
|
|
147
|
-
export async function bulkUpdateDisputeHistoryRecordTags(ids, options) {
|
|
148
|
-
// @ts-ignore
|
|
149
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
150
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
151
|
-
ids: ids,
|
|
152
|
-
assignTags: options?.assignTags,
|
|
153
|
-
unassignTags: options?.unassignTags,
|
|
154
|
-
});
|
|
155
|
-
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTags(payload);
|
|
156
|
-
sideEffects?.onSiteCall?.();
|
|
157
|
-
try {
|
|
158
|
-
const result = await httpClient.request(reqOpts);
|
|
159
|
-
sideEffects?.onSuccess?.(result);
|
|
160
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
161
|
-
}
|
|
162
|
-
catch (err) {
|
|
163
|
-
const transformedError = sdkTransformError(err, {
|
|
164
|
-
spreadPathsToArguments: {},
|
|
165
|
-
explicitPathsToArguments: {
|
|
166
|
-
ids: '$[0]',
|
|
167
|
-
assignTags: '$[1].assignTags',
|
|
168
|
-
unassignTags: '$[1].unassignTags',
|
|
169
|
-
},
|
|
170
|
-
singleArgumentUnchanged: false,
|
|
171
|
-
}, ['ids', 'options']);
|
|
172
|
-
sideEffects?.onError?.(err);
|
|
173
|
-
throw transformedError;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Asynchronously update tags on multiple products, by provided filter
|
|
178
|
-
* An empty filter will update all products
|
|
179
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
180
|
-
* @param filter - Filter
|
|
181
|
-
* @internal
|
|
182
|
-
* @documentationMaturity preview
|
|
183
|
-
* @requiredField filter
|
|
184
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
185
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
|
|
186
|
-
*/
|
|
187
|
-
export async function bulkUpdateDisputeHistoryRecordTagsByFilter(filter, options) {
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
190
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
191
|
-
filter: filter,
|
|
192
|
-
assignTags: options?.assignTags,
|
|
193
|
-
unassignTags: options?.unassignTags,
|
|
194
|
-
});
|
|
195
|
-
const reqOpts = ambassadorWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecord.bulkUpdateDisputeHistoryRecordTagsByFilter(payload);
|
|
196
|
-
sideEffects?.onSiteCall?.();
|
|
197
|
-
try {
|
|
198
|
-
const result = await httpClient.request(reqOpts);
|
|
199
|
-
sideEffects?.onSuccess?.(result);
|
|
200
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
201
|
-
}
|
|
202
|
-
catch (err) {
|
|
203
|
-
const transformedError = sdkTransformError(err, {
|
|
204
|
-
spreadPathsToArguments: {},
|
|
205
|
-
explicitPathsToArguments: {
|
|
206
|
-
filter: '$[0]',
|
|
207
|
-
assignTags: '$[1].assignTags',
|
|
208
|
-
unassignTags: '$[1].unassignTags',
|
|
209
|
-
},
|
|
210
|
-
singleArgumentUnchanged: false,
|
|
211
|
-
}, ['filter', 'options']);
|
|
212
|
-
sideEffects?.onError?.(err);
|
|
213
|
-
throw transformedError;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
//# sourceMappingURL=payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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