@wix/auto_sdk_ecom_order-payment-requests 1.0.67 → 1.0.69

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