@wix/auto_sdk_ecom_order-payment-requests 1.0.69 → 1.0.71

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.
@@ -941,7 +941,7 @@ declare function onOrderPaymentRequestVoided(handler: (event: OrderPaymentReques
941
941
  * @returns Created order payment request.
942
942
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest
943
943
  */
944
- declare function createOrderPaymentRequest(options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`, 3>): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
944
+ declare function createOrderPaymentRequest(options?: NonNullablePaths<CreateOrderPaymentRequestOptions, `orderPaymentRequest.amount` | `orderPaymentRequest.orderId` | `orderPaymentRequest.title`, 1>): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 1> & {
945
945
  __applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
946
946
  }>;
947
947
  interface CreateOrderPaymentRequestOptions {
@@ -966,7 +966,7 @@ interface BulkCreateOrderPaymentRequestsOptions {
966
966
  * @returns Retrieved order payment request.
967
967
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest
968
968
  */
969
- declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
969
+ declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 1> & {
970
970
  __applicationErrorsType?: GetOrderPaymentRequestApplicationErrors;
971
971
  }>;
972
972
  /**
@@ -983,7 +983,7 @@ declare function getOrderPaymentRequest(orderPaymentRequestId: string): Promise<
983
983
  * @returns Updated order payment request.
984
984
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest
985
985
  */
986
- declare function updateOrderPaymentRequest(_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 3> & {
986
+ declare function updateOrderPaymentRequest(_id: string, orderPaymentRequest: UpdateOrderPaymentRequest): Promise<NonNullablePaths<OrderPaymentRequest, `source.externalId` | `status` | `orderId` | `amount.amount` | `amount.formattedAmount` | `currency` | `title` | `blockedPaymentMethods`, 1> & {
987
987
  __applicationErrorsType?: UpdateOrderPaymentRequestApplicationErrors;
988
988
  }>;
989
989
  interface UpdateOrderPaymentRequest {
@@ -1182,7 +1182,7 @@ interface OrderPaymentRequestsQueryBuilder {
1182
1182
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests
1183
1183
  * @requiredField query
1184
1184
  */
1185
- declare function typedQueryOrderPaymentRequests(query: OrderPaymentRequestQuery): Promise<NonNullablePaths<QueryOrderPaymentRequestsResponse, `orderPaymentRequests` | `orderPaymentRequests.${number}.source.externalId` | `orderPaymentRequests.${number}.status` | `orderPaymentRequests.${number}.orderId` | `orderPaymentRequests.${number}.amount.amount` | `orderPaymentRequests.${number}.amount.formattedAmount` | `orderPaymentRequests.${number}.currency` | `orderPaymentRequests.${number}.title`, 5>>;
1185
+ declare function typedQueryOrderPaymentRequests(query: OrderPaymentRequestQuery): Promise<NonNullablePaths<QueryOrderPaymentRequestsResponse, `orderPaymentRequests` | `orderPaymentRequests.${number}.source.externalId` | `orderPaymentRequests.${number}.status` | `orderPaymentRequests.${number}.orderId` | `orderPaymentRequests.${number}.amount.amount` | `orderPaymentRequests.${number}.amount.formattedAmount` | `orderPaymentRequests.${number}.currency` | `orderPaymentRequests.${number}.title`, 3>>;
1186
1186
  interface OrderPaymentRequestQuerySpec extends QuerySpec {
1187
1187
  paging: 'cursor';
1188
1188
  wql: [
@@ -1276,7 +1276,7 @@ declare const utils: {
1276
1276
  * @applicableIdentity APP
1277
1277
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL
1278
1278
  */
1279
- declare function getOrderPaymentRequestUrl(orderPaymentRequestId: string): Promise<NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`, 2> & {
1279
+ declare function getOrderPaymentRequestUrl(orderPaymentRequestId: string): Promise<NonNullablePaths<GetOrderPaymentRequestURLResponse, `orderPaymentRequestUrl`, 0> & {
1280
1280
  __applicationErrorsType?: GetOrderPaymentRequestUrlApplicationErrors;
1281
1281
  }>;
1282
1282
  /**
@@ -1293,7 +1293,7 @@ declare function getOrderPaymentRequestUrl(orderPaymentRequestId: string): Promi
1293
1293
  * @applicableIdentity APP
1294
1294
  * @fqn wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields
1295
1295
  */
1296
- declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `orderPaymentRequest.source.externalId` | `orderPaymentRequest.status` | `orderPaymentRequest.orderId` | `orderPaymentRequest.amount.amount` | `orderPaymentRequest.amount.formattedAmount` | `orderPaymentRequest.currency` | `orderPaymentRequest.title` | `orderPaymentRequest.blockedPaymentMethods`, 4>>;
1296
+ declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 0>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `orderPaymentRequest.source.externalId` | `orderPaymentRequest.status` | `orderPaymentRequest.orderId` | `orderPaymentRequest.amount.amount` | `orderPaymentRequest.amount.formattedAmount` | `orderPaymentRequest.currency` | `orderPaymentRequest.title` | `orderPaymentRequest.blockedPaymentMethods`, 2>>;
1297
1297
  interface UpdateExtendedFieldsOptions {
1298
1298
  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
1299
1299
  namespaceData: Record<string, any> | null;
@@ -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: [{ path: "fieldMask" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "results.item.orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "orderPaymentRequest.image" }]
686
+ paths: TRANSFORM_PATHS_02
704
687
  }
705
688
  ])
706
689
  );