@wix/auto_sdk_ecom_order-payment-requests 1.0.59 → 1.0.61

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 (37) hide show
  1. package/build/cjs/index.d.ts +52 -18
  2. package/build/cjs/index.js +164 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +269 -69
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +49 -37
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +125 -127
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +52 -18
  11. package/build/es/index.mjs +158 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +269 -69
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +49 -37
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +125 -127
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +54 -20
  20. package/build/internal/cjs/index.js +164 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +278 -80
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +49 -37
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/cjs/schemas.js +125 -127
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +54 -20
  29. package/build/internal/es/index.mjs +158 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +278 -80
  32. package/build/internal/es/index.typings.mjs.map +1 -1
  33. package/build/internal/es/meta.d.mts +49 -37
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/build/internal/es/schemas.mjs +125 -127
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -9,12 +9,12 @@ 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;
16
16
  /**
17
- * status.
17
+ * Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.
18
18
  * @readonly
19
19
  */
20
20
  status?: StatusWithLiterals;
@@ -31,49 +31,52 @@ interface OrderPaymentRequest {
31
31
  */
32
32
  orderNumber?: string | null;
33
33
  /**
34
- * Amount to collect.
35
- * > **Note:** The amount can only be set once.
34
+ * Amount to collect. Set when the order payment request is created and can't be changed afterward.
36
35
  * @immutable
37
36
  */
38
37
  amount?: Price;
39
38
  /**
40
- * 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.
41
40
  * @format CURRENCY
42
41
  * @readonly
43
42
  */
44
43
  currency?: string;
45
44
  /**
46
- * Payment gateway order id which is associated with this payment request
45
+ * Payment gateway order ID associated with this payment request.
47
46
  * @readonly
48
47
  * @minLength 1
49
48
  * @maxLength 100
50
49
  */
51
50
  paymentGatewayOrderId?: string | null;
52
51
  /**
53
- * 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.
54
53
  * @minLength 1
55
54
  * @maxLength 200
56
55
  */
57
56
  title?: string;
58
57
  /**
59
- * 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.
60
59
  * @maxLength 300
61
60
  */
62
61
  description?: string | null;
63
62
  /**
64
- * 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.
65
64
  * @immutable
66
65
  */
67
66
  expirationDate?: Date | null;
68
- /** [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
+ */
69
72
  extendedFields?: ExtendedFields;
70
73
  /**
71
- * Date and time the OrderPaymentRequest was created.
74
+ * Date and time the order payment request was created.
72
75
  * @readonly
73
76
  */
74
77
  createdDate?: Date | null;
75
78
  /**
76
- * Date and time the OrderPaymentRequest was last updated.
79
+ * Date and time the order payment request was last updated.
77
80
  * @readonly
78
81
  */
79
82
  updatedDate?: Date | null;
@@ -87,7 +90,7 @@ interface OrderPaymentRequest {
87
90
  }
88
91
  interface Source {
89
92
  /**
90
- * App Def ID that created the order payment request.
93
+ * ID of the app that created the order payment request.
91
94
  * @format GUID
92
95
  * @minLength 1
93
96
  * @maxLength 100
@@ -95,7 +98,7 @@ interface Source {
95
98
  */
96
99
  appId?: string | null;
97
100
  /**
98
- * 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.
99
102
  * @minLength 1
100
103
  * @maxLength 100
101
104
  * @immutable
@@ -103,8 +106,11 @@ interface Source {
103
106
  externalId?: string;
104
107
  }
105
108
  declare enum Status {
109
+ /** Payment is owed but hasn't been collected yet. */
106
110
  UNPAID = "UNPAID",
111
+ /** Payment has been collected. */
107
112
  PAID = "PAID",
113
+ /** The order payment request has passed its `expirationDate` without being paid. */
108
114
  EXPIRED = "EXPIRED"
109
115
  }
110
116
  /** @enumType */
@@ -168,11 +174,13 @@ declare enum PaymentMethod {
168
174
  type PaymentMethodWithLiterals = PaymentMethod | 'MANUAL';
169
175
  interface ActionLinks {
170
176
  /**
171
- * 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.
172
180
  * @maxSize 1
173
181
  */
174
182
  general?: ActionLink[];
175
- /** 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. */
176
184
  error?: ActionLink;
177
185
  }
178
186
  interface ActionLink {
@@ -196,7 +204,7 @@ interface SubscriptionInfo {
196
204
  */
197
205
  title?: string;
198
206
  /**
199
- * Description of the charges that will be applied for subscription.
207
+ * Description of the charges applied for the subscription.
200
208
  * @maxLength 1000
201
209
  */
202
210
  chargeDescription?: string | null;
@@ -208,30 +216,30 @@ interface SubscriptionInfo {
208
216
  /** Whether the subscription renews automatically. */
209
217
  autoRenewal?: boolean;
210
218
  }
211
- /** Triggered when the order payment request status changes to paid */
219
+ /** Triggered when an order payment request's `status` changes to `PAID`. */
212
220
  interface OrderPaymentRequestPaid {
213
- /** Order payment request */
221
+ /** Order payment request that was paid. */
214
222
  orderPaymentRequest?: OrderPaymentRequest;
215
223
  }
216
- /** Triggered when the order payment request status changes to expired */
224
+ /** Triggered when an order payment request's `status` changes to `EXPIRED`. */
217
225
  interface OrderPaymentRequestExpired {
218
- /** Order payment request */
226
+ /** Order payment request that expired. */
219
227
  orderPaymentRequest?: OrderPaymentRequest;
220
228
  }
221
- /** Triggered when the order payment request status changes to voided */
229
+ /** Triggered when an order payment request's `status` changes to `VOIDED`. */
222
230
  interface OrderPaymentRequestVoided {
223
- /** Order payment request */
231
+ /** Order payment request that was voided. */
224
232
  orderPaymentRequest?: OrderPaymentRequest;
225
233
  }
226
234
  interface CreateOrderPaymentRequestRequest {
227
- /** OrderPaymentRequest to be created. */
235
+ /** Order payment request to create. */
228
236
  orderPaymentRequest?: OrderPaymentRequest;
229
237
  }
230
238
  interface CreateOrderPaymentRequestResponse {
231
- /** The created OrderPaymentRequest. */
239
+ /** Created order payment request. */
232
240
  orderPaymentRequest?: OrderPaymentRequest;
233
241
  /**
234
- * 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.
235
243
  * @minLength 1
236
244
  * @maxLength 100
237
245
  */
@@ -239,26 +247,26 @@ interface CreateOrderPaymentRequestResponse {
239
247
  }
240
248
  interface GetOrderPaymentRequestRequest {
241
249
  /**
242
- * ID of the OrderPaymentRequest to retrieve.
250
+ * ID of the order payment request to retrieve.
243
251
  * @format GUID
244
252
  */
245
253
  orderPaymentRequestId: string;
246
254
  }
247
255
  interface GetOrderPaymentRequestResponse {
248
- /** The requested OrderPaymentRequest. */
256
+ /** Retrieved order payment request. */
249
257
  orderPaymentRequest?: OrderPaymentRequest;
250
258
  }
251
259
  interface UpdateOrderPaymentRequestRequest {
252
- /** OrderPaymentRequest to be updated, may be partial. */
260
+ /** Order payment request to update. */
253
261
  orderPaymentRequest: OrderPaymentRequest;
254
262
  }
255
263
  interface UpdateOrderPaymentRequestResponse {
256
- /** Updated OrderPaymentRequest. */
264
+ /** Updated order payment request. */
257
265
  orderPaymentRequest?: OrderPaymentRequest;
258
266
  }
259
267
  interface DeleteOrderPaymentRequestRequest {
260
268
  /**
261
- * Id of the OrderPaymentRequest to delete.
269
+ * ID of the order payment request to delete.
262
270
  * @format GUID
263
271
  */
264
272
  orderPaymentRequestId: string;
@@ -325,11 +333,11 @@ interface CursorPaging {
325
333
  }
326
334
  interface QueryOrderPaymentRequestsResponse {
327
335
  /**
328
- * List of payment requests.
336
+ * List of order payment requests.
329
337
  * @maxSize 1000
330
338
  */
331
339
  orderPaymentRequests?: OrderPaymentRequest[];
332
- /** Paging metadata */
340
+ /** Paging metadata. */
333
341
  pagingMetadata?: CursorPagingMetadata;
334
342
  }
335
343
  interface CursorPagingMetadata {
@@ -359,14 +367,14 @@ interface Cursors {
359
367
  }
360
368
  interface GetOrderPaymentRequestURLRequest {
361
369
  /**
362
- * Order Payment Request ID.
370
+ * ID of the order payment request.
363
371
  * @format GUID
364
372
  */
365
373
  orderPaymentRequestId: string;
366
374
  }
367
375
  interface GetOrderPaymentRequestURLResponse {
368
376
  /**
369
- * Order Payment Request URL.
377
+ * Payment page URL for the order payment request.
370
378
  * @minLength 1
371
379
  * @maxLength 100
372
380
  */
@@ -381,7 +389,7 @@ interface UpdateExtendedFieldsRequest {
381
389
  namespaceData: Record<string, any> | null;
382
390
  }
383
391
  interface UpdateExtendedFieldsResponse {
384
- /** Updated OrderPaymentRequest. */
392
+ /** Updated order payment request. */
385
393
  orderPaymentRequest?: OrderPaymentRequest;
386
394
  }
387
395
  interface VoidOrderPaymentRequestRequest {
@@ -563,6 +571,10 @@ type CreateOrderPaymentRequestApplicationErrors = {
563
571
  code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';
564
572
  description?: string;
565
573
  data?: Record<string, any>;
574
+ } | {
575
+ code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';
576
+ description?: string;
577
+ data?: Record<string, any>;
566
578
  };
567
579
  /** @docsIgnore */
568
580
  type GetOrderPaymentRequestApplicationErrors = {
@@ -584,7 +596,7 @@ type UpdateOrderPaymentRequestApplicationErrors = {
584
596
  description?: string;
585
597
  data?: Record<string, any>;
586
598
  } | {
587
- code?: 'CANNOT_UPDATE_SUBSCRIPTION_ORDER_PAYMENT_REQUEST_PRICE';
599
+ code?: 'CANNOT_UPDATE_ORDER_PAYMENT_REQUEST_AMOUNT';
588
600
  description?: string;
589
601
  data?: Record<string, any>;
590
602
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.types.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/order-payment-request',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_order-payment-requests';\n\n/** Creates a order payment request. */\nexport function createOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __createOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createOrderPaymentRequest;\n}\n\n/** Retrieves a order payment request. */\nexport function getOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequest;\n}\n\n/**\n * Updates a order payment request.\n *\n * Please note that only `UNPAID` payment requests can be updated.\n */\nexport function updateOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateOrderPaymentRequest;\n}\n\n/**\n * Deletes a order payment request.\n *\n * Please note that only `UNPAID` and `VOIDED` payment requests can be deleted.\n */\nexport function deleteOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteOrderPaymentRequest;\n}\n\n/**\n * Retrieves a list of Payment Requests, given the provided [paging, filtering, and sorting][1].\n *\n * Query Payment Requests runs with these defaults, which you can override:\n * - `createdDate` is sorted in DESC order\n * - `cursorPaging.limit` is 100\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).\n */\nexport function queryOrderPaymentRequests(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryOrderPaymentRequests({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequests.expirationDate' },\n { path: 'orderPaymentRequests.createdDate' },\n { path: 'orderPaymentRequests.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryOrderPaymentRequests;\n}\n\n/** Retrieves the order payment request page URL of a specified order payment request. */\nexport function getOrderPaymentRequestUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequestUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/url', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequestUrl;\n}\n\n/** Updates extended fields of a order payment request */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{id}/update-extended-fields',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/**\n * Voids the given order payment request\n *\n * Please note that only `UNPAID` payment requests can be voided.\n */\nexport function voidOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __voidOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/void', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __voidOrderPaymentRequest;\n}\n","export interface OrderPaymentRequest {\n /**\n * Order payment request ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Additional parameters to identify the source of the order payment request.\n * @immutable\n */\n source?: Source;\n /**\n * status.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Order ID.\n * @format GUID\n * @immutable\n */\n orderId?: string;\n /**\n * Order number.\n * @readonly\n * @maxLength 100\n */\n orderNumber?: string | null;\n /**\n * Amount to collect.\n * > **Note:** The amount can only be set once.\n * @immutable\n */\n amount?: Price;\n /**\n * Currency code. The value will always match the currency used in the order.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Payment gateway order id which is associated with this payment request\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n paymentGatewayOrderId?: string | null;\n /**\n * 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.\n * @minLength 1\n * @maxLength 200\n */\n title?: string;\n /**\n * Description to be displayed to the customer on the payment page. Write a detailed description so the customer understands what they are paying for.\n * @maxLength 300\n */\n description?: string | null;\n /**\n * Time and date the order payment request expires.\n * @immutable\n */\n expirationDate?: Date | null;\n /** [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. */\n extendedFields?: ExtendedFields;\n /**\n * Date and time the OrderPaymentRequest was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the OrderPaymentRequest was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Image to display to the customer on the payment page. */\n image?: Image;\n /**\n * List of payment methods that can't be used for this order payment request.\n * @maxSize 1\n */\n blockedPaymentMethods?: PaymentMethodWithLiterals[];\n}\n\nexport interface Source {\n /**\n * App Def ID that created the order payment request.\n * @format GUID\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n appId?: string | null;\n /**\n * Reference to an ID from an external system, indicating the original source of the order payment request.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n externalId?: string;\n}\n\nexport enum Status {\n UNPAID = 'UNPAID',\n PAID = 'PAID',\n EXPIRED = 'EXPIRED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'UNPAID' | 'PAID' | 'EXPIRED';\n\nexport interface Price {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface Image {\n /**\n * WixMedia image ID.\n * @maxLength 200\n */\n id?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 200\n */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n * @maxLength 200\n */\n filename?: string | null;\n}\n\nexport enum PaymentMethod {\n /** Manual payment. */\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type PaymentMethodWithLiterals = PaymentMethod | 'MANUAL';\n\nexport interface ActionLinks {\n /**\n * A general navigation action link rendered as an anchor in the UI.\n * @maxSize 1\n */\n general?: ActionLink[];\n /** An action link rendered as a button in error messages in the UI. */\n error?: ActionLink;\n}\n\nexport interface ActionLink {\n /**\n * Label.\n * @minLength 1\n * @maxLength 100\n */\n label?: string;\n /**\n * URL.\n * @format WEB_URL\n */\n url?: string;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Translated title of the subscription.\n * @minLength 1\n * @maxLength 150\n */\n title?: string;\n /**\n * Description of the charges that will be applied for subscription.\n * @maxLength 1000\n */\n chargeDescription?: string | null;\n /**\n * Number of billing cycles before subscription ends. Absent if `auto_renewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether the subscription renews automatically. */\n autoRenewal?: boolean;\n}\n\n/** Triggered when the order payment request status changes to paid */\nexport interface OrderPaymentRequestPaid {\n /** Order payment request */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/** Triggered when the order payment request status changes to expired */\nexport interface OrderPaymentRequestExpired {\n /** Order payment request */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/** Triggered when the order payment request status changes to voided */\nexport interface OrderPaymentRequestVoided {\n /** Order payment request */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestRequest {\n /** OrderPaymentRequest to be created. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestResponse {\n /** The created OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n /**\n * Order payment request URL.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface GetOrderPaymentRequestRequest {\n /**\n * ID of the OrderPaymentRequest to retrieve.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestResponse {\n /** The requested OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestRequest {\n /** OrderPaymentRequest to be updated, may be partial. */\n orderPaymentRequest: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestResponse {\n /** Updated OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface DeleteOrderPaymentRequestRequest {\n /**\n * Id of the OrderPaymentRequest to delete.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface DeleteOrderPaymentRequestResponse {}\n\nexport interface QueryOrderPaymentRequestsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryOrderPaymentRequestsResponse {\n /**\n * List of payment requests.\n * @maxSize 1000\n */\n orderPaymentRequests?: OrderPaymentRequest[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface GetOrderPaymentRequestURLRequest {\n /**\n * Order Payment Request ID.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestURLResponse {\n /**\n * Order Payment Request URL.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated OrderPaymentRequest. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface VoidOrderPaymentRequestRequest {\n /**\n * ID of the order payment request to void.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface VoidOrderPaymentRequestResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateOrderPaymentRequestApplicationErrors =\n | {\n code?: 'SITE_NOT_PUBLISHED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PARTIAL_PAYMENT_NOT_SUPPORTED_FOR_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetOrderPaymentRequestApplicationErrors = {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateOrderPaymentRequestApplicationErrors =\n | {\n code?: 'CANNOT_UPDATE_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_EXPIRED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_VOIDED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_SUBSCRIPTION_ORDER_PAYMENT_REQUEST_PRICE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteOrderPaymentRequestApplicationErrors = {\n code?: 'CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetOrderPaymentRequestUrlApplicationErrors =\n | {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type VoidOrderPaymentRequestApplicationErrors =\n | {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_VOID_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_VOID_EXPIRED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function voidOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.voidOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/void',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n OrderPaymentRequest as OrderPaymentRequestOriginal,\n Source as SourceOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n Price as PriceOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Image as ImageOriginal,\n PaymentMethod as PaymentMethodOriginal,\n PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal,\n ActionLinks as ActionLinksOriginal,\n ActionLink as ActionLinkOriginal,\n SubscriptionInfo as SubscriptionInfoOriginal,\n OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal,\n OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal,\n OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal,\n CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal,\n CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal,\n GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal,\n GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal,\n UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal,\n UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal,\n DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal,\n DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal,\n QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal,\n GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal,\n UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal,\n UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal,\n VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal,\n VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal,\n GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal,\n UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal,\n DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal,\n GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal,\n VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal,\n} from './ecom-v1-order-payment-request-order-payment-requests.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAA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OrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","voidOrderPaymentRequest"]}
1
+ {"version":3,"sources":["../../../src/ecom-v1-order-payment-request-order-payment-requests.http.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.types.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/order-payment-request',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/order-payment-requests',\n destPath: '/v1/order-payment-requests',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_order-payment-requests';\n\n/**\n * Creates an order payment request.\n *\n * The response includes the payment page URL, which you can share with the customer. To retrieve the URL later, call [Get Order Payment Request URL](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-payment-requests/get-order-payment-request-url).\n *\n * Creation fails with `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND` if the site doesn't have a Payment Request Page added and published.\n */\nexport function createOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __createOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.CreateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createOrderPaymentRequest;\n}\n\n/** Retrieves an order payment request. */\nexport function getOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequest;\n}\n\n/**\n * Updates an order payment request.\n *\n * Only `UNPAID` order payment requests can be updated. The `amount` can't be changed after the order payment request is created.\n */\nexport function updateOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateOrderPaymentRequest({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateOrderPaymentRequest;\n}\n\n/**\n * Deletes an order payment request.\n *\n * You can delete an order payment request in any status except `PAID`. Attempting to delete a `PAID` order payment request fails with `CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST`.\n */\nexport function deleteOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.DeleteOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{orderPaymentRequestId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteOrderPaymentRequest;\n}\n\n/**\n * Retrieves a list of up to 1,000 order payment requests, given the provided [paging, filtering, and sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language).\n *\n * Query Order Payment Requests runs with these defaults, which you can override:\n * - `_createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with _Query_ endpoints, see\n * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language), and\n * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).\n */\nexport function queryOrderPaymentRequests(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryOrderPaymentRequests({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.QueryOrderPaymentRequests',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequests.expirationDate' },\n { path: 'orderPaymentRequests.createdDate' },\n { path: 'orderPaymentRequests.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryOrderPaymentRequests;\n}\n\n/** Retrieves the payment page URL for an order payment request. */\nexport function getOrderPaymentRequestUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __getOrderPaymentRequestUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.GetOrderPaymentRequestURL',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/url', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getOrderPaymentRequestUrl;\n}\n\n/** Updates the extended fields of an order payment request. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n {\n protoPath: '/v1/order-payment-requests/{id}/update-extended-fields',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'orderPaymentRequest.expirationDate' },\n { path: 'orderPaymentRequest.createdDate' },\n { path: 'orderPaymentRequest.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/**\n * Voids the given order payment request.\n *\n * Only `UNPAID` order payment requests can be voided. Voiding an order payment request that is already `VOIDED` succeeds without making any changes. Voiding a `PAID` or `EXPIRED` order payment request fails.\n */\nexport function voidOrderPaymentRequest(\n payload: object\n): RequestOptionsFactory<any> {\n function __voidOrderPaymentRequest({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.order_payment_request',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.VoidOrderPaymentRequest',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(\n { protoPath: '/v1/order-payment-requests/void', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __voidOrderPaymentRequest;\n}\n","export interface OrderPaymentRequest {\n /**\n * Order payment request ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Details about the source that created the order payment request.\n * @immutable\n */\n source?: Source;\n /**\n * Payment request status. Set by the system. A new order payment request starts as `UNPAID`, unless `expirationDate` is already in the past at creation time, in which case it is created as `EXPIRED`. The system sets the status to `PAID` once payment is collected, `EXPIRED` when the expiration date passes, or `VOIDED` when the request is voided.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Order ID.\n * @format GUID\n * @immutable\n */\n orderId?: string;\n /**\n * Order number.\n * @readonly\n * @maxLength 100\n */\n orderNumber?: string | null;\n /**\n * Amount to collect. Set when the order payment request is created and can't be changed afterward.\n * @immutable\n */\n amount?: Price;\n /**\n * Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Payment gateway order ID associated with this payment request.\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n paymentGatewayOrderId?: string | null;\n /**\n * Title displayed to the customer on the payment page.\n * @minLength 1\n * @maxLength 200\n */\n title?: string;\n /**\n * Description displayed to the customer on the payment page.\n * @maxLength 300\n */\n description?: string | null;\n /**\n * Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\n * @immutable\n */\n expirationDate?: Date | null;\n /**\n * Custom field data for this order payment request.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * Date and time the order payment request was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the order payment request was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Image to display to the customer on the payment page. */\n image?: Image;\n /**\n * List of payment methods that can't be used for this order payment request.\n * @maxSize 1\n */\n blockedPaymentMethods?: PaymentMethodWithLiterals[];\n}\n\nexport interface Source {\n /**\n * ID of the app that created the order payment request.\n * @format GUID\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n appId?: string | null;\n /**\n * 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.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n externalId?: string;\n}\n\nexport enum Status {\n /** Payment is owed but hasn't been collected yet. */\n UNPAID = 'UNPAID',\n /** Payment has been collected. */\n PAID = 'PAID',\n /** The order payment request has passed its `expirationDate` without being paid. */\n EXPIRED = 'EXPIRED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'UNPAID' | 'PAID' | 'EXPIRED';\n\nexport interface Price {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface Image {\n /**\n * WixMedia image ID.\n * @maxLength 200\n */\n id?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 200\n */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n * @maxLength 200\n */\n filename?: string | null;\n}\n\nexport enum PaymentMethod {\n /** Manual payment. */\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type PaymentMethodWithLiterals = PaymentMethod | 'MANUAL';\n\nexport interface ActionLinks {\n /**\n * Navigation action links rendered as anchors on the payment page.\n *\n * Currently supports a single action link.\n * @maxSize 1\n */\n general?: ActionLink[];\n /** Action link rendered as a button in error messages on the payment page. */\n error?: ActionLink;\n}\n\nexport interface ActionLink {\n /**\n * Label.\n * @minLength 1\n * @maxLength 100\n */\n label?: string;\n /**\n * URL.\n * @format WEB_URL\n */\n url?: string;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Translated title of the subscription.\n * @minLength 1\n * @maxLength 150\n */\n title?: string;\n /**\n * Description of the charges applied for the subscription.\n * @maxLength 1000\n */\n chargeDescription?: string | null;\n /**\n * Number of billing cycles before subscription ends. Absent if `auto_renewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether the subscription renews automatically. */\n autoRenewal?: boolean;\n}\n\n/** Triggered when an order payment request's `status` changes to `PAID`. */\nexport interface OrderPaymentRequestPaid {\n /** Order payment request that was paid. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/** Triggered when an order payment request's `status` changes to `EXPIRED`. */\nexport interface OrderPaymentRequestExpired {\n /** Order payment request that expired. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\n/** Triggered when an order payment request's `status` changes to `VOIDED`. */\nexport interface OrderPaymentRequestVoided {\n /** Order payment request that was voided. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestRequest {\n /** Order payment request to create. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface CreateOrderPaymentRequestResponse {\n /** Created order payment request. */\n orderPaymentRequest?: OrderPaymentRequest;\n /**\n * Payment page URL for the order payment request. Share this URL with the customer so they can complete the payment.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface GetOrderPaymentRequestRequest {\n /**\n * ID of the order payment request to retrieve.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestResponse {\n /** Retrieved order payment request. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestRequest {\n /** Order payment request to update. */\n orderPaymentRequest: OrderPaymentRequest;\n}\n\nexport interface UpdateOrderPaymentRequestResponse {\n /** Updated order payment request. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface DeleteOrderPaymentRequestRequest {\n /**\n * ID of the order payment request to delete.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface DeleteOrderPaymentRequestResponse {}\n\nexport interface QueryOrderPaymentRequestsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryOrderPaymentRequestsResponse {\n /**\n * List of order payment requests.\n * @maxSize 1000\n */\n orderPaymentRequests?: OrderPaymentRequest[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface GetOrderPaymentRequestURLRequest {\n /**\n * ID of the order payment request.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface GetOrderPaymentRequestURLResponse {\n /**\n * Payment page URL for the order payment request.\n * @minLength 1\n * @maxLength 100\n */\n orderPaymentRequestUrl?: string;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** 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. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated order payment request. */\n orderPaymentRequest?: OrderPaymentRequest;\n}\n\nexport interface VoidOrderPaymentRequestRequest {\n /**\n * ID of the order payment request to void.\n * @format GUID\n */\n orderPaymentRequestId: string;\n}\n\nexport interface VoidOrderPaymentRequestResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateOrderPaymentRequestApplicationErrors =\n | {\n code?: 'SITE_NOT_PUBLISHED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PARTIAL_PAYMENT_NOT_SUPPORTED_FOR_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_ORDER_STATUS_FOR_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetOrderPaymentRequestApplicationErrors = {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateOrderPaymentRequestApplicationErrors =\n | {\n code?: 'CANNOT_UPDATE_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_EXPIRED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_VOIDED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_ORDER_PAYMENT_REQUEST_AMOUNT';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteOrderPaymentRequestApplicationErrors = {\n code?: 'CANNOT_DELETE_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetOrderPaymentRequestUrlApplicationErrors =\n | {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type VoidOrderPaymentRequestApplicationErrors =\n | {\n code?: 'ORDER_PAYMENT_REQUEST_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_VOID_PAID_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_VOID_EXPIRED_ORDER_PAYMENT_REQUEST';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV1OrderPaymentRequest from './ecom-v1-order-payment-request-order-payment-requests.http.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestTypes from './ecom-v1-order-payment-request-order-payment-requests.types.js';\nimport * as ambassadorWixEcomV1OrderPaymentRequestUniversalTypes from './ecom-v1-order-payment-request-order-payment-requests.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.CreateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.CreateOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.createOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'GET',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'PATCH',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateOrderPaymentRequestResponse\n> {\n const payload = {\n orderPaymentRequest: { id: ':orderPaymentRequestId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/order-payment-requests/{orderPaymentRequest.id}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'DELETE',\n { orderPaymentRequestId: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.DeleteOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.DeleteOrderPaymentRequestResponse\n> {\n const payload = { orderPaymentRequestId: ':orderPaymentRequestId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.deleteOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/order-payment-requests/{orderPaymentRequestId}',\n pathParams: { orderPaymentRequestId: 'orderPaymentRequestId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryOrderPaymentRequests(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.QueryOrderPaymentRequestsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.QueryOrderPaymentRequestsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.queryOrderPaymentRequests(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderPaymentRequestUrl(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.GetOrderPaymentRequestURLResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.GetOrderPaymentRequestURLResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.getOrderPaymentRequestUrl(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/url',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function voidOrderPaymentRequest(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestRequest,\n ambassadorWixEcomV1OrderPaymentRequestUniversalTypes.VoidOrderPaymentRequestResponse,\n ambassadorWixEcomV1OrderPaymentRequestTypes.VoidOrderPaymentRequestResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1OrderPaymentRequest.voidOrderPaymentRequest(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/order-payment-requests/void',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n OrderPaymentRequest as OrderPaymentRequestOriginal,\n Source as SourceOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n Price as PriceOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n Image as ImageOriginal,\n PaymentMethod as PaymentMethodOriginal,\n PaymentMethodWithLiterals as PaymentMethodWithLiteralsOriginal,\n ActionLinks as ActionLinksOriginal,\n ActionLink as ActionLinkOriginal,\n SubscriptionInfo as SubscriptionInfoOriginal,\n OrderPaymentRequestPaid as OrderPaymentRequestPaidOriginal,\n OrderPaymentRequestExpired as OrderPaymentRequestExpiredOriginal,\n OrderPaymentRequestVoided as OrderPaymentRequestVoidedOriginal,\n CreateOrderPaymentRequestRequest as CreateOrderPaymentRequestRequestOriginal,\n CreateOrderPaymentRequestResponse as CreateOrderPaymentRequestResponseOriginal,\n GetOrderPaymentRequestRequest as GetOrderPaymentRequestRequestOriginal,\n GetOrderPaymentRequestResponse as GetOrderPaymentRequestResponseOriginal,\n UpdateOrderPaymentRequestRequest as UpdateOrderPaymentRequestRequestOriginal,\n UpdateOrderPaymentRequestResponse as UpdateOrderPaymentRequestResponseOriginal,\n DeleteOrderPaymentRequestRequest as DeleteOrderPaymentRequestRequestOriginal,\n DeleteOrderPaymentRequestResponse as DeleteOrderPaymentRequestResponseOriginal,\n QueryOrderPaymentRequestsRequest as QueryOrderPaymentRequestsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryOrderPaymentRequestsResponse as QueryOrderPaymentRequestsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n GetOrderPaymentRequestURLRequest as GetOrderPaymentRequestURLRequestOriginal,\n GetOrderPaymentRequestURLResponse as GetOrderPaymentRequestURLResponseOriginal,\n UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal,\n UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal,\n VoidOrderPaymentRequestRequest as VoidOrderPaymentRequestRequestOriginal,\n VoidOrderPaymentRequestResponse as VoidOrderPaymentRequestResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateOrderPaymentRequestApplicationErrors as CreateOrderPaymentRequestApplicationErrorsOriginal,\n GetOrderPaymentRequestApplicationErrors as GetOrderPaymentRequestApplicationErrorsOriginal,\n UpdateOrderPaymentRequestApplicationErrors as UpdateOrderPaymentRequestApplicationErrorsOriginal,\n DeleteOrderPaymentRequestApplicationErrors as DeleteOrderPaymentRequestApplicationErrorsOriginal,\n GetOrderPaymentRequestUrlApplicationErrors as GetOrderPaymentRequestUrlApplicationErrorsOriginal,\n VoidOrderPaymentRequestApplicationErrors as VoidOrderPaymentRequestApplicationErrorsOriginal,\n} from './ecom-v1-order-payment-request-order-payment-requests.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AA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AAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,6BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,0BAA0B,OAAO;AAE1E,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,wBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBACmC,qBAAqB,OAAO;AAErE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,2BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,wBAAwB,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","PaymentMethod","SortOrder","WebhookIdentityType","createOrderPaymentRequest","getOrderPaymentRequest","updateOrderPaymentRequest","deleteOrderPaymentRequest","queryOrderPaymentRequests","getOrderPaymentRequestUrl","updateExtendedFields","voidOrderPaymentRequest"]}