@wix/auto_sdk_ecom_order-payment-requests 1.0.60 → 1.0.62

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +33 -16
  2. package/build/cjs/index.js +100 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +171 -61
  5. package/build/cjs/index.typings.js +91 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +116 -35
  8. package/build/cjs/meta.js +65 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +5 -1
  11. package/build/cjs/schemas.js +116 -117
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +33 -16
  14. package/build/es/index.mjs +99 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +171 -61
  17. package/build/es/index.typings.mjs +90 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +116 -35
  20. package/build/es/meta.mjs +64 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +5 -1
  23. package/build/es/schemas.mjs +113 -116
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +40 -18
  26. package/build/internal/cjs/index.js +100 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +187 -71
  29. package/build/internal/cjs/index.typings.js +91 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +116 -35
  32. package/build/internal/cjs/meta.js +65 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +5 -1
  35. package/build/internal/cjs/schemas.js +116 -117
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +40 -18
  38. package/build/internal/es/index.mjs +99 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +187 -71
  41. package/build/internal/es/index.typings.mjs +90 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +116 -35
  44. package/build/internal/es/meta.mjs +64 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +5 -1
  47. package/build/internal/es/schemas.mjs +113 -116
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequest$1, CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponse$1, GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequest$1, GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponse$1, UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequest$1, UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponse$1, DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequest$1, DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponse$1, QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequest$1, QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponse$1, GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequest$1, GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponse$1 } from './index.typings.js';
1
+ import { CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequest$1, CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponse$1, BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequest$1, BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponse$1, GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequest$1, GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponse$1, UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequest$1, UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponse$1, DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequest$1, DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponse$1, QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequest$1, QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponse$1, GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequest$1, GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponse$1 } from './index.typings.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface OrderPaymentRequest {
@@ -9,7 +9,7 @@ interface OrderPaymentRequest {
9
9
  */
10
10
  id?: string | null;
11
11
  /**
12
- * Additional parameters to identify the source of the order payment request.
12
+ * Details about the source that created the order payment request.
13
13
  * @immutable
14
14
  */
15
15
  source?: Source;
@@ -36,43 +36,47 @@ interface OrderPaymentRequest {
36
36
  */
37
37
  amount?: Price;
38
38
  /**
39
- * Currency code. The value will always match the currency used in the order.
39
+ * Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.
40
40
  * @format CURRENCY
41
41
  * @readonly
42
42
  */
43
43
  currency?: string;
44
44
  /**
45
- * Payment gateway order id which is associated with this payment request
45
+ * Payment gateway order ID associated with this payment request.
46
46
  * @readonly
47
47
  * @minLength 1
48
48
  * @maxLength 100
49
49
  */
50
50
  paymentGatewayOrderId?: string | null;
51
51
  /**
52
- * Title to be displayed to the customer on the payment page. Provide a clear and descriptive title to inform the customer about what they are paying for.
52
+ * Title displayed to the customer on the payment page.
53
53
  * @minLength 1
54
54
  * @maxLength 200
55
55
  */
56
56
  title?: string;
57
57
  /**
58
- * Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.
58
+ * Description displayed to the customer on the payment page.
59
59
  * @maxLength 300
60
60
  */
61
61
  description?: string | null;
62
62
  /**
63
- * Time and date the order payment request expires.
63
+ * Date and time the order payment request expires. If not provided, the order payment request doesn't expire.
64
64
  * @immutable
65
65
  */
66
66
  expirationDate?: Date | null;
67
- /** [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls. */
67
+ /**
68
+ * Custom field data for this order payment request.
69
+ *
70
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
71
+ */
68
72
  extendedFields?: ExtendedFields;
69
73
  /**
70
- * Date and time the OrderPaymentRequest was created.
74
+ * Date and time the order payment request was created.
71
75
  * @readonly
72
76
  */
73
77
  createdDate?: Date | null;
74
78
  /**
75
- * Date and time the OrderPaymentRequest was last updated.
79
+ * Date and time the order payment request was last updated.
76
80
  * @readonly
77
81
  */
78
82
  updatedDate?: Date | null;
@@ -86,7 +90,7 @@ interface OrderPaymentRequest {
86
90
  }
87
91
  interface Source {
88
92
  /**
89
- * App Def ID that created the order payment request.
93
+ * ID of the app that created the order payment request.
90
94
  * @format GUID
91
95
  * @minLength 1
92
96
  * @maxLength 100
@@ -94,7 +98,7 @@ interface Source {
94
98
  */
95
99
  appId?: string | null;
96
100
  /**
97
- * Reference to an ID from an external system, indicating the original source of the order payment request.
101
+ * Reference to a record in the source system. For example, if the payment request was created from a paylink or invoice, use this field to store the paylink ID or invoice ID.
98
102
  * @minLength 1
99
103
  * @maxLength 100
100
104
  * @immutable
@@ -102,8 +106,11 @@ interface Source {
102
106
  externalId?: string;
103
107
  }
104
108
  declare enum Status {
109
+ /** Payment is owed but hasn't been collected yet. */
105
110
  UNPAID = "UNPAID",
111
+ /** Payment has been collected. */
106
112
  PAID = "PAID",
113
+ /** The order payment request has passed its `expirationDate` without being paid. */
107
114
  EXPIRED = "EXPIRED"
108
115
  }
109
116
  /** @enumType */
@@ -167,11 +174,13 @@ declare enum PaymentMethod {
167
174
  type PaymentMethodWithLiterals = PaymentMethod | 'MANUAL';
168
175
  interface ActionLinks {
169
176
  /**
170
- * A general navigation action link rendered as an anchor in the UI.
177
+ * Navigation action links rendered as anchors on the payment page.
178
+ *
179
+ * Currently supports a single action link.
171
180
  * @maxSize 1
172
181
  */
173
182
  general?: ActionLink[];
174
- /** An action link rendered as a button in error messages in the UI. */
183
+ /** Action link rendered as a button in error messages on the payment page. */
175
184
  error?: ActionLink;
176
185
  }
177
186
  interface ActionLink {
@@ -195,7 +204,7 @@ interface SubscriptionInfo {
195
204
  */
196
205
  title?: string;
197
206
  /**
198
- * Description of the charges that will be applied for subscription.
207
+ * Description of the charges applied for the subscription.
199
208
  * @maxLength 1000
200
209
  */
201
210
  chargeDescription?: string | null;
@@ -207,57 +216,124 @@ interface SubscriptionInfo {
207
216
  /** Whether the subscription renews automatically. */
208
217
  autoRenewal?: boolean;
209
218
  }
210
- /** Triggered when the order payment request status changes to paid */
219
+ /** Triggered when an order payment request's `status` changes to `PAID`. */
211
220
  interface OrderPaymentRequestPaid {
212
- /** Order payment request */
221
+ /** Order payment request that was paid. */
213
222
  orderPaymentRequest?: OrderPaymentRequest;
214
223
  }
215
- /** Triggered when the order payment request status changes to expired */
224
+ /** Triggered when an order payment request's `status` changes to `EXPIRED`. */
216
225
  interface OrderPaymentRequestExpired {
217
- /** Order payment request */
226
+ /** Order payment request that expired. */
218
227
  orderPaymentRequest?: OrderPaymentRequest;
219
228
  }
220
- /** Triggered when the order payment request status changes to voided */
229
+ /** Triggered when an order payment request's `status` changes to `VOIDED`. */
221
230
  interface OrderPaymentRequestVoided {
222
- /** Order payment request */
231
+ /** Order payment request that was voided. */
223
232
  orderPaymentRequest?: OrderPaymentRequest;
224
233
  }
225
234
  interface CreateOrderPaymentRequestRequest {
226
- /** OrderPaymentRequest to be created. */
235
+ /** Order payment request to create. */
227
236
  orderPaymentRequest?: OrderPaymentRequest;
228
237
  }
229
238
  interface CreateOrderPaymentRequestResponse {
230
- /** The created OrderPaymentRequest. */
239
+ /** Created order payment request. */
231
240
  orderPaymentRequest?: OrderPaymentRequest;
232
241
  /**
233
- * Order payment request URL.
242
+ * Payment page URL for the order payment request. Share this URL with the customer so they can complete the payment.
234
243
  * @minLength 1
235
244
  * @maxLength 100
236
245
  */
237
246
  orderPaymentRequestUrl?: string;
238
247
  }
248
+ interface BulkCreateOrderPaymentRequestsRequest {
249
+ /**
250
+ * Order payment requests to create.
251
+ * @minSize 1
252
+ * @maxSize 100
253
+ */
254
+ orderPaymentRequests: OrderPaymentRequest[];
255
+ /**
256
+ * Whether to return the created order payment requests and their payment page URLs in the response.
257
+ * Default: `false`.
258
+ */
259
+ returnEntity?: boolean;
260
+ }
261
+ interface BulkCreateOrderPaymentRequestsResponse {
262
+ /**
263
+ * Results of the bulk create operation in the same order as the request items.
264
+ * @minSize 1
265
+ * @maxSize 100
266
+ */
267
+ results?: BulkOrderPaymentRequestResult[];
268
+ /** Metadata about the bulk create operation. */
269
+ bulkActionMetadata?: BulkActionMetadata;
270
+ }
271
+ interface ItemMetadata {
272
+ /**
273
+ * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
274
+ * @format GUID
275
+ */
276
+ id?: string | null;
277
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
278
+ originalIndex?: number;
279
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
280
+ success?: boolean;
281
+ /** Details about the error in case of failure. */
282
+ error?: ApplicationError;
283
+ }
284
+ interface ApplicationError {
285
+ /** Error code. */
286
+ code?: string;
287
+ /** Description of the error. */
288
+ description?: string;
289
+ /** Data related to the error. */
290
+ data?: Record<string, any> | null;
291
+ }
292
+ interface BulkOrderPaymentRequestItem {
293
+ /** Created order payment request. */
294
+ orderPaymentRequest?: OrderPaymentRequest;
295
+ /**
296
+ * Payment page URL for the created order payment request.
297
+ * @format WEB_URL
298
+ */
299
+ orderPaymentRequestUrl?: string;
300
+ }
301
+ interface BulkOrderPaymentRequestResult {
302
+ /** Metadata about this item, including its original request index and any error. */
303
+ itemMetadata?: ItemMetadata;
304
+ /** Created order payment request and its payment page URL. Returned when `returnEntity` is `true`. */
305
+ item?: BulkOrderPaymentRequestItem;
306
+ }
307
+ interface BulkActionMetadata {
308
+ /** Number of items that were successfully processed. */
309
+ totalSuccesses?: number;
310
+ /** Number of items that couldn't be processed. */
311
+ totalFailures?: number;
312
+ /** Number of failures without details because detailed failure threshold was exceeded. */
313
+ undetailedFailures?: number;
314
+ }
239
315
  interface GetOrderPaymentRequestRequest {
240
316
  /**
241
- * ID of the OrderPaymentRequest to retrieve.
317
+ * ID of the order payment request to retrieve.
242
318
  * @format GUID
243
319
  */
244
320
  orderPaymentRequestId: string;
245
321
  }
246
322
  interface GetOrderPaymentRequestResponse {
247
- /** The requested OrderPaymentRequest. */
323
+ /** Retrieved order payment request. */
248
324
  orderPaymentRequest?: OrderPaymentRequest;
249
325
  }
250
326
  interface UpdateOrderPaymentRequestRequest {
251
- /** OrderPaymentRequest to be updated, may be partial. */
327
+ /** Order payment request to update. */
252
328
  orderPaymentRequest: OrderPaymentRequest;
253
329
  }
254
330
  interface UpdateOrderPaymentRequestResponse {
255
- /** Updated OrderPaymentRequest. */
331
+ /** Updated order payment request. */
256
332
  orderPaymentRequest?: OrderPaymentRequest;
257
333
  }
258
334
  interface DeleteOrderPaymentRequestRequest {
259
335
  /**
260
- * Id of the OrderPaymentRequest to delete.
336
+ * ID of the order payment request to delete.
261
337
  * @format GUID
262
338
  */
263
339
  orderPaymentRequestId: string;
@@ -324,11 +400,11 @@ interface CursorPaging {
324
400
  }
325
401
  interface QueryOrderPaymentRequestsResponse {
326
402
  /**
327
- * List of payment requests.
403
+ * List of order payment requests.
328
404
  * @maxSize 1000
329
405
  */
330
406
  orderPaymentRequests?: OrderPaymentRequest[];
331
- /** Paging metadata */
407
+ /** Paging metadata. */
332
408
  pagingMetadata?: CursorPagingMetadata;
333
409
  }
334
410
  interface CursorPagingMetadata {
@@ -358,14 +434,14 @@ interface Cursors {
358
434
  }
359
435
  interface GetOrderPaymentRequestURLRequest {
360
436
  /**
361
- * Order Payment Request ID.
437
+ * ID of the order payment request.
362
438
  * @format GUID
363
439
  */
364
440
  orderPaymentRequestId: string;
365
441
  }
366
442
  interface GetOrderPaymentRequestURLResponse {
367
443
  /**
368
- * Order Payment Request URL.
444
+ * Payment page URL for the order payment request.
369
445
  * @minLength 1
370
446
  * @maxLength 100
371
447
  */
@@ -380,7 +456,7 @@ interface UpdateExtendedFieldsRequest {
380
456
  namespaceData: Record<string, any> | null;
381
457
  }
382
458
  interface UpdateExtendedFieldsResponse {
383
- /** Updated OrderPaymentRequest. */
459
+ /** Updated order payment request. */
384
460
  orderPaymentRequest?: OrderPaymentRequest;
385
461
  }
386
462
  interface VoidOrderPaymentRequestRequest {
@@ -562,6 +638,10 @@ type CreateOrderPaymentRequestApplicationErrors = {
562
638
  code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
563
639
  description?: string;
564
640
  data?: Record<string, any>;
641
+ } | {
642
+ code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';
643
+ description?: string;
644
+ data?: Record<string, any>;
565
645
  };
566
646
  /** @docsIgnore */
567
647
  type GetOrderPaymentRequestApplicationErrors = {
@@ -629,6 +709,7 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
629
709
  __originalResponseType: R;
630
710
  };
631
711
  declare function createOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, CreateOrderPaymentRequestRequest$1, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse$1, CreateOrderPaymentRequestResponse>;
712
+ declare function bulkCreateOrderPaymentRequests(): __PublicMethodMetaInfo<'POST', {}, BulkCreateOrderPaymentRequestsRequest$1, BulkCreateOrderPaymentRequestsRequest, BulkCreateOrderPaymentRequestsResponse$1, BulkCreateOrderPaymentRequestsResponse>;
632
713
  declare function getOrderPaymentRequest(): __PublicMethodMetaInfo<'GET', {
633
714
  orderPaymentRequestId: string;
634
715
  }, GetOrderPaymentRequestRequest$1, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse$1, GetOrderPaymentRequestResponse>;
@@ -645,4 +726,4 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
645
726
  }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
646
727
  declare function voidOrderPaymentRequest(): __PublicMethodMetaInfo<'POST', {}, VoidOrderPaymentRequestRequest$1, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse$1, VoidOrderPaymentRequestResponse>;
647
728
 
648
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActionLink as ActionLinkOriginal, type ActionLinks as ActionLinksOriginal, type CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal, type CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal, type CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal, type DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal, type DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal, type GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal, type GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal, type GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal, type GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal, type GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal, type OrderPaymentRequest as OrderPaymentRequestOriginal, type OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal, type OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal, PaymentMethod as PaymentMethodOriginal, type PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal, type Price as PriceOriginal, type QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal, type QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Source as SourceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionInfo as SubscriptionInfoOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal, type UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal, type UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal, type VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal, type VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal, type VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
729
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActionLink as ActionLinkOriginal, type ActionLinks as ActionLinksOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateOrderPaymentRequestsRequest as BulkCreateOrderPaymentRequestsRequestOriginal, type BulkCreateOrderPaymentRequestsResponse as BulkCreateOrderPaymentRequestsResponseOriginal, type BulkOrderPaymentRequestItem as BulkOrderPaymentRequestItemOriginal, type BulkOrderPaymentRequestResult as BulkOrderPaymentRequestResultOriginal, type CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal, type CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal, type CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal, type DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal, type DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal, type GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal, type GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal, type GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal, type GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal, type GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemMetadata as ItemMetadataOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal, type OrderPaymentRequest as OrderPaymentRequestOriginal, type OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal, type OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal, PaymentMethod as PaymentMethodOriginal, type PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal, type Price as PriceOriginal, type QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal, type QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type Source as SourceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SubscriptionInfo as SubscriptionInfoOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal, type UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal, type UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal, type VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal, type VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal, type VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateOrderPaymentRequests, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
package/build/cjs/meta.js CHANGED
@@ -24,6 +24,7 @@ __export(meta_exports, {
24
24
  SortOrderOriginal: () => SortOrder,
25
25
  StatusOriginal: () => Status,
26
26
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
27
+ bulkCreateOrderPaymentRequests: () => bulkCreateOrderPaymentRequests2,
27
28
  createOrderPaymentRequest: () => createOrderPaymentRequest2,
28
29
  deleteOrderPaymentRequest: () => deleteOrderPaymentRequest2,
29
30
  getOrderPaymentRequest: () => getOrderPaymentRequest2,
@@ -123,6 +124,49 @@ function createOrderPaymentRequest(payload) {
123
124
  }
124
125
  return __createOrderPaymentRequest;
125
126
  }
127
+ function bulkCreateOrderPaymentRequests(payload) {
128
+ function __bulkCreateOrderPaymentRequests({ host }) {
129
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
130
+ {
131
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
132
+ paths: [
133
+ { path: "orderPaymentRequests.expirationDate" },
134
+ { path: "orderPaymentRequests.createdDate" },
135
+ { path: "orderPaymentRequests.updatedDate" }
136
+ ]
137
+ }
138
+ ]);
139
+ const metadata = {
140
+ entityFqdn: "wix.ecom.v1.order_payment_request",
141
+ method: "POST",
142
+ methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.BulkCreateOrderPaymentRequests",
143
+ packageName: PACKAGE_NAME,
144
+ migrationOptions: {
145
+ optInTransformResponse: true
146
+ },
147
+ url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
148
+ {
149
+ protoPath: "/v1/bulk/order-payment-requests/create",
150
+ data: serializedData,
151
+ host
152
+ }
153
+ ),
154
+ data: serializedData,
155
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
156
+ {
157
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
158
+ paths: [
159
+ { path: "results.item.orderPaymentRequest.expirationDate" },
160
+ { path: "results.item.orderPaymentRequest.createdDate" },
161
+ { path: "results.item.orderPaymentRequest.updatedDate" }
162
+ ]
163
+ }
164
+ ])
165
+ };
166
+ return metadata;
167
+ }
168
+ return __bulkCreateOrderPaymentRequests;
169
+ }
126
170
  function getOrderPaymentRequest(payload) {
127
171
  function __getOrderPaymentRequest({ host }) {
128
172
  const metadata = {
@@ -371,6 +415,26 @@ function createOrderPaymentRequest2() {
371
415
  __originalResponseType: null
372
416
  };
373
417
  }
418
+ function bulkCreateOrderPaymentRequests2() {
419
+ const payload = {};
420
+ const getRequestOptions = bulkCreateOrderPaymentRequests(
421
+ payload
422
+ );
423
+ const getUrl = (context) => {
424
+ const { url } = getRequestOptions(context);
425
+ return url;
426
+ };
427
+ return {
428
+ getUrl,
429
+ httpMethod: "POST",
430
+ path: "/v1/bulk/order-payment-requests/create",
431
+ pathParams: {},
432
+ __requestType: null,
433
+ __originalRequestType: null,
434
+ __responseType: null,
435
+ __originalResponseType: null
436
+ };
437
+ }
374
438
  function getOrderPaymentRequest2() {
375
439
  const payload = { orderPaymentRequestId: ":orderPaymentRequestId" };
376
440
  const getRequestOptions = getOrderPaymentRequest(payload);
@@ -505,6 +569,7 @@ function voidOrderPaymentRequest2() {
505
569
  SortOrderOriginal,
506
570
  StatusOriginal,
507
571
  WebhookIdentityTypeOriginal,
572
+ bulkCreateOrderPaymentRequests,
508
573
  createOrderPaymentRequest,
509
574
  deleteOrderPaymentRequest,
510
575
  getOrderPaymentRequest,