@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;
@@ -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: [{ path: "fieldMask" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "results.item.orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequest.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "orderPaymentRequests.image" }]
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: [{ path: "orderPaymentRequest.image" }]
724
+ paths: TRANSFORM_PATHS_02
742
725
  }
743
726
  ])
744
727
  );