@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;
|
|
@@ -51,6 +51,22 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
51
51
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
52
52
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
53
53
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
54
|
+
var TRANSFORM_PATHS_0 = [
|
|
55
|
+
{ path: "orderPaymentRequest.expirationDate" },
|
|
56
|
+
{ path: "orderPaymentRequest.createdDate" },
|
|
57
|
+
{ path: "orderPaymentRequest.updatedDate" }
|
|
58
|
+
];
|
|
59
|
+
var TRANSFORM_PATHS_1 = [
|
|
60
|
+
{ path: "orderPaymentRequests.expirationDate" },
|
|
61
|
+
{ path: "orderPaymentRequests.createdDate" },
|
|
62
|
+
{ path: "orderPaymentRequests.updatedDate" }
|
|
63
|
+
];
|
|
64
|
+
var TRANSFORM_PATHS_2 = [
|
|
65
|
+
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
66
|
+
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
67
|
+
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
68
|
+
];
|
|
69
|
+
var TRANSFORM_PATHS_3 = [{ path: "fieldMask" }];
|
|
54
70
|
function resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(opts) {
|
|
55
71
|
const domainToMappings = {
|
|
56
72
|
"api._api_base_domain_": [
|
|
@@ -98,11 +114,7 @@ function createOrderPaymentRequest(payload) {
|
|
|
98
114
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
99
115
|
{
|
|
100
116
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
101
|
-
paths:
|
|
102
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
103
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
104
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
105
|
-
]
|
|
117
|
+
paths: TRANSFORM_PATHS_0
|
|
106
118
|
}
|
|
107
119
|
]);
|
|
108
120
|
const metadata = {
|
|
@@ -120,11 +132,7 @@ function createOrderPaymentRequest(payload) {
|
|
|
120
132
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
121
133
|
{
|
|
122
134
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
123
|
-
paths:
|
|
124
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
125
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
126
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
127
|
-
]
|
|
135
|
+
paths: TRANSFORM_PATHS_0
|
|
128
136
|
}
|
|
129
137
|
])
|
|
130
138
|
};
|
|
@@ -137,11 +145,7 @@ function bulkCreateOrderPaymentRequests(payload) {
|
|
|
137
145
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
138
146
|
{
|
|
139
147
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
140
|
-
paths:
|
|
141
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
142
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
143
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
144
|
-
]
|
|
148
|
+
paths: TRANSFORM_PATHS_1
|
|
145
149
|
}
|
|
146
150
|
]);
|
|
147
151
|
const metadata = {
|
|
@@ -163,11 +167,7 @@ function bulkCreateOrderPaymentRequests(payload) {
|
|
|
163
167
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
164
168
|
{
|
|
165
169
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
166
|
-
paths:
|
|
167
|
-
{ path: "results.item.orderPaymentRequest.expirationDate" },
|
|
168
|
-
{ path: "results.item.orderPaymentRequest.createdDate" },
|
|
169
|
-
{ path: "results.item.orderPaymentRequest.updatedDate" }
|
|
170
|
-
]
|
|
170
|
+
paths: TRANSFORM_PATHS_2
|
|
171
171
|
}
|
|
172
172
|
])
|
|
173
173
|
};
|
|
@@ -196,11 +196,7 @@ function getOrderPaymentRequest(payload) {
|
|
|
196
196
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
197
197
|
{
|
|
198
198
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
199
|
-
paths:
|
|
200
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
201
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
202
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
203
|
-
]
|
|
199
|
+
paths: TRANSFORM_PATHS_0
|
|
204
200
|
}
|
|
205
201
|
])
|
|
206
202
|
};
|
|
@@ -213,15 +209,11 @@ function updateOrderPaymentRequest(payload) {
|
|
|
213
209
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
214
210
|
{
|
|
215
211
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
216
|
-
paths:
|
|
212
|
+
paths: TRANSFORM_PATHS_3
|
|
217
213
|
},
|
|
218
214
|
{
|
|
219
215
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
220
|
-
paths:
|
|
221
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
222
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
223
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
224
|
-
]
|
|
216
|
+
paths: TRANSFORM_PATHS_0
|
|
225
217
|
}
|
|
226
218
|
]);
|
|
227
219
|
const metadata = {
|
|
@@ -243,11 +235,7 @@ function updateOrderPaymentRequest(payload) {
|
|
|
243
235
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
244
236
|
{
|
|
245
237
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
246
|
-
paths:
|
|
247
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
248
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
249
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
250
|
-
]
|
|
238
|
+
paths: TRANSFORM_PATHS_0
|
|
251
239
|
}
|
|
252
240
|
])
|
|
253
241
|
};
|
|
@@ -295,11 +283,7 @@ function queryOrderPaymentRequests(payload) {
|
|
|
295
283
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
296
284
|
{
|
|
297
285
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
298
|
-
paths:
|
|
299
|
-
{ path: "orderPaymentRequests.expirationDate" },
|
|
300
|
-
{ path: "orderPaymentRequests.createdDate" },
|
|
301
|
-
{ path: "orderPaymentRequests.updatedDate" }
|
|
302
|
-
]
|
|
286
|
+
paths: TRANSFORM_PATHS_1
|
|
303
287
|
}
|
|
304
288
|
])
|
|
305
289
|
};
|
|
@@ -347,11 +331,7 @@ function updateExtendedFields(payload) {
|
|
|
347
331
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
348
332
|
{
|
|
349
333
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
350
|
-
paths:
|
|
351
|
-
{ path: "orderPaymentRequest.expirationDate" },
|
|
352
|
-
{ path: "orderPaymentRequest.createdDate" },
|
|
353
|
-
{ path: "orderPaymentRequest.updatedDate" }
|
|
354
|
-
]
|
|
334
|
+
paths: TRANSFORM_PATHS_0
|
|
355
335
|
}
|
|
356
336
|
])
|
|
357
337
|
};
|
|
@@ -403,6 +383,9 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
|
403
383
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
404
384
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
405
385
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
386
|
+
var TRANSFORM_PATHS_02 = [{ path: "orderPaymentRequest.image" }];
|
|
387
|
+
var TRANSFORM_PATHS_12 = [{ path: "orderPaymentRequests.image" }];
|
|
388
|
+
var TRANSFORM_PATHS_22 = [{ path: "results.item.orderPaymentRequest.image" }];
|
|
406
389
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
407
390
|
Status2["UNPAID"] = "UNPAID";
|
|
408
391
|
Status2["PAID"] = "PAID";
|
|
@@ -436,7 +419,7 @@ async function createOrderPaymentRequest2(options) {
|
|
|
436
419
|
[
|
|
437
420
|
{
|
|
438
421
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
439
|
-
paths:
|
|
422
|
+
paths: TRANSFORM_PATHS_02
|
|
440
423
|
}
|
|
441
424
|
]
|
|
442
425
|
);
|
|
@@ -449,7 +432,7 @@ async function createOrderPaymentRequest2(options) {
|
|
|
449
432
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
450
433
|
{
|
|
451
434
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
452
|
-
paths:
|
|
435
|
+
paths: TRANSFORM_PATHS_02
|
|
453
436
|
}
|
|
454
437
|
])
|
|
455
438
|
)?.orderPaymentRequest;
|
|
@@ -479,7 +462,7 @@ async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
|
479
462
|
[
|
|
480
463
|
{
|
|
481
464
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
482
|
-
paths:
|
|
465
|
+
paths: TRANSFORM_PATHS_12
|
|
483
466
|
}
|
|
484
467
|
]
|
|
485
468
|
);
|
|
@@ -494,7 +477,7 @@ async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
|
|
|
494
477
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
495
478
|
{
|
|
496
479
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
497
|
-
paths:
|
|
480
|
+
paths: TRANSFORM_PATHS_22
|
|
498
481
|
}
|
|
499
482
|
])
|
|
500
483
|
);
|
|
@@ -529,7 +512,7 @@ async function getOrderPaymentRequest2(orderPaymentRequestId) {
|
|
|
529
512
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
530
513
|
{
|
|
531
514
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
532
|
-
paths:
|
|
515
|
+
paths: TRANSFORM_PATHS_02
|
|
533
516
|
}
|
|
534
517
|
])
|
|
535
518
|
)?.orderPaymentRequest;
|
|
@@ -556,7 +539,7 @@ async function updateOrderPaymentRequest2(_id, orderPaymentRequest) {
|
|
|
556
539
|
[
|
|
557
540
|
{
|
|
558
541
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
559
|
-
paths:
|
|
542
|
+
paths: TRANSFORM_PATHS_02
|
|
560
543
|
}
|
|
561
544
|
]
|
|
562
545
|
);
|
|
@@ -569,7 +552,7 @@ async function updateOrderPaymentRequest2(_id, orderPaymentRequest) {
|
|
|
569
552
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
570
553
|
{
|
|
571
554
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
572
|
-
paths:
|
|
555
|
+
paths: TRANSFORM_PATHS_02
|
|
573
556
|
}
|
|
574
557
|
])
|
|
575
558
|
)?.orderPaymentRequest;
|
|
@@ -643,7 +626,7 @@ function queryOrderPaymentRequests2() {
|
|
|
643
626
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
644
627
|
{
|
|
645
628
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
646
|
-
paths:
|
|
629
|
+
paths: TRANSFORM_PATHS_12
|
|
647
630
|
}
|
|
648
631
|
])
|
|
649
632
|
);
|
|
@@ -676,7 +659,7 @@ async function typedQueryOrderPaymentRequests(query) {
|
|
|
676
659
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
677
660
|
{
|
|
678
661
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
679
|
-
paths:
|
|
662
|
+
paths: TRANSFORM_PATHS_12
|
|
680
663
|
}
|
|
681
664
|
])
|
|
682
665
|
);
|
|
@@ -738,7 +721,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
738
721
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
739
722
|
{
|
|
740
723
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
741
|
-
paths:
|
|
724
|
+
paths: TRANSFORM_PATHS_02
|
|
742
725
|
}
|
|
743
726
|
])
|
|
744
727
|
);
|