@wix/auto_sdk_payments_dispute-history-records 1.0.4 → 1.0.6
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/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → index.d.mts} +44 -87
- package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → index.d.ts} +44 -87
- package/build/index.js +386 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +354 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +54 -0
- package/build/internal/index.d.ts +54 -0
- package/build/internal/index.js +386 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +354 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → internal/meta.d.mts} +47 -215
- package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.ts} +47 -215
- package/build/internal/meta.js +238 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +208 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-60Otw4pt.d.mts} +44 -129
- package/build/internal/{es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.d.ts → payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal-60Otw4pt.d.ts} +44 -129
- package/build/{cjs/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.mts} +47 -215
- package/build/{internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.types.d.ts → meta.d.ts} +47 -215
- package/build/meta.js +238 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +208 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- 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/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.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 -244
- 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 -214
- 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.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.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/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.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.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 -244
- 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.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.js +0 -214
- package/build/internal/es/src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.universal.js.map +0 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
5
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
6
|
+
function resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(opts) {
|
|
7
|
+
const domainToMappings = {};
|
|
8
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
9
|
+
}
|
|
10
|
+
var PACKAGE_NAME = "@wix/auto_sdk_payments_dispute-history-records";
|
|
11
|
+
function getDisputeHistoryRecord(payload) {
|
|
12
|
+
function __getDisputeHistoryRecord({ host }) {
|
|
13
|
+
const metadata = {
|
|
14
|
+
entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
|
|
15
|
+
method: "GET",
|
|
16
|
+
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord",
|
|
17
|
+
packageName: PACKAGE_NAME,
|
|
18
|
+
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
19
|
+
{
|
|
20
|
+
protoPath: "/v1/dispute-history-records/{disputeHistoryRecordId}",
|
|
21
|
+
data: payload,
|
|
22
|
+
host
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
params: toURLSearchParams(payload),
|
|
26
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
27
|
+
{
|
|
28
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
29
|
+
paths: [
|
|
30
|
+
{ path: "disputeHistoryRecord.createdDate" },
|
|
31
|
+
{ path: "disputeHistoryRecord.updatedDate" },
|
|
32
|
+
{ path: "disputeHistoryRecord.dueDate" }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
])
|
|
36
|
+
};
|
|
37
|
+
return metadata;
|
|
38
|
+
}
|
|
39
|
+
return __getDisputeHistoryRecord;
|
|
40
|
+
}
|
|
41
|
+
function queryDisputeHistoryRecords(payload) {
|
|
42
|
+
function __queryDisputeHistoryRecords({ host }) {
|
|
43
|
+
const metadata = {
|
|
44
|
+
entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
|
|
45
|
+
method: "POST",
|
|
46
|
+
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords",
|
|
47
|
+
packageName: PACKAGE_NAME,
|
|
48
|
+
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
49
|
+
{ protoPath: "/v1/dispute-history-records/query", data: payload, host }
|
|
50
|
+
),
|
|
51
|
+
data: payload,
|
|
52
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
53
|
+
{
|
|
54
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
55
|
+
paths: [
|
|
56
|
+
{ path: "disputeHistoryRecords.createdDate" },
|
|
57
|
+
{ path: "disputeHistoryRecords.updatedDate" },
|
|
58
|
+
{ path: "disputeHistoryRecords.dueDate" }
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]),
|
|
62
|
+
fallback: [
|
|
63
|
+
{
|
|
64
|
+
method: "POST",
|
|
65
|
+
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
66
|
+
{
|
|
67
|
+
protoPath: "/v1/dispute-history-records/query",
|
|
68
|
+
data: payload,
|
|
69
|
+
host
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
data: payload
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
};
|
|
76
|
+
return metadata;
|
|
77
|
+
}
|
|
78
|
+
return __queryDisputeHistoryRecords;
|
|
79
|
+
}
|
|
80
|
+
function bulkUpdateDisputeHistoryRecordTags(payload) {
|
|
81
|
+
function __bulkUpdateDisputeHistoryRecordTags({ host }) {
|
|
82
|
+
const metadata = {
|
|
83
|
+
entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
|
|
84
|
+
method: "POST",
|
|
85
|
+
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags",
|
|
86
|
+
packageName: PACKAGE_NAME,
|
|
87
|
+
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
88
|
+
{
|
|
89
|
+
protoPath: "/v1/bulk/dispute-history-records/update-tags",
|
|
90
|
+
data: payload,
|
|
91
|
+
host
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
data: payload
|
|
95
|
+
};
|
|
96
|
+
return metadata;
|
|
97
|
+
}
|
|
98
|
+
return __bulkUpdateDisputeHistoryRecordTags;
|
|
99
|
+
}
|
|
100
|
+
function bulkUpdateDisputeHistoryRecordTagsByFilter(payload) {
|
|
101
|
+
function __bulkUpdateDisputeHistoryRecordTagsByFilter({ host }) {
|
|
102
|
+
const metadata = {
|
|
103
|
+
entityFqdn: "wix.payments.dispute_history_records.v1.dispute_history_record",
|
|
104
|
+
method: "POST",
|
|
105
|
+
methodFqn: "wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter",
|
|
106
|
+
packageName: PACKAGE_NAME,
|
|
107
|
+
url: resolveWixPaymentsDisputeHistoryRecordsV1DisputeHistoryRecordServiceUrl(
|
|
108
|
+
{
|
|
109
|
+
protoPath: "/v1/bulk/dispute-history-records/update-tags-by-filter",
|
|
110
|
+
data: payload,
|
|
111
|
+
host
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
data: payload
|
|
115
|
+
};
|
|
116
|
+
return metadata;
|
|
117
|
+
}
|
|
118
|
+
return __bulkUpdateDisputeHistoryRecordTagsByFilter;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// src/payments-dispute-history-records-v1-dispute-history-record-dispute-history-records.meta.ts
|
|
122
|
+
function getDisputeHistoryRecord2() {
|
|
123
|
+
const payload = { disputeHistoryRecordId: ":disputeHistoryRecordId" };
|
|
124
|
+
const getRequestOptions = getDisputeHistoryRecord(
|
|
125
|
+
payload
|
|
126
|
+
);
|
|
127
|
+
const getUrl = (context) => {
|
|
128
|
+
const { url } = getRequestOptions(context);
|
|
129
|
+
return url;
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
getUrl,
|
|
133
|
+
httpMethod: "GET",
|
|
134
|
+
path: "/v1/dispute-history-records/{disputeHistoryRecordId}",
|
|
135
|
+
pathParams: { disputeHistoryRecordId: "disputeHistoryRecordId" },
|
|
136
|
+
__requestType: null,
|
|
137
|
+
__originalRequestType: null,
|
|
138
|
+
__responseType: null,
|
|
139
|
+
__originalResponseType: null
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function queryDisputeHistoryRecords2() {
|
|
143
|
+
const payload = {};
|
|
144
|
+
const getRequestOptions = queryDisputeHistoryRecords(
|
|
145
|
+
payload
|
|
146
|
+
);
|
|
147
|
+
const getUrl = (context) => {
|
|
148
|
+
const { url } = getRequestOptions(context);
|
|
149
|
+
return url;
|
|
150
|
+
};
|
|
151
|
+
return {
|
|
152
|
+
getUrl,
|
|
153
|
+
httpMethod: "GET",
|
|
154
|
+
path: "/v1/dispute-history-records/query",
|
|
155
|
+
pathParams: {},
|
|
156
|
+
__requestType: null,
|
|
157
|
+
__originalRequestType: null,
|
|
158
|
+
__responseType: null,
|
|
159
|
+
__originalResponseType: null
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function bulkUpdateDisputeHistoryRecordTags2() {
|
|
163
|
+
const payload = {};
|
|
164
|
+
const getRequestOptions = bulkUpdateDisputeHistoryRecordTags(
|
|
165
|
+
payload
|
|
166
|
+
);
|
|
167
|
+
const getUrl = (context) => {
|
|
168
|
+
const { url } = getRequestOptions(context);
|
|
169
|
+
return url;
|
|
170
|
+
};
|
|
171
|
+
return {
|
|
172
|
+
getUrl,
|
|
173
|
+
httpMethod: "POST",
|
|
174
|
+
path: "/v1/bulk/dispute-history-records/update-tags",
|
|
175
|
+
pathParams: {},
|
|
176
|
+
__requestType: null,
|
|
177
|
+
__originalRequestType: null,
|
|
178
|
+
__responseType: null,
|
|
179
|
+
__originalResponseType: null
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
function bulkUpdateDisputeHistoryRecordTagsByFilter2() {
|
|
183
|
+
const payload = {};
|
|
184
|
+
const getRequestOptions = bulkUpdateDisputeHistoryRecordTagsByFilter(
|
|
185
|
+
payload
|
|
186
|
+
);
|
|
187
|
+
const getUrl = (context) => {
|
|
188
|
+
const { url } = getRequestOptions(context);
|
|
189
|
+
return url;
|
|
190
|
+
};
|
|
191
|
+
return {
|
|
192
|
+
getUrl,
|
|
193
|
+
httpMethod: "POST",
|
|
194
|
+
path: "/v1/bulk/dispute-history-records/update-tags-by-filter",
|
|
195
|
+
pathParams: {},
|
|
196
|
+
__requestType: null,
|
|
197
|
+
__originalRequestType: null,
|
|
198
|
+
__responseType: null,
|
|
199
|
+
__originalResponseType: null
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export {
|
|
203
|
+
bulkUpdateDisputeHistoryRecordTags2 as bulkUpdateDisputeHistoryRecordTags,
|
|
204
|
+
bulkUpdateDisputeHistoryRecordTagsByFilter2 as bulkUpdateDisputeHistoryRecordTagsByFilter,
|
|
205
|
+
getDisputeHistoryRecord2 as getDisputeHistoryRecord,
|
|
206
|
+
queryDisputeHistoryRecords2 as queryDisputeHistoryRecords
|
|
207
|
+
};
|
|
208
|
+
//# sourceMappingURL=meta.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../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":["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: 'POST' 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 data: payload,\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":"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","names":["payload","getDisputeHistoryRecord","queryDisputeHistoryRecords","bulkUpdateDisputeHistoryRecordTags","bulkUpdateDisputeHistoryRecordTagsByFilter"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** A DisputeHistoryRecord */
|
|
2
|
-
|
|
2
|
+
interface DisputeHistoryRecord {
|
|
3
3
|
/**
|
|
4
4
|
* DisputeHistoryRecord ID.
|
|
5
5
|
* @format GUID
|
|
@@ -68,7 +68,7 @@ export interface DisputeHistoryRecord {
|
|
|
68
68
|
/** Tags */
|
|
69
69
|
tags?: Tags;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
declare enum DisputeStage {
|
|
72
72
|
UNKNOWN_DISPUTE_STAGE = "UNKNOWN_DISPUTE_STAGE",
|
|
73
73
|
/** Notification of Fraud, Pre-chargeback, Early Fraud Warning */
|
|
74
74
|
NOTIFICATION_OF_FRAUD = "NOTIFICATION_OF_FRAUD",
|
|
@@ -77,7 +77,7 @@ export declare enum DisputeStage {
|
|
|
77
77
|
/** Chargeback */
|
|
78
78
|
CHARGEBACK = "CHARGEBACK"
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
declare enum DisputeStatus {
|
|
81
81
|
/** Unknown status */
|
|
82
82
|
UNKNOWN_DISPUTE_STATUS = "UNKNOWN_DISPUTE_STATUS",
|
|
83
83
|
/** Waiting for some merchant action */
|
|
@@ -91,14 +91,14 @@ export declare enum DisputeStatus {
|
|
|
91
91
|
/** Dispute lost */
|
|
92
92
|
LOST = "LOST"
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
declare enum DisputeChannel {
|
|
95
95
|
UNKNOWN_DISPUTE_CHANNEL = "UNKNOWN_DISPUTE_CHANNEL",
|
|
96
96
|
/** Internal, the dispute is reviewed by PSP */
|
|
97
97
|
INTERNAL = "INTERNAL",
|
|
98
98
|
/** External, the dispute is reviewed by bank (or other financial institution) */
|
|
99
99
|
EXTERNAL = "EXTERNAL"
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
interface ExtendedFields {
|
|
102
102
|
/**
|
|
103
103
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
104
104
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -131,11 +131,11 @@ export interface ExtendedFields {
|
|
|
131
131
|
* }
|
|
132
132
|
* }
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
interface Tags {
|
|
135
135
|
/** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */
|
|
136
136
|
tags?: TagList;
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
interface TagList {
|
|
139
139
|
/**
|
|
140
140
|
* List of tag IDs
|
|
141
141
|
* @maxSize 100
|
|
@@ -143,22 +143,22 @@ export interface TagList {
|
|
|
143
143
|
*/
|
|
144
144
|
tagIds?: string[];
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface GetDisputeHistoryRecordRequest {
|
|
147
147
|
/**
|
|
148
148
|
* ID of the DisputeHistoryRecord to retrieve.
|
|
149
149
|
* @format GUID
|
|
150
150
|
*/
|
|
151
151
|
disputeHistoryRecordId: string;
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
interface GetDisputeHistoryRecordResponse {
|
|
154
154
|
/** The requested DisputeHistoryRecord. */
|
|
155
155
|
disputeHistoryRecord?: DisputeHistoryRecord;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
interface QueryDisputeHistoryRecordsRequest {
|
|
158
158
|
/** WQL expression. */
|
|
159
159
|
query?: CursorQuery;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
162
162
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
163
163
|
cursorPaging?: CursorPaging;
|
|
164
164
|
/**
|
|
@@ -178,11 +178,11 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
178
178
|
sort?: Sorting[];
|
|
179
179
|
}
|
|
180
180
|
/** @oneof */
|
|
181
|
-
|
|
181
|
+
interface CursorQueryPagingMethodOneOf {
|
|
182
182
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
183
183
|
cursorPaging?: CursorPaging;
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
interface Sorting {
|
|
186
186
|
/**
|
|
187
187
|
* Name of the field to sort by.
|
|
188
188
|
* @maxLength 512
|
|
@@ -191,11 +191,11 @@ export interface Sorting {
|
|
|
191
191
|
/** Sort order. */
|
|
192
192
|
order?: SortOrder;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
declare enum SortOrder {
|
|
195
195
|
ASC = "ASC",
|
|
196
196
|
DESC = "DESC"
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
interface CursorPaging {
|
|
199
199
|
/**
|
|
200
200
|
* Maximum number of items to return in the results.
|
|
201
201
|
* @max 100
|
|
@@ -210,13 +210,13 @@ export interface CursorPaging {
|
|
|
210
210
|
*/
|
|
211
211
|
cursor?: string | null;
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
interface QueryDisputeHistoryRecordsResponse {
|
|
214
214
|
/** List of DisputeHistoryRecords. */
|
|
215
215
|
disputeHistoryRecords?: DisputeHistoryRecord[];
|
|
216
216
|
/** Paging metadata */
|
|
217
217
|
pagingMetadata?: CursorPagingMetadata;
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
interface CursorPagingMetadata {
|
|
220
220
|
/** Number of items returned in the response. */
|
|
221
221
|
count?: number | null;
|
|
222
222
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -229,7 +229,7 @@ export interface CursorPagingMetadata {
|
|
|
229
229
|
*/
|
|
230
230
|
hasNext?: boolean | null;
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
interface Cursors {
|
|
233
233
|
/**
|
|
234
234
|
* Cursor string pointing to the next page in the list of results.
|
|
235
235
|
* @maxLength 16000
|
|
@@ -241,7 +241,7 @@ export interface Cursors {
|
|
|
241
241
|
*/
|
|
242
242
|
prev?: string | null;
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
245
245
|
createdEvent?: EntityCreatedEvent;
|
|
246
246
|
updatedEvent?: EntityUpdatedEvent;
|
|
247
247
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -284,19 +284,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
284
284
|
entityEventSequence?: string | null;
|
|
285
285
|
}
|
|
286
286
|
/** @oneof */
|
|
287
|
-
|
|
287
|
+
interface DomainEventBodyOneOf {
|
|
288
288
|
createdEvent?: EntityCreatedEvent;
|
|
289
289
|
updatedEvent?: EntityUpdatedEvent;
|
|
290
290
|
deletedEvent?: EntityDeletedEvent;
|
|
291
291
|
actionEvent?: ActionEvent;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
interface EntityCreatedEvent {
|
|
294
294
|
entity?: string;
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
interface RestoreInfo {
|
|
297
297
|
deletedDate?: Date | null;
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
interface EntityUpdatedEvent {
|
|
300
300
|
/**
|
|
301
301
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
302
302
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -304,16 +304,16 @@ export interface EntityUpdatedEvent {
|
|
|
304
304
|
*/
|
|
305
305
|
currentEntity?: string;
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
interface EntityDeletedEvent {
|
|
308
308
|
/** Entity that was deleted */
|
|
309
309
|
deletedEntity?: string | null;
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
interface ActionEvent {
|
|
312
312
|
body?: string;
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
interface Empty {
|
|
315
315
|
}
|
|
316
|
-
|
|
316
|
+
interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
317
317
|
/**
|
|
318
318
|
* List of NileProtoTagsEntities that their tags will update.
|
|
319
319
|
* @minSize 1
|
|
@@ -326,7 +326,7 @@ export interface BulkUpdateDisputeHistoryRecordTagsRequest {
|
|
|
326
326
|
/** List of Tags to unAssign */
|
|
327
327
|
unassignTags?: Tags;
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
330
330
|
/**
|
|
331
331
|
* Results
|
|
332
332
|
* @minSize 1
|
|
@@ -336,7 +336,7 @@ export interface BulkUpdateDisputeHistoryRecordTagsResponse {
|
|
|
336
336
|
/** Metadata regarding the bulk update operation */
|
|
337
337
|
bulkActionMetadata?: BulkActionMetadata;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
interface ItemMetadata {
|
|
340
340
|
/**
|
|
341
341
|
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
342
342
|
* @format GUID
|
|
@@ -349,7 +349,7 @@ export interface ItemMetadata {
|
|
|
349
349
|
/** Details about the error in case of failure. */
|
|
350
350
|
error?: ApplicationError;
|
|
351
351
|
}
|
|
352
|
-
|
|
352
|
+
interface ApplicationError {
|
|
353
353
|
/** Error code. */
|
|
354
354
|
code?: string;
|
|
355
355
|
/** Description of the error. */
|
|
@@ -357,11 +357,11 @@ export interface ApplicationError {
|
|
|
357
357
|
/** Data related to the error. */
|
|
358
358
|
data?: Record<string, any> | null;
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
interface BulkUpdateDisputeHistoryRecordTagsResult {
|
|
361
361
|
/** Metadata regarding the specific single update operation */
|
|
362
362
|
itemMetadata?: ItemMetadata;
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
interface BulkActionMetadata {
|
|
365
365
|
/** Number of items that were successfully processed. */
|
|
366
366
|
totalSuccesses?: number;
|
|
367
367
|
/** Number of items that couldn't be processed. */
|
|
@@ -369,7 +369,7 @@ export interface BulkActionMetadata {
|
|
|
369
369
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
370
370
|
undetailedFailures?: number;
|
|
371
371
|
}
|
|
372
|
-
|
|
372
|
+
interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
373
373
|
/** Filter */
|
|
374
374
|
filter: Record<string, any> | null;
|
|
375
375
|
/** List of Tags to assign */
|
|
@@ -377,14 +377,14 @@ export interface BulkUpdateDisputeHistoryRecordTagsByFilterRequest {
|
|
|
377
377
|
/** List of Tags to unAssign */
|
|
378
378
|
unassignTags?: Tags;
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
interface BulkUpdateDisputeHistoryRecordTagsByFilterResponse {
|
|
381
381
|
/**
|
|
382
382
|
* Job ID
|
|
383
383
|
* @format GUID
|
|
384
384
|
*/
|
|
385
385
|
jobId?: string;
|
|
386
386
|
}
|
|
387
|
-
|
|
387
|
+
interface MessageEnvelope {
|
|
388
388
|
/**
|
|
389
389
|
* App instance ID.
|
|
390
390
|
* @format GUID
|
|
@@ -400,7 +400,7 @@ export interface MessageEnvelope {
|
|
|
400
400
|
/** Stringify payload. */
|
|
401
401
|
data?: string;
|
|
402
402
|
}
|
|
403
|
-
|
|
403
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
404
404
|
/**
|
|
405
405
|
* ID of a site visitor that has not logged in to the site.
|
|
406
406
|
* @format GUID
|
|
@@ -425,7 +425,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
425
425
|
identityType?: WebhookIdentityType;
|
|
426
426
|
}
|
|
427
427
|
/** @oneof */
|
|
428
|
-
|
|
428
|
+
interface IdentificationDataIdOneOf {
|
|
429
429
|
/**
|
|
430
430
|
* ID of a site visitor that has not logged in to the site.
|
|
431
431
|
* @format GUID
|
|
@@ -447,76 +447,13 @@ export interface IdentificationDataIdOneOf {
|
|
|
447
447
|
*/
|
|
448
448
|
appId?: string;
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
declare enum WebhookIdentityType {
|
|
451
451
|
UNKNOWN = "UNKNOWN",
|
|
452
452
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
453
453
|
MEMBER = "MEMBER",
|
|
454
454
|
WIX_USER = "WIX_USER",
|
|
455
455
|
APP = "APP"
|
|
456
456
|
}
|
|
457
|
-
interface TagListNonNullableFields {
|
|
458
|
-
tagIds: string[];
|
|
459
|
-
}
|
|
460
|
-
interface TagsNonNullableFields {
|
|
461
|
-
tags?: TagListNonNullableFields;
|
|
462
|
-
}
|
|
463
|
-
export interface DisputeHistoryRecordNonNullableFields {
|
|
464
|
-
disputeId: string;
|
|
465
|
-
stage: DisputeStage;
|
|
466
|
-
status: DisputeStatus;
|
|
467
|
-
chargeId: string;
|
|
468
|
-
channel: DisputeChannel;
|
|
469
|
-
tags?: TagsNonNullableFields;
|
|
470
|
-
}
|
|
471
|
-
export interface GetDisputeHistoryRecordResponseNonNullableFields {
|
|
472
|
-
disputeHistoryRecord?: DisputeHistoryRecordNonNullableFields;
|
|
473
|
-
}
|
|
474
|
-
export interface QueryDisputeHistoryRecordsResponseNonNullableFields {
|
|
475
|
-
disputeHistoryRecords: DisputeHistoryRecordNonNullableFields[];
|
|
476
|
-
}
|
|
477
|
-
interface ApplicationErrorNonNullableFields {
|
|
478
|
-
code: string;
|
|
479
|
-
description: string;
|
|
480
|
-
}
|
|
481
|
-
interface ItemMetadataNonNullableFields {
|
|
482
|
-
originalIndex: number;
|
|
483
|
-
success: boolean;
|
|
484
|
-
error?: ApplicationErrorNonNullableFields;
|
|
485
|
-
}
|
|
486
|
-
interface BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields {
|
|
487
|
-
itemMetadata?: ItemMetadataNonNullableFields;
|
|
488
|
-
}
|
|
489
|
-
interface BulkActionMetadataNonNullableFields {
|
|
490
|
-
totalSuccesses: number;
|
|
491
|
-
totalFailures: number;
|
|
492
|
-
undetailedFailures: number;
|
|
493
|
-
}
|
|
494
|
-
export interface BulkUpdateDisputeHistoryRecordTagsResponseNonNullableFields {
|
|
495
|
-
results: BulkUpdateDisputeHistoryRecordTagsResultNonNullableFields[];
|
|
496
|
-
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
497
|
-
}
|
|
498
|
-
export interface BulkUpdateDisputeHistoryRecordTagsByFilterResponseNonNullableFields {
|
|
499
|
-
jobId: string;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Retrieves a DisputeHistoryRecord.
|
|
503
|
-
* @param disputeHistoryRecordId - ID of the DisputeHistoryRecord to retrieve.
|
|
504
|
-
* @internal
|
|
505
|
-
* @documentationMaturity preview
|
|
506
|
-
* @requiredField disputeHistoryRecordId
|
|
507
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
508
|
-
* @returns The requested DisputeHistoryRecord.
|
|
509
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.GetDisputeHistoryRecord
|
|
510
|
-
*/
|
|
511
|
-
export declare function getDisputeHistoryRecord(disputeHistoryRecordId: string): Promise<DisputeHistoryRecord & DisputeHistoryRecordNonNullableFields>;
|
|
512
|
-
/**
|
|
513
|
-
* Retrieves a list of DisputeHistoryRecords, given the provided [paging, filtering, and sorting][1].
|
|
514
|
-
* @internal
|
|
515
|
-
* @documentationMaturity preview
|
|
516
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_READ
|
|
517
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.QueryDisputeHistoryRecords
|
|
518
|
-
*/
|
|
519
|
-
export declare function queryDisputeHistoryRecords(): DisputeHistoryRecordsQueryBuilder;
|
|
520
457
|
interface QueryCursorResult {
|
|
521
458
|
cursors: Cursors;
|
|
522
459
|
hasNext: () => boolean;
|
|
@@ -524,13 +461,13 @@ interface QueryCursorResult {
|
|
|
524
461
|
length: number;
|
|
525
462
|
pageSize: number;
|
|
526
463
|
}
|
|
527
|
-
|
|
464
|
+
interface DisputeHistoryRecordsQueryResult extends QueryCursorResult {
|
|
528
465
|
items: DisputeHistoryRecord[];
|
|
529
466
|
query: DisputeHistoryRecordsQueryBuilder;
|
|
530
467
|
next: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
531
468
|
prev: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
532
469
|
}
|
|
533
|
-
|
|
470
|
+
interface DisputeHistoryRecordsQueryBuilder {
|
|
534
471
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
535
472
|
* @param value - Value to compare against.
|
|
536
473
|
* @documentationMaturity preview
|
|
@@ -574,39 +511,17 @@ export interface DisputeHistoryRecordsQueryBuilder {
|
|
|
574
511
|
/** @documentationMaturity preview */
|
|
575
512
|
find: () => Promise<DisputeHistoryRecordsQueryResult>;
|
|
576
513
|
}
|
|
577
|
-
|
|
578
|
-
* Synchronously update tags on multiple products, by list of product ids
|
|
579
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
580
|
-
* @param ids - List of NileProtoTagsEntities that their tags will update.
|
|
581
|
-
* @internal
|
|
582
|
-
* @documentationMaturity preview
|
|
583
|
-
* @requiredField ids
|
|
584
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
585
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTags
|
|
586
|
-
*/
|
|
587
|
-
export declare function bulkUpdateDisputeHistoryRecordTags(ids: string[], options?: BulkUpdateDisputeHistoryRecordTagsOptions): Promise<BulkUpdateDisputeHistoryRecordTagsResponse & BulkUpdateDisputeHistoryRecordTagsResponseNonNullableFields>;
|
|
588
|
-
export interface BulkUpdateDisputeHistoryRecordTagsOptions {
|
|
514
|
+
interface BulkUpdateDisputeHistoryRecordTagsOptions {
|
|
589
515
|
/** List of Tags to assign */
|
|
590
516
|
assignTags?: Tags;
|
|
591
517
|
/** List of Tags to unAssign */
|
|
592
518
|
unassignTags?: Tags;
|
|
593
519
|
}
|
|
594
|
-
|
|
595
|
-
* Asynchronously update tags on multiple products, by provided filter
|
|
596
|
-
* An empty filter will update all products
|
|
597
|
-
* A tag that appears both in the list of assign and unassign tags, will be assigned
|
|
598
|
-
* @param filter - Filter
|
|
599
|
-
* @internal
|
|
600
|
-
* @documentationMaturity preview
|
|
601
|
-
* @requiredField filter
|
|
602
|
-
* @permissionId PAYMENTS.DISPUTE_HISTORY_RECORD_UPDATE_TAGS
|
|
603
|
-
* @fqn wix.payments.dispute_history_records.v1.DisputeHistoryRecordService.BulkUpdateDisputeHistoryRecordTagsByFilter
|
|
604
|
-
*/
|
|
605
|
-
export declare function bulkUpdateDisputeHistoryRecordTagsByFilter(filter: Record<string, any> | null, options?: BulkUpdateDisputeHistoryRecordTagsByFilterOptions): Promise<BulkUpdateDisputeHistoryRecordTagsByFilterResponse & BulkUpdateDisputeHistoryRecordTagsByFilterResponseNonNullableFields>;
|
|
606
|
-
export interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
|
|
520
|
+
interface BulkUpdateDisputeHistoryRecordTagsByFilterOptions {
|
|
607
521
|
/** List of Tags to assign */
|
|
608
522
|
assignTags?: Tags;
|
|
609
523
|
/** List of Tags to unAssign */
|
|
610
524
|
unassignTags?: Tags;
|
|
611
525
|
}
|
|
612
|
-
|
|
526
|
+
|
|
527
|
+
export { type ActionEvent as A, type BulkUpdateDisputeHistoryRecordTagsOptions as B, type CursorQuery as C, type DisputeHistoryRecord as D, type ExtendedFields as E, type IdentificationData as F, type GetDisputeHistoryRecordRequest as G, type IdentificationDataIdOneOf as H, type ItemMetadata as I, type DisputeHistoryRecordsQueryResult as J, type MessageEnvelope as M, type QueryDisputeHistoryRecordsRequest as Q, type RestoreInfo as R, SortOrder as S, type Tags as T, WebhookIdentityType as W, type DisputeHistoryRecordsQueryBuilder as a, type BulkUpdateDisputeHistoryRecordTagsResponse as b, type BulkUpdateDisputeHistoryRecordTagsByFilterOptions as c, type BulkUpdateDisputeHistoryRecordTagsByFilterResponse as d, DisputeStage as e, DisputeStatus as f, DisputeChannel as g, type TagList as h, type GetDisputeHistoryRecordResponse as i, type CursorQueryPagingMethodOneOf as j, type Sorting as k, type CursorPaging as l, type QueryDisputeHistoryRecordsResponse as m, type CursorPagingMetadata as n, type Cursors as o, type DomainEvent as p, type DomainEventBodyOneOf as q, type EntityCreatedEvent as r, type EntityUpdatedEvent as s, type EntityDeletedEvent as t, type Empty as u, type BulkUpdateDisputeHistoryRecordTagsRequest as v, type ApplicationError as w, type BulkUpdateDisputeHistoryRecordTagsResult as x, type BulkActionMetadata as y, type BulkUpdateDisputeHistoryRecordTagsByFilterRequest as z };
|