@wix/auto_sdk_ecom_order-payment-requests 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +65 -98
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -0
- package/build/cjs/index.typings.js +39 -56
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -0
- package/build/cjs/meta.js +26 -46
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +65 -98
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -0
- package/build/es/index.typings.mjs +39 -56
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -0
- package/build/es/meta.mjs +26 -46
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -0
- package/build/internal/cjs/index.typings.d.ts +20 -0
- package/build/internal/cjs/meta.d.ts +16 -0
- package/build/internal/es/index.d.mts +4 -0
- package/build/internal/es/index.typings.d.mts +20 -0
- package/build/internal/es/meta.d.mts +16 -0
- package/package.json +2 -2
|
@@ -647,6 +647,22 @@ type CreateOrderPaymentRequestApplicationErrors = {
|
|
|
647
647
|
code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
|
|
648
648
|
description?: string;
|
|
649
649
|
data?: Record<string, any>;
|
|
650
|
+
} | {
|
|
651
|
+
code?: 'ORDER_CANCELED';
|
|
652
|
+
description?: string;
|
|
653
|
+
data?: Record<string, any>;
|
|
654
|
+
} | {
|
|
655
|
+
code?: 'ORDER_ALREADY_PAID';
|
|
656
|
+
description?: string;
|
|
657
|
+
data?: Record<string, any>;
|
|
658
|
+
} | {
|
|
659
|
+
code?: 'ORDER_PENDING';
|
|
660
|
+
description?: string;
|
|
661
|
+
data?: Record<string, any>;
|
|
662
|
+
} | {
|
|
663
|
+
code?: 'ORDER_REJECTED';
|
|
664
|
+
description?: string;
|
|
665
|
+
data?: Record<string, any>;
|
|
650
666
|
} | {
|
|
651
667
|
code?: 'SUBSCRIPTION_ALREADY_STARTED';
|
|
652
668
|
description?: string;
|
|
@@ -13,6 +13,22 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
13
13
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
14
14
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
15
15
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
16
|
+
var TRANSFORM_PATHS_0 = [
|
|
17
|
+
{ path: "orderPaymentRequest.expirationDate" },
|
|
18
|
+
{ path: "orderPaymentRequest.createdDate" },
|
|
19
|
+
{ path: "orderPaymentRequest.updatedDate" }
|
|
20
|
+
];
|
|
21
|
+
var TRANSFORM_PATHS_1 = [
|
|
22
|
+
{ path: "orderPaymentRequests.expirationDate" },
|
|
23
|
+
{ path: "orderPaymentRequests.createdDate" },
|
|
24
|
+
{ path: "orderPaymentRequests.updatedDate" }
|
|
25
|
+
];
|
|
26
|
+
var TRANSFORM_PATHS_2 = [
|
|
27
|
+
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
28
|
+
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
29
|
+
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
30
|
+
];
|
|
31
|
+
var TRANSFORM_PATHS_3 = [{ path: "fieldMask" }];
|
|
16
32
|
function resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(opts) {
|
|
17
33
|
const domainToMappings = {
|
|
18
34
|
"api._api_base_domain_": [
|
|
@@ -60,11 +76,7 @@ function createOrderPaymentRequest(payload) {
|
|
|
60
76
|
const serializedData = transformPaths(payload, [
|
|
61
77
|
{
|
|
62
78
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
63
|
-
paths:
|
|
64
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
65
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
66
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
67
|
-
]
|
|
79
|
+
paths: TRANSFORM_PATHS_0
|
|
68
80
|
}
|
|
69
81
|
]);
|
|
70
82
|
const metadata = {
|
|
@@ -82,11 +94,7 @@ function createOrderPaymentRequest(payload) {
|
|
|
82
94
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
83
95
|
{
|
|
84
96
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
85
|
-
paths:
|
|
86
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
87
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
88
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
89
|
-
]
|
|
97
|
+
paths: TRANSFORM_PATHS_0
|
|
90
98
|
}
|
|
91
99
|
])
|
|
92
100
|
};
|
|
@@ -99,11 +107,7 @@ function bulkCreateOrderPaymentRequests(payload) {
|
|
|
99
107
|
const serializedData = transformPaths(payload, [
|
|
100
108
|
{
|
|
101
109
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
102
|
-
paths:
|
|
103
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
104
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
105
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
106
|
-
]
|
|
110
|
+
paths: TRANSFORM_PATHS_1
|
|
107
111
|
}
|
|
108
112
|
]);
|
|
109
113
|
const metadata = {
|
|
@@ -125,11 +129,7 @@ function bulkCreateOrderPaymentRequests(payload) {
|
|
|
125
129
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
126
130
|
{
|
|
127
131
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
128
|
-
paths:
|
|
129
|
-
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
130
|
-
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
131
|
-
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
132
|
-
]
|
|
132
|
+
paths: TRANSFORM_PATHS_2
|
|
133
133
|
}
|
|
134
134
|
])
|
|
135
135
|
};
|
|
@@ -158,11 +158,7 @@ function getOrderPaymentRequest(payload) {
|
|
|
158
158
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
159
159
|
{
|
|
160
160
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
161
|
-
paths:
|
|
162
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
163
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
164
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
165
|
-
]
|
|
161
|
+
paths: TRANSFORM_PATHS_0
|
|
166
162
|
}
|
|
167
163
|
])
|
|
168
164
|
};
|
|
@@ -175,15 +171,11 @@ function updateOrderPaymentRequest(payload) {
|
|
|
175
171
|
const serializedData = transformPaths(payload, [
|
|
176
172
|
{
|
|
177
173
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
178
|
-
paths:
|
|
174
|
+
paths: TRANSFORM_PATHS_3
|
|
179
175
|
},
|
|
180
176
|
{
|
|
181
177
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
182
|
-
paths:
|
|
183
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
184
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
185
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
186
|
-
]
|
|
178
|
+
paths: TRANSFORM_PATHS_0
|
|
187
179
|
}
|
|
188
180
|
]);
|
|
189
181
|
const metadata = {
|
|
@@ -205,11 +197,7 @@ function updateOrderPaymentRequest(payload) {
|
|
|
205
197
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
206
198
|
{
|
|
207
199
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
208
|
-
paths:
|
|
209
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
210
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
211
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
212
|
-
]
|
|
200
|
+
paths: TRANSFORM_PATHS_0
|
|
213
201
|
}
|
|
214
202
|
])
|
|
215
203
|
};
|
|
@@ -257,11 +245,7 @@ function queryOrderPaymentRequests(payload) {
|
|
|
257
245
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
258
246
|
{
|
|
259
247
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
260
|
-
paths:
|
|
261
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
262
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
263
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
264
|
-
]
|
|
248
|
+
paths: TRANSFORM_PATHS_1
|
|
265
249
|
}
|
|
266
250
|
])
|
|
267
251
|
};
|
|
@@ -309,11 +293,7 @@ function updateExtendedFields(payload) {
|
|
|
309
293
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
310
294
|
{
|
|
311
295
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
312
|
-
paths:
|
|
313
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
314
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
315
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
316
|
-
]
|
|
296
|
+
paths: TRANSFORM_PATHS_0
|
|
317
297
|
}
|
|
318
298
|
])
|
|
319
299
|
};
|
|
@@ -365,6 +345,9 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
|
|
|
365
345
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
366
346
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
367
347
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
348
|
+
var TRANSFORM_PATHS_02 = [{ path: "orderPaymentRequest.image" }];
|
|
349
|
+
var TRANSFORM_PATHS_12 = [{ path: "orderPaymentRequests.image" }];
|
|
350
|
+
var TRANSFORM_PATHS_22 = [{ path: "results.item.orderPaymentRequest.image" }];
|
|
368
351
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
369
352
|
Status2["UNPAID"] = "UNPAID";
|
|
370
353
|
Status2["PAID"] = "PAID";
|
|
@@ -398,7 +381,7 @@ async function createOrderPaymentRequest2(options) {
|
|
|
398
381
|
[
|
|
399
382
|
{
|
|
400
383
|
transformFn: transformSDKImageToRESTImage,
|
|
401
|
-
paths:
|
|
384
|
+
paths: TRANSFORM_PATHS_02
|
|
402
385
|
}
|
|
403
386
|
]
|
|
404
387
|
);
|
|
@@ -411,7 +394,7 @@ async function createOrderPaymentRequest2(options) {
|
|
|
411
394
|
transformPaths2(result.data, [
|
|
412
395
|
{
|
|
413
396
|
transformFn: transformRESTImageToSDKImage,
|
|
414
|
-
paths:
|
|
397
|
+
paths: TRANSFORM_PATHS_02
|
|
415
398
|
}
|
|
416
399
|
])
|
|
417
400
|
)?.orderPaymentRequest;
|
|
@@ -441,7 +424,7 @@ async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
|
441
424
|
[
|
|
442
425
|
{
|
|
443
426
|
transformFn: transformSDKImageToRESTImage,
|
|
444
|
-
paths:
|
|
427
|
+
paths: TRANSFORM_PATHS_12
|
|
445
428
|
}
|
|
446
429
|
]
|
|
447
430
|
);
|
|
@@ -456,7 +439,7 @@ async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
|
456
439
|
transformPaths2(result.data, [
|
|
457
440
|
{
|
|
458
441
|
transformFn: transformRESTImageToSDKImage,
|
|
459
|
-
paths:
|
|
442
|
+
paths: TRANSFORM_PATHS_22
|
|
460
443
|
}
|
|
461
444
|
])
|
|
462
445
|
);
|
|
@@ -491,7 +474,7 @@ async function getOrderPaymentRequest2(orderPaymentRequestId) {
|
|
|
491
474
|
transformPaths2(result.data, [
|
|
492
475
|
{
|
|
493
476
|
transformFn: transformRESTImageToSDKImage,
|
|
494
|
-
paths:
|
|
477
|
+
paths: TRANSFORM_PATHS_02
|
|
495
478
|
}
|
|
496
479
|
])
|
|
497
480
|
)?.orderPaymentRequest;
|
|
@@ -518,7 +501,7 @@ async function updateOrderPaymentRequest2(_id, orderPaymentRequest) {
|
|
|
518
501
|
[
|
|
519
502
|
{
|
|
520
503
|
transformFn: transformSDKImageToRESTImage,
|
|
521
|
-
paths:
|
|
504
|
+
paths: TRANSFORM_PATHS_02
|
|
522
505
|
}
|
|
523
506
|
]
|
|
524
507
|
);
|
|
@@ -531,7 +514,7 @@ async function updateOrderPaymentRequest2(_id, orderPaymentRequest) {
|
|
|
531
514
|
transformPaths2(result.data, [
|
|
532
515
|
{
|
|
533
516
|
transformFn: transformRESTImageToSDKImage,
|
|
534
|
-
paths:
|
|
517
|
+
paths: TRANSFORM_PATHS_02
|
|
535
518
|
}
|
|
536
519
|
])
|
|
537
520
|
)?.orderPaymentRequest;
|
|
@@ -605,7 +588,7 @@ function queryOrderPaymentRequests2() {
|
|
|
605
588
|
transformPaths2(data, [
|
|
606
589
|
{
|
|
607
590
|
transformFn: transformRESTImageToSDKImage,
|
|
608
|
-
paths:
|
|
591
|
+
paths: TRANSFORM_PATHS_12
|
|
609
592
|
}
|
|
610
593
|
])
|
|
611
594
|
);
|
|
@@ -638,7 +621,7 @@ async function typedQueryOrderPaymentRequests(query) {
|
|
|
638
621
|
transformPaths2(result.data, [
|
|
639
622
|
{
|
|
640
623
|
transformFn: transformRESTImageToSDKImage,
|
|
641
|
-
paths:
|
|
624
|
+
paths: TRANSFORM_PATHS_12
|
|
642
625
|
}
|
|
643
626
|
])
|
|
644
627
|
);
|
|
@@ -700,7 +683,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
700
683
|
transformPaths2(result.data, [
|
|
701
684
|
{
|
|
702
685
|
transformFn: transformRESTImageToSDKImage,
|
|
703
|
-
paths:
|
|
686
|
+
paths: TRANSFORM_PATHS_02
|
|
704
687
|
}
|
|
705
688
|
])
|
|
706
689
|
);
|