@wix/auto_sdk_ecom_order-payment-requests 1.0.66 → 1.0.68
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/schemas.js +226 -182
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +226 -182
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +3 -3
- package/build/internal/cjs/index.js +0 -1106
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -836
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -622
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -542
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1062
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -797
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -582
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -490
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -1,622 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// meta.ts
|
|
21
|
-
var meta_exports = {};
|
|
22
|
-
__export(meta_exports, {
|
|
23
|
-
PaymentMethodOriginal: () => PaymentMethod,
|
|
24
|
-
SortOrderOriginal: () => SortOrder,
|
|
25
|
-
StatusOriginal: () => Status,
|
|
26
|
-
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
27
|
-
bulkCreateOrderPaymentRequests: () => bulkCreateOrderPaymentRequests2,
|
|
28
|
-
chargeOrderPaymentRequest: () => chargeOrderPaymentRequest2,
|
|
29
|
-
createOrderPaymentRequest: () => createOrderPaymentRequest2,
|
|
30
|
-
deleteOrderPaymentRequest: () => deleteOrderPaymentRequest2,
|
|
31
|
-
getOrderPaymentRequest: () => getOrderPaymentRequest2,
|
|
32
|
-
getOrderPaymentRequestUrl: () => getOrderPaymentRequestUrl2,
|
|
33
|
-
queryOrderPaymentRequests: () => queryOrderPaymentRequests2,
|
|
34
|
-
updateExtendedFields: () => updateExtendedFields2,
|
|
35
|
-
updateOrderPaymentRequest: () => updateOrderPaymentRequest2,
|
|
36
|
-
voidOrderPaymentRequest: () => voidOrderPaymentRequest2
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(meta_exports);
|
|
39
|
-
|
|
40
|
-
// src/ecom-v1-order-payment-request-order-payment-requests.http.ts
|
|
41
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
42
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
43
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
44
|
-
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
45
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
46
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
47
|
-
function resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(opts) {
|
|
48
|
-
const domainToMappings = {
|
|
49
|
-
"api._api_base_domain_": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/order-payment-request",
|
|
52
|
-
destPath: ""
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"www._base_domain_": [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/ecom/v1/order-payment-requests",
|
|
58
|
-
destPath: "/v1/order-payment-requests"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"www.wixapis.com": [
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/ecom/v1/order-payment-requests",
|
|
64
|
-
destPath: "/v1/order-payment-requests"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"manage._base_domain_": [
|
|
68
|
-
{
|
|
69
|
-
srcPath: "/ecom/v1/order-payment-requests",
|
|
70
|
-
destPath: "/v1/order-payment-requests"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
_: [
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/ecom/v1/order-payment-requests",
|
|
76
|
-
destPath: "/v1/order-payment-requests"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"*.dev.wix-code.com": [
|
|
80
|
-
{
|
|
81
|
-
srcPath: "/ecom/v1/order-payment-requests",
|
|
82
|
-
destPath: "/v1/order-payment-requests"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
};
|
|
86
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
87
|
-
}
|
|
88
|
-
var PACKAGE_NAME = "@wix/auto_sdk_ecom_order-payment-requests";
|
|
89
|
-
function createOrderPaymentRequest(payload) {
|
|
90
|
-
function __createOrderPaymentRequest({ host }) {
|
|
91
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
92
|
-
{
|
|
93
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
94
|
-
paths: [
|
|
95
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
96
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
97
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
]);
|
|
101
|
-
const metadata = {
|
|
102
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
103
|
-
method: "POST",
|
|
104
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest",
|
|
105
|
-
packageName: PACKAGE_NAME,
|
|
106
|
-
migrationOptions: {
|
|
107
|
-
optInTransformResponse: true
|
|
108
|
-
},
|
|
109
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
110
|
-
{ protoPath: "/v1/order-payment-requests", data: serializedData, host }
|
|
111
|
-
),
|
|
112
|
-
data: serializedData,
|
|
113
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
114
|
-
{
|
|
115
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
116
|
-
paths: [
|
|
117
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
118
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
119
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
])
|
|
123
|
-
};
|
|
124
|
-
return metadata;
|
|
125
|
-
}
|
|
126
|
-
return __createOrderPaymentRequest;
|
|
127
|
-
}
|
|
128
|
-
function bulkCreateOrderPaymentRequests(payload) {
|
|
129
|
-
function __bulkCreateOrderPaymentRequests({ host }) {
|
|
130
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
131
|
-
{
|
|
132
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
133
|
-
paths: [
|
|
134
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
135
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
136
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
]);
|
|
140
|
-
const metadata = {
|
|
141
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
142
|
-
method: "POST",
|
|
143
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.BulkCreateOrderPaymentRequests",
|
|
144
|
-
packageName: PACKAGE_NAME,
|
|
145
|
-
migrationOptions: {
|
|
146
|
-
optInTransformResponse: true
|
|
147
|
-
},
|
|
148
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
149
|
-
{
|
|
150
|
-
protoPath: "/v1/bulk/order-payment-requests/create",
|
|
151
|
-
data: serializedData,
|
|
152
|
-
host
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
data: serializedData,
|
|
156
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
157
|
-
{
|
|
158
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
159
|
-
paths: [
|
|
160
|
-
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
161
|
-
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
162
|
-
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
])
|
|
166
|
-
};
|
|
167
|
-
return metadata;
|
|
168
|
-
}
|
|
169
|
-
return __bulkCreateOrderPaymentRequests;
|
|
170
|
-
}
|
|
171
|
-
function getOrderPaymentRequest(payload) {
|
|
172
|
-
function __getOrderPaymentRequest({ host }) {
|
|
173
|
-
const metadata = {
|
|
174
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
175
|
-
method: "GET",
|
|
176
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest",
|
|
177
|
-
packageName: PACKAGE_NAME,
|
|
178
|
-
migrationOptions: {
|
|
179
|
-
optInTransformResponse: true
|
|
180
|
-
},
|
|
181
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
182
|
-
{
|
|
183
|
-
protoPath: "/v1/order-payment-requests/{orderPaymentRequestId}",
|
|
184
|
-
data: payload,
|
|
185
|
-
host
|
|
186
|
-
}
|
|
187
|
-
),
|
|
188
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
189
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
190
|
-
{
|
|
191
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
192
|
-
paths: [
|
|
193
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
194
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
195
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
])
|
|
199
|
-
};
|
|
200
|
-
return metadata;
|
|
201
|
-
}
|
|
202
|
-
return __getOrderPaymentRequest;
|
|
203
|
-
}
|
|
204
|
-
function updateOrderPaymentRequest(payload) {
|
|
205
|
-
function __updateOrderPaymentRequest({ host }) {
|
|
206
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
207
|
-
{
|
|
208
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
209
|
-
paths: [{ path: "fieldMask" }]
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
213
|
-
paths: [
|
|
214
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
215
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
216
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
]);
|
|
220
|
-
const metadata = {
|
|
221
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
222
|
-
method: "PATCH",
|
|
223
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest",
|
|
224
|
-
packageName: PACKAGE_NAME,
|
|
225
|
-
migrationOptions: {
|
|
226
|
-
optInTransformResponse: true
|
|
227
|
-
},
|
|
228
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
229
|
-
{
|
|
230
|
-
protoPath: "/v1/order-payment-requests/{orderPaymentRequest.id}",
|
|
231
|
-
data: serializedData,
|
|
232
|
-
host
|
|
233
|
-
}
|
|
234
|
-
),
|
|
235
|
-
data: serializedData,
|
|
236
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
237
|
-
{
|
|
238
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
239
|
-
paths: [
|
|
240
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
241
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
242
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
])
|
|
246
|
-
};
|
|
247
|
-
return metadata;
|
|
248
|
-
}
|
|
249
|
-
return __updateOrderPaymentRequest;
|
|
250
|
-
}
|
|
251
|
-
function deleteOrderPaymentRequest(payload) {
|
|
252
|
-
function __deleteOrderPaymentRequest({ host }) {
|
|
253
|
-
const metadata = {
|
|
254
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
255
|
-
method: "DELETE",
|
|
256
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest",
|
|
257
|
-
packageName: PACKAGE_NAME,
|
|
258
|
-
migrationOptions: {
|
|
259
|
-
optInTransformResponse: true
|
|
260
|
-
},
|
|
261
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
262
|
-
{
|
|
263
|
-
protoPath: "/v1/order-payment-requests/{orderPaymentRequestId}",
|
|
264
|
-
data: payload,
|
|
265
|
-
host
|
|
266
|
-
}
|
|
267
|
-
),
|
|
268
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
269
|
-
};
|
|
270
|
-
return metadata;
|
|
271
|
-
}
|
|
272
|
-
return __deleteOrderPaymentRequest;
|
|
273
|
-
}
|
|
274
|
-
function queryOrderPaymentRequests(payload) {
|
|
275
|
-
function __queryOrderPaymentRequests({ host }) {
|
|
276
|
-
const metadata = {
|
|
277
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
278
|
-
method: "POST",
|
|
279
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests",
|
|
280
|
-
packageName: PACKAGE_NAME,
|
|
281
|
-
migrationOptions: {
|
|
282
|
-
optInTransformResponse: true
|
|
283
|
-
},
|
|
284
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
285
|
-
{ protoPath: "/v1/order-payment-requests/query", data: payload, host }
|
|
286
|
-
),
|
|
287
|
-
data: payload,
|
|
288
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
289
|
-
{
|
|
290
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
291
|
-
paths: [
|
|
292
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
293
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
294
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
295
|
-
]
|
|
296
|
-
}
|
|
297
|
-
])
|
|
298
|
-
};
|
|
299
|
-
return metadata;
|
|
300
|
-
}
|
|
301
|
-
return __queryOrderPaymentRequests;
|
|
302
|
-
}
|
|
303
|
-
function getOrderPaymentRequestUrl(payload) {
|
|
304
|
-
function __getOrderPaymentRequestUrl({ host }) {
|
|
305
|
-
const metadata = {
|
|
306
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
307
|
-
method: "POST",
|
|
308
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL",
|
|
309
|
-
packageName: PACKAGE_NAME,
|
|
310
|
-
migrationOptions: {
|
|
311
|
-
optInTransformResponse: true
|
|
312
|
-
},
|
|
313
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
314
|
-
{ protoPath: "/v1/order-payment-requests/url", data: payload, host }
|
|
315
|
-
),
|
|
316
|
-
data: payload
|
|
317
|
-
};
|
|
318
|
-
return metadata;
|
|
319
|
-
}
|
|
320
|
-
return __getOrderPaymentRequestUrl;
|
|
321
|
-
}
|
|
322
|
-
function updateExtendedFields(payload) {
|
|
323
|
-
function __updateExtendedFields({ host }) {
|
|
324
|
-
const metadata = {
|
|
325
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
326
|
-
method: "POST",
|
|
327
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields",
|
|
328
|
-
packageName: PACKAGE_NAME,
|
|
329
|
-
migrationOptions: {
|
|
330
|
-
optInTransformResponse: true
|
|
331
|
-
},
|
|
332
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
333
|
-
{
|
|
334
|
-
protoPath: "/v1/order-payment-requests/{id}/update-extended-fields",
|
|
335
|
-
data: payload,
|
|
336
|
-
host
|
|
337
|
-
}
|
|
338
|
-
),
|
|
339
|
-
data: payload,
|
|
340
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
341
|
-
{
|
|
342
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
343
|
-
paths: [
|
|
344
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
345
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
346
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
347
|
-
]
|
|
348
|
-
}
|
|
349
|
-
])
|
|
350
|
-
};
|
|
351
|
-
return metadata;
|
|
352
|
-
}
|
|
353
|
-
return __updateExtendedFields;
|
|
354
|
-
}
|
|
355
|
-
function voidOrderPaymentRequest(payload) {
|
|
356
|
-
function __voidOrderPaymentRequest({ host }) {
|
|
357
|
-
const metadata = {
|
|
358
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
359
|
-
method: "POST",
|
|
360
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest",
|
|
361
|
-
packageName: PACKAGE_NAME,
|
|
362
|
-
migrationOptions: {
|
|
363
|
-
optInTransformResponse: true
|
|
364
|
-
},
|
|
365
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
366
|
-
{ protoPath: "/v1/order-payment-requests/void", data: payload, host }
|
|
367
|
-
),
|
|
368
|
-
data: payload
|
|
369
|
-
};
|
|
370
|
-
return metadata;
|
|
371
|
-
}
|
|
372
|
-
return __voidOrderPaymentRequest;
|
|
373
|
-
}
|
|
374
|
-
function chargeOrderPaymentRequest(payload) {
|
|
375
|
-
function __chargeOrderPaymentRequest({ host }) {
|
|
376
|
-
const metadata = {
|
|
377
|
-
entityFqdn: "wix.ecom.v1.order_payment_request",
|
|
378
|
-
method: "POST",
|
|
379
|
-
methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.ChargeOrderPaymentRequest",
|
|
380
|
-
packageName: PACKAGE_NAME,
|
|
381
|
-
migrationOptions: {
|
|
382
|
-
optInTransformResponse: true
|
|
383
|
-
},
|
|
384
|
-
url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
|
|
385
|
-
{ protoPath: "/v1/order-payment-requests/charge", data: payload, host }
|
|
386
|
-
),
|
|
387
|
-
data: payload
|
|
388
|
-
};
|
|
389
|
-
return metadata;
|
|
390
|
-
}
|
|
391
|
-
return __chargeOrderPaymentRequest;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
// src/ecom-v1-order-payment-request-order-payment-requests.types.ts
|
|
395
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
396
|
-
Status2["UNPAID"] = "UNPAID";
|
|
397
|
-
Status2["PAID"] = "PAID";
|
|
398
|
-
Status2["EXPIRED"] = "EXPIRED";
|
|
399
|
-
Status2["VOIDED"] = "VOIDED";
|
|
400
|
-
return Status2;
|
|
401
|
-
})(Status || {});
|
|
402
|
-
var PaymentMethod = /* @__PURE__ */ ((PaymentMethod2) => {
|
|
403
|
-
PaymentMethod2["MANUAL"] = "MANUAL";
|
|
404
|
-
return PaymentMethod2;
|
|
405
|
-
})(PaymentMethod || {});
|
|
406
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
407
|
-
SortOrder2["ASC"] = "ASC";
|
|
408
|
-
SortOrder2["DESC"] = "DESC";
|
|
409
|
-
return SortOrder2;
|
|
410
|
-
})(SortOrder || {});
|
|
411
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
412
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
413
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
414
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
415
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
416
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
417
|
-
return WebhookIdentityType2;
|
|
418
|
-
})(WebhookIdentityType || {});
|
|
419
|
-
|
|
420
|
-
// src/ecom-v1-order-payment-request-order-payment-requests.meta.ts
|
|
421
|
-
function createOrderPaymentRequest2() {
|
|
422
|
-
const payload = {};
|
|
423
|
-
const getRequestOptions = createOrderPaymentRequest(payload);
|
|
424
|
-
const getUrl = (context) => {
|
|
425
|
-
const { url } = getRequestOptions(context);
|
|
426
|
-
return url;
|
|
427
|
-
};
|
|
428
|
-
return {
|
|
429
|
-
getUrl,
|
|
430
|
-
httpMethod: "POST",
|
|
431
|
-
path: "/v1/order-payment-requests",
|
|
432
|
-
pathParams: {},
|
|
433
|
-
__requestType: null,
|
|
434
|
-
__originalRequestType: null,
|
|
435
|
-
__responseType: null,
|
|
436
|
-
__originalResponseType: null
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
function bulkCreateOrderPaymentRequests2() {
|
|
440
|
-
const payload = {};
|
|
441
|
-
const getRequestOptions = bulkCreateOrderPaymentRequests(
|
|
442
|
-
payload
|
|
443
|
-
);
|
|
444
|
-
const getUrl = (context) => {
|
|
445
|
-
const { url } = getRequestOptions(context);
|
|
446
|
-
return url;
|
|
447
|
-
};
|
|
448
|
-
return {
|
|
449
|
-
getUrl,
|
|
450
|
-
httpMethod: "POST",
|
|
451
|
-
path: "/v1/bulk/order-payment-requests/create",
|
|
452
|
-
pathParams: {},
|
|
453
|
-
__requestType: null,
|
|
454
|
-
__originalRequestType: null,
|
|
455
|
-
__responseType: null,
|
|
456
|
-
__originalResponseType: null
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
function getOrderPaymentRequest2() {
|
|
460
|
-
const payload = { orderPaymentRequestId: ":orderPaymentRequestId" };
|
|
461
|
-
const getRequestOptions = getOrderPaymentRequest(payload);
|
|
462
|
-
const getUrl = (context) => {
|
|
463
|
-
const { url } = getRequestOptions(context);
|
|
464
|
-
return url;
|
|
465
|
-
};
|
|
466
|
-
return {
|
|
467
|
-
getUrl,
|
|
468
|
-
httpMethod: "GET",
|
|
469
|
-
path: "/v1/order-payment-requests/{orderPaymentRequestId}",
|
|
470
|
-
pathParams: { orderPaymentRequestId: "orderPaymentRequestId" },
|
|
471
|
-
__requestType: null,
|
|
472
|
-
__originalRequestType: null,
|
|
473
|
-
__responseType: null,
|
|
474
|
-
__originalResponseType: null
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
function updateOrderPaymentRequest2() {
|
|
478
|
-
const payload = {
|
|
479
|
-
orderPaymentRequest: { id: ":orderPaymentRequestId" }
|
|
480
|
-
};
|
|
481
|
-
const getRequestOptions = updateOrderPaymentRequest(payload);
|
|
482
|
-
const getUrl = (context) => {
|
|
483
|
-
const { url } = getRequestOptions(context);
|
|
484
|
-
return url;
|
|
485
|
-
};
|
|
486
|
-
return {
|
|
487
|
-
getUrl,
|
|
488
|
-
httpMethod: "PATCH",
|
|
489
|
-
path: "/v1/order-payment-requests/{orderPaymentRequest.id}",
|
|
490
|
-
pathParams: { orderPaymentRequestId: "orderPaymentRequestId" },
|
|
491
|
-
__requestType: null,
|
|
492
|
-
__originalRequestType: null,
|
|
493
|
-
__responseType: null,
|
|
494
|
-
__originalResponseType: null
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
|
-
function deleteOrderPaymentRequest2() {
|
|
498
|
-
const payload = { orderPaymentRequestId: ":orderPaymentRequestId" };
|
|
499
|
-
const getRequestOptions = deleteOrderPaymentRequest(payload);
|
|
500
|
-
const getUrl = (context) => {
|
|
501
|
-
const { url } = getRequestOptions(context);
|
|
502
|
-
return url;
|
|
503
|
-
};
|
|
504
|
-
return {
|
|
505
|
-
getUrl,
|
|
506
|
-
httpMethod: "DELETE",
|
|
507
|
-
path: "/v1/order-payment-requests/{orderPaymentRequestId}",
|
|
508
|
-
pathParams: { orderPaymentRequestId: "orderPaymentRequestId" },
|
|
509
|
-
__requestType: null,
|
|
510
|
-
__originalRequestType: null,
|
|
511
|
-
__responseType: null,
|
|
512
|
-
__originalResponseType: null
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
function queryOrderPaymentRequests2() {
|
|
516
|
-
const payload = {};
|
|
517
|
-
const getRequestOptions = queryOrderPaymentRequests(payload);
|
|
518
|
-
const getUrl = (context) => {
|
|
519
|
-
const { url } = getRequestOptions(context);
|
|
520
|
-
return url;
|
|
521
|
-
};
|
|
522
|
-
return {
|
|
523
|
-
getUrl,
|
|
524
|
-
httpMethod: "POST",
|
|
525
|
-
path: "/v1/order-payment-requests/query",
|
|
526
|
-
pathParams: {},
|
|
527
|
-
__requestType: null,
|
|
528
|
-
__originalRequestType: null,
|
|
529
|
-
__responseType: null,
|
|
530
|
-
__originalResponseType: null
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
function getOrderPaymentRequestUrl2() {
|
|
534
|
-
const payload = {};
|
|
535
|
-
const getRequestOptions = getOrderPaymentRequestUrl(payload);
|
|
536
|
-
const getUrl = (context) => {
|
|
537
|
-
const { url } = getRequestOptions(context);
|
|
538
|
-
return url;
|
|
539
|
-
};
|
|
540
|
-
return {
|
|
541
|
-
getUrl,
|
|
542
|
-
httpMethod: "POST",
|
|
543
|
-
path: "/v1/order-payment-requests/url",
|
|
544
|
-
pathParams: {},
|
|
545
|
-
__requestType: null,
|
|
546
|
-
__originalRequestType: null,
|
|
547
|
-
__responseType: null,
|
|
548
|
-
__originalResponseType: null
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
function updateExtendedFields2() {
|
|
552
|
-
const payload = { id: ":id" };
|
|
553
|
-
const getRequestOptions = updateExtendedFields(payload);
|
|
554
|
-
const getUrl = (context) => {
|
|
555
|
-
const { url } = getRequestOptions(context);
|
|
556
|
-
return url;
|
|
557
|
-
};
|
|
558
|
-
return {
|
|
559
|
-
getUrl,
|
|
560
|
-
httpMethod: "POST",
|
|
561
|
-
path: "/v1/order-payment-requests/{id}/update-extended-fields",
|
|
562
|
-
pathParams: { id: "id" },
|
|
563
|
-
__requestType: null,
|
|
564
|
-
__originalRequestType: null,
|
|
565
|
-
__responseType: null,
|
|
566
|
-
__originalResponseType: null
|
|
567
|
-
};
|
|
568
|
-
}
|
|
569
|
-
function voidOrderPaymentRequest2() {
|
|
570
|
-
const payload = {};
|
|
571
|
-
const getRequestOptions = voidOrderPaymentRequest(payload);
|
|
572
|
-
const getUrl = (context) => {
|
|
573
|
-
const { url } = getRequestOptions(context);
|
|
574
|
-
return url;
|
|
575
|
-
};
|
|
576
|
-
return {
|
|
577
|
-
getUrl,
|
|
578
|
-
httpMethod: "POST",
|
|
579
|
-
path: "/v1/order-payment-requests/void",
|
|
580
|
-
pathParams: {},
|
|
581
|
-
__requestType: null,
|
|
582
|
-
__originalRequestType: null,
|
|
583
|
-
__responseType: null,
|
|
584
|
-
__originalResponseType: null
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
function chargeOrderPaymentRequest2() {
|
|
588
|
-
const payload = {};
|
|
589
|
-
const getRequestOptions = chargeOrderPaymentRequest(payload);
|
|
590
|
-
const getUrl = (context) => {
|
|
591
|
-
const { url } = getRequestOptions(context);
|
|
592
|
-
return url;
|
|
593
|
-
};
|
|
594
|
-
return {
|
|
595
|
-
getUrl,
|
|
596
|
-
httpMethod: "POST",
|
|
597
|
-
path: "/v1/order-payment-requests/charge",
|
|
598
|
-
pathParams: {},
|
|
599
|
-
__requestType: null,
|
|
600
|
-
__originalRequestType: null,
|
|
601
|
-
__responseType: null,
|
|
602
|
-
__originalResponseType: null
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
606
|
-
0 && (module.exports = {
|
|
607
|
-
PaymentMethodOriginal,
|
|
608
|
-
SortOrderOriginal,
|
|
609
|
-
StatusOriginal,
|
|
610
|
-
WebhookIdentityTypeOriginal,
|
|
611
|
-
bulkCreateOrderPaymentRequests,
|
|
612
|
-
chargeOrderPaymentRequest,
|
|
613
|
-
createOrderPaymentRequest,
|
|
614
|
-
deleteOrderPaymentRequest,
|
|
615
|
-
getOrderPaymentRequest,
|
|
616
|
-
getOrderPaymentRequestUrl,
|
|
617
|
-
queryOrderPaymentRequests,
|
|
618
|
-
updateExtendedFields,
|
|
619
|
-
updateOrderPaymentRequest,
|
|
620
|
-
voidOrderPaymentRequest
|
|
621
|
-
});
|
|
622
|
-
//# sourceMappingURL=meta.js.map
|