@wix/auto_sdk_ecom_order-payment-requests 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +16 -3
  2. package/build/cjs/index.js +100 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +90 -1
  5. package/build/cjs/index.typings.js +91 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +70 -2
  8. package/build/cjs/meta.js +65 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +5 -1
  11. package/build/cjs/schemas.js +13 -2
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +16 -3
  14. package/build/es/index.mjs +99 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +90 -1
  17. package/build/es/index.typings.mjs +90 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +70 -2
  20. package/build/es/meta.mjs +64 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +5 -1
  23. package/build/es/schemas.mjs +10 -1
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +23 -5
  26. package/build/internal/cjs/index.js +100 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +99 -2
  29. package/build/internal/cjs/index.typings.js +91 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +70 -2
  32. package/build/internal/cjs/meta.js +65 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +5 -1
  35. package/build/internal/cjs/schemas.js +13 -2
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +23 -5
  38. package/build/internal/es/index.mjs +99 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +99 -2
  41. package/build/internal/es/index.typings.mjs +90 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +70 -2
  44. package/build/internal/es/meta.mjs +64 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +5 -1
  47. package/build/internal/es/schemas.mjs +10 -1
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../schemas.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateOrderPaymentRequestRequest = z.object({\n options: z\n .object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that created the order payment request.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n ),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the order payment request was last updated.'\n )\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to create.')\n .optional(),\n })\n .optional(),\n});\nexport const CreateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const GetOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const UpdateOrderPaymentRequestRequest = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to update.'),\n});\nexport const UpdateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const DeleteOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteOrderPaymentRequestResponse = z.object({});\nexport const QueryOrderPaymentRequestsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object in the following format:\\n`\"filter\" : {\\n\"fieldName1\": \"value1\",\\n\"fieldName2\":{\"$operator\":\"value2\"}\\n}`\\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\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 ),\n }),\n ])\n )\n .describe('WQL expression.'),\n});\nexport const QueryOrderPaymentRequestsResponse = z.object({\n orderPaymentRequests: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n )\n .max(1000)\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\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 .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetOrderPaymentRequestUrlRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestUrlResponse = z.object({\n orderPaymentRequestUrl: z\n .string()\n .describe('Payment page URL for the order payment request.')\n .min(1)\n .max(100)\n .optional(),\n});\nexport const UpdateExtendedFieldsRequest = z.object({\n _id: z.string().describe('ID of the entity to update.'),\n namespace: z\n .string()\n .describe(\n 'Identifier for the app whose extended fields are being updated.'\n ),\n options: z.object({\n namespaceData: z\n .record(z.string(), z.any())\n .describe(\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 ),\n }),\n});\nexport const UpdateExtendedFieldsResponse = z.object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Updated order payment request.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mCAAqC,SAAO;AAAA,EACvD,SACG,SAAO;AAAA,IACN,qBACG,SAAO;AAAA,MACN,KACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO;AAAA,QACN,OACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EAC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UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,uBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,IACZ,aACG,SAAO,EACP,SAAS,4DAA4D,EACrE,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,OAAK,EACL;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,SAAO;AAAA,MACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,2DAA2D,EACpE,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP,SAAS,uDAAuD,EAChE,SAAS;AAAA,IACZ,uBACG,QAAQ,OAAK,CAAC,QAAQ,CAAC,CAAC,EACxB,IAAI,CAAC,EACL,SAAS;AAAA,EACd,CAAC,EACA,SAAS,gCAAgC,EACzC,SAAS;AACd,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../schemas.ts","../../../src/ecom-v1-order-payment-request-order-payment-requests.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-order-payment-request-order-payment-requests.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateOrderPaymentRequestRequest = z.object({\n options: z\n .object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe(\n 'ID of the app that created the order payment request.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n ),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe(\n 'Date and time the order payment request was last updated.'\n )\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to create.')\n .optional(),\n })\n .optional(),\n});\nexport const CreateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const GetOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const UpdateOrderPaymentRequestRequest = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z.enum(['UNPAID', 'PAID', 'EXPIRED']).optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Order payment request to update.'),\n});\nexport const UpdateOrderPaymentRequestResponse = z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe('Payment gateway order ID associated with this payment request.')\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n});\nexport const DeleteOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to delete.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteOrderPaymentRequestResponse = z.object({});\nexport const QueryOrderPaymentRequestsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter object in the following format:\\n`\"filter\" : {\\n\"fieldName1\": \"value1\",\\n\"fieldName2\":{\"$operator\":\"value2\"}\\n}`\\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'\n )\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return in the results.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe(\n \"Pointer to the next or previous page in the list of results.\\n\\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\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 ),\n }),\n ])\n )\n .describe('WQL expression.'),\n});\nexport const QueryOrderPaymentRequestsResponse = z.object({\n orderPaymentRequests: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe(\n 'Description displayed to the customer on the payment page.'\n )\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n )\n .max(1000)\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the response.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe(\n 'Cursor string pointing to the next page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe(\n 'Cursor pointing to the previous page in the list of results.'\n )\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe(\n 'Cursor strings that point to the next page, previous page, or both.'\n )\n .optional(),\n hasNext: z\n .boolean()\n .describe(\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 .optional()\n .nullable(),\n })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetOrderPaymentRequestUrlRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetOrderPaymentRequestUrlResponse = z.object({\n orderPaymentRequestUrl: z\n .string()\n .describe('Payment page URL for the order payment request.')\n .min(1)\n .max(100)\n .optional(),\n});\nexport const UpdateExtendedFieldsRequest = z.object({\n _id: z.string().describe('ID of the entity to update.'),\n namespace: z\n .string()\n .describe(\n 'Identifier for the app whose extended fields are being updated.'\n ),\n options: z.object({\n namespaceData: z\n .record(z.string(), z.any())\n .describe(\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 ),\n }),\n});\nexport const UpdateExtendedFieldsResponse = z.object({\n orderPaymentRequest: z\n .object({\n _id: z\n .string()\n .describe('Order payment request ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n source: z\n .object({\n appId: z\n .string()\n .describe('ID of the app that created the order payment request.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n externalId: z\n .string()\n .describe(\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 )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe(\n 'Details about the source that created the order payment request.'\n )\n .optional(),\n status: z\n .enum(['UNPAID', 'PAID', 'EXPIRED'])\n .describe(\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 )\n .optional(),\n orderId: z\n .string()\n .describe('Order ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n orderNumber: z\n .string()\n .describe('Order number.')\n .max(100)\n .optional()\n .nullable(),\n amount: z\n .object({\n amount: z.string().describe('Amount.').optional(),\n formattedAmount: z\n .string()\n .describe('Amount formatted with currency symbol.')\n .optional(),\n })\n .describe(\n \"Amount to collect. Set when the order payment request is created and can't be changed afterward.\"\n )\n .optional(),\n currency: z\n .string()\n .describe(\n \"Three-letter currency code in [ISO-4217 alphabetic format](http://en.wikipedia.org/wiki/ISO_4217). Always matches the order's currency.\"\n )\n .optional(),\n paymentGatewayOrderId: z\n .string()\n .describe(\n 'Payment gateway order ID associated with this payment request.'\n )\n .min(1)\n .max(100)\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Title displayed to the customer on the payment page.')\n .min(1)\n .max(200)\n .optional(),\n description: z\n .string()\n .describe('Description displayed to the customer on the payment page.')\n .max(300)\n .optional()\n .nullable(),\n expirationDate: z\n .date()\n .describe(\n \"Date and time the order payment request expires. If not provided, the order payment request doesn't expire.\"\n )\n .optional()\n .nullable(),\n extendedFields: z\n .object({\n namespaces: z\n .record(z.string(), z.record(z.string(), z.any()))\n .describe(\n 'Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\\nThe value of each key is structured according to the schema defined when the extended fields were configured.\\n\\nYou can only access fields for which you have the appropriate permissions.\\n\\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).'\n )\n .optional(),\n })\n .describe(\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 .optional(),\n _createdDate: z\n .date()\n .describe('Date and time the order payment request was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the order payment request was last updated.')\n .optional()\n .nullable(),\n image: z\n .string()\n .describe('Image to display to the customer on the payment page.')\n .optional(),\n blockedPaymentMethods: z\n .array(z.enum(['MANUAL']))\n .max(1)\n .optional(),\n })\n .describe('Updated order payment request.')\n .optional(),\n});\nexport const VoidOrderPaymentRequestRequest = z.object({\n orderPaymentRequestId: z\n .string()\n .describe('ID of the order payment request to void.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const VoidOrderPaymentRequestResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,mCAAqC,SAAO;AAAA,EACvD,SACG,SAAO;AAAA,IACN,qBACG,SAAO;AAAA,MACN,KACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS,EACT,SAAS;AAAA,MACZ,QACG,SAAO;AAAA,QACN,OACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC;AAAA,UACC;AAAA,UACA;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,QAAU,OAAK,CAAC,UAAU,QAAQ,SAAS,CAAC,EAAE,SAAS;AAAA,MACvD,SACG,SAAO,EACP,SAAS,WAAW,EACpB;AAAA,QACC;AAAA,QACA;AAAA,MACF;AAAA,MACF,aACG,SAAO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ACZ,gBACG,SAAO;AAAA,MACN,YACG,SAAS,SAAO,GAAK,SAAS,SAAO,GAAK,MAAI,CAAC,CAAC,EAChD;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,sDAAsD,EAC/D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,2DAA2D,EACpE,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP,SAAS,uDAAuD,EAChE,SAAS;AAAA,IACZ,uBACG,QAAQ,OAAK,CAAC,QAAQ,CAAC,CAAC,EACxB,IAAI,CAAC,EACL,SAAS;AAAA,EACd,CAAC,EACA,SAAS,gCAAgC,EACzC,SAAS;AACd,CAAC;AACM,IAAM,iCAAmC,SAAO;AAAA,EACrD,uBACG,SAAO,EACP,SAAS,0CAA0C,EACnD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,kCAAoC,SAAO,CAAC,CAAC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, VoidOrderPaymentRequestApplicationErrors, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.mjs';
3
- export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, BaseEventMetadata, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
2
+ import { CreateOrderPaymentRequestOptions, OrderPaymentRequest, CreateOrderPaymentRequestApplicationErrors, BulkCreateOrderPaymentRequestsOptions, BulkCreateOrderPaymentRequestsResponse, GetOrderPaymentRequestApplicationErrors, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, VoidOrderPaymentRequestApplicationErrors, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, OrderPaymentRequestQuery, typedQueryOrderPaymentRequests } from './index.typings.mjs';
3
+ export { AccountInfo, AccountInfoMetadata, ActionEvent, ActionLink, ActionLinks, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateOrderPaymentRequestsRequest, BulkOrderPaymentRequestItem, BulkOrderPaymentRequestResult, CommonQueryWithEntityContext, CreateOrderPaymentRequestRequest, CreateOrderPaymentRequestResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteOrderPaymentRequestRequest, DeleteOrderPaymentRequestResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetOrderPaymentRequestRequest, GetOrderPaymentRequestResponse, GetOrderPaymentRequestURLRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, MessageEnvelope, OrderPaymentRequestExpired, OrderPaymentRequestPaid, OrderPaymentRequestQuerySpec, OrderPaymentRequestVoided, OrderPaymentRequestsQueryResult, PaymentMethod, PaymentMethodWithLiterals, Price, QueryOrderPaymentRequestsRequest, QueryOrderPaymentRequestsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Source, Status, StatusWithLiterals, SubscriptionInfo, UpdateExtendedFieldsRequest, UpdateOrderPaymentRequestRequest, UpdateOrderPaymentRequestResponse, VoidOrderPaymentRequestRequest, VoidOrderPaymentRequestResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
4
4
 
5
5
  declare function createOrderPaymentRequest$1(httpClient: HttpClient): CreateOrderPaymentRequestSignature;
6
6
  interface CreateOrderPaymentRequestSignature {
@@ -16,6 +16,24 @@ interface CreateOrderPaymentRequestSignature {
16
16
  __applicationErrorsType?: CreateOrderPaymentRequestApplicationErrors;
17
17
  }>;
18
18
  }
19
+ /** @internal */
20
+ declare function bulkCreateOrderPaymentRequests$1(httpClient: HttpClient): BulkCreateOrderPaymentRequestsSignature;
21
+ interface BulkCreateOrderPaymentRequestsSignature {
22
+ /**
23
+ * Creates multiple order payment requests in a single request. Works synchronously.
24
+ *
25
+ * The response contains an item-level result for every requested order payment request. Items are processed independently, so some may succeed while others fail.
26
+ *
27
+ * Per-item failures are returned in `results[].itemMetadata.error`. Possible application error codes are:
28
+ * - `ORDER_NOT_FOUND`: The referenced order wasn't found.
29
+ * - `PARTIAL_PAYMENT_NOT_SUPPORTED_FOR_SUBSCRIPTION`: The requested amount doesn't equal the subscription order total.
30
+ * - `INVALID_ORDER_STATUS_FOR_SUBSCRIPTION`: The subscription order isn't in `INITIALIZED` status.
31
+ * - `SITE_NOT_PUBLISHED`: The site isn't published.
32
+ * - `ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND`: The Payment Request Page isn't available on the site.
33
+ * @param - Order payment requests to create.
34
+ */
35
+ (orderPaymentRequests: NonNullablePaths<OrderPaymentRequest, `amount` | `orderId` | `source.externalId` | `title`, 3>[], options?: BulkCreateOrderPaymentRequestsOptions): Promise<NonNullablePaths<BulkCreateOrderPaymentRequestsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.orderPaymentRequest.status` | `results.${number}.item.orderPaymentRequest.orderId` | `results.${number}.item.orderPaymentRequest.currency` | `results.${number}.item.orderPaymentRequest.title` | `results.${number}.item.orderPaymentRequestUrl` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
36
+ }
19
37
  declare function getOrderPaymentRequest$1(httpClient: HttpClient): GetOrderPaymentRequestSignature;
20
38
  interface GetOrderPaymentRequestSignature {
21
39
  /**
@@ -71,7 +89,6 @@ interface UpdateExtendedFieldsSignature {
71
89
  */
72
90
  (_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `orderPaymentRequest.source.externalId` | `orderPaymentRequest.status` | `orderPaymentRequest.orderId` | `orderPaymentRequest.amount.amount` | `orderPaymentRequest.amount.formattedAmount` | `orderPaymentRequest.currency` | `orderPaymentRequest.title` | `orderPaymentRequest.blockedPaymentMethods`, 4>>;
73
91
  }
74
- /** @internal */
75
92
  declare function voidOrderPaymentRequest$1(httpClient: HttpClient): VoidOrderPaymentRequestSignature;
76
93
  interface VoidOrderPaymentRequestSignature {
77
94
  /**
@@ -96,12 +113,13 @@ declare function customQueryOrderPaymentRequests(httpClient: HttpClient): {
96
113
  (query: OrderPaymentRequestQuery): ReturnType<typeof typedQueryOrderPaymentRequests>;
97
114
  };
98
115
  declare const createOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof createOrderPaymentRequest$1> & typeof createOrderPaymentRequest$1>;
116
+ /** @internal */
117
+ declare const bulkCreateOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof bulkCreateOrderPaymentRequests$1> & typeof bulkCreateOrderPaymentRequests$1>;
99
118
  declare const getOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequest$1> & typeof getOrderPaymentRequest$1>;
100
119
  declare const updateOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof updateOrderPaymentRequest$1> & typeof updateOrderPaymentRequest$1>;
101
120
  declare const deleteOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof deleteOrderPaymentRequest$1> & typeof deleteOrderPaymentRequest$1>;
102
121
  declare const getOrderPaymentRequestUrl: MaybeContext<BuildRESTFunction<typeof getOrderPaymentRequestUrl$1> & typeof getOrderPaymentRequestUrl$1>;
103
122
  declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
104
- /** @internal */
105
123
  declare const voidOrderPaymentRequest: MaybeContext<BuildRESTFunction<typeof voidOrderPaymentRequest$1> & typeof voidOrderPaymentRequest$1>;
106
124
  declare const queryOrderPaymentRequests: MaybeContext<BuildRESTFunction<typeof customQueryOrderPaymentRequests> & typeof customQueryOrderPaymentRequests>;
107
125
  /**
@@ -129,4 +147,4 @@ declare const onOrderPaymentRequestUpdated: BuildEventDefinition<typeof onOrderP
129
147
  */
130
148
  declare const onOrderPaymentRequestVoided: BuildEventDefinition<typeof onOrderPaymentRequestVoided$1> & typeof onOrderPaymentRequestVoided$1;
131
149
 
132
- export { CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestApplicationErrors, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
150
+ export { BulkCreateOrderPaymentRequestsOptions, BulkCreateOrderPaymentRequestsResponse, CreateOrderPaymentRequestApplicationErrors, CreateOrderPaymentRequestOptions, DeleteOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestApplicationErrors, GetOrderPaymentRequestURLResponse, GetOrderPaymentRequestUrlApplicationErrors, OrderPaymentRequest, OrderPaymentRequestCreatedEnvelope, OrderPaymentRequestDeletedEnvelope, OrderPaymentRequestExpiredEnvelope, OrderPaymentRequestPaidEnvelope, OrderPaymentRequestQuery, OrderPaymentRequestUpdatedEnvelope, OrderPaymentRequestVoidedEnvelope, OrderPaymentRequestsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateOrderPaymentRequest, UpdateOrderPaymentRequestApplicationErrors, VoidOrderPaymentRequestApplicationErrors, bulkCreateOrderPaymentRequests, createOrderPaymentRequest, deleteOrderPaymentRequest, getOrderPaymentRequest, getOrderPaymentRequestUrl, onOrderPaymentRequestCreated, onOrderPaymentRequestDeleted, onOrderPaymentRequestExpired, onOrderPaymentRequestPaid, onOrderPaymentRequestUpdated, onOrderPaymentRequestVoided, queryOrderPaymentRequests, updateExtendedFields, updateOrderPaymentRequest, voidOrderPaymentRequest };
@@ -101,6 +101,49 @@ function createOrderPaymentRequest(payload) {
101
101
  }
102
102
  return __createOrderPaymentRequest;
103
103
  }
104
+ function bulkCreateOrderPaymentRequests(payload) {
105
+ function __bulkCreateOrderPaymentRequests({ host }) {
106
+ const serializedData = transformPaths(payload, [
107
+ {
108
+ transformFn: transformSDKTimestampToRESTTimestamp,
109
+ paths: [
110
+ { path: "orderPaymentRequests.expirationDate" },
111
+ { path: "orderPaymentRequests.createdDate" },
112
+ { path: "orderPaymentRequests.updatedDate" }
113
+ ]
114
+ }
115
+ ]);
116
+ const metadata = {
117
+ entityFqdn: "wix.ecom.v1.order_payment_request",
118
+ method: "POST",
119
+ methodFqn: "wix.ecom.order_payment_request.api.v1.OrderPaymentRequestsService.BulkCreateOrderPaymentRequests",
120
+ packageName: PACKAGE_NAME,
121
+ migrationOptions: {
122
+ optInTransformResponse: true
123
+ },
124
+ url: resolveWixEcomOrderPaymentRequestApiV1OrderPaymentRequestsServiceUrl(
125
+ {
126
+ protoPath: "/v1/bulk/order-payment-requests/create",
127
+ data: serializedData,
128
+ host
129
+ }
130
+ ),
131
+ data: serializedData,
132
+ transformResponse: (payload2) => transformPaths(payload2, [
133
+ {
134
+ transformFn: transformRESTTimestampToSDKTimestamp,
135
+ paths: [
136
+ { path: "results.item.orderPaymentRequest.expirationDate" },
137
+ { path: "results.item.orderPaymentRequest.createdDate" },
138
+ { path: "results.item.orderPaymentRequest.updatedDate" }
139
+ ]
140
+ }
141
+ ])
142
+ };
143
+ return metadata;
144
+ }
145
+ return __bulkCreateOrderPaymentRequests;
146
+ }
104
147
  function getOrderPaymentRequest(payload) {
105
148
  function __getOrderPaymentRequest({ host }) {
106
149
  const metadata = {
@@ -376,6 +419,52 @@ async function createOrderPaymentRequest2(options) {
376
419
  throw transformedError;
377
420
  }
378
421
  }
422
+ async function bulkCreateOrderPaymentRequests2(orderPaymentRequests, options) {
423
+ const { httpClient, sideEffects } = arguments[2];
424
+ const payload = transformPaths2(
425
+ renameKeysFromSDKRequestToRESTRequest({
426
+ orderPaymentRequests,
427
+ returnEntity: options?.returnEntity
428
+ }),
429
+ [
430
+ {
431
+ transformFn: transformSDKImageToRESTImage,
432
+ paths: [{ path: "orderPaymentRequests.image" }]
433
+ }
434
+ ]
435
+ );
436
+ const reqOpts = bulkCreateOrderPaymentRequests(
437
+ payload
438
+ );
439
+ sideEffects?.onSiteCall?.();
440
+ try {
441
+ const result = await httpClient.request(reqOpts);
442
+ sideEffects?.onSuccess?.(result);
443
+ return renameKeysFromRESTResponseToSDKResponse(
444
+ transformPaths2(result.data, [
445
+ {
446
+ transformFn: transformRESTImageToSDKImage,
447
+ paths: [{ path: "results.item.orderPaymentRequest.image" }]
448
+ }
449
+ ])
450
+ );
451
+ } catch (err) {
452
+ const transformedError = sdkTransformError(
453
+ err,
454
+ {
455
+ spreadPathsToArguments: {},
456
+ explicitPathsToArguments: {
457
+ orderPaymentRequests: "$[0]",
458
+ returnEntity: "$[1].returnEntity"
459
+ },
460
+ singleArgumentUnchanged: false
461
+ },
462
+ ["orderPaymentRequests", "options"]
463
+ );
464
+ sideEffects?.onError?.(err);
465
+ throw transformedError;
466
+ }
467
+ }
379
468
  async function getOrderPaymentRequest2(orderPaymentRequestId) {
380
469
  const { httpClient, sideEffects } = arguments[1];
381
470
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -657,6 +746,14 @@ function createOrderPaymentRequest3(httpClient) {
657
746
  { httpClient }
658
747
  );
659
748
  }
749
+ function bulkCreateOrderPaymentRequests3(httpClient) {
750
+ return (orderPaymentRequests, options) => bulkCreateOrderPaymentRequests2(
751
+ orderPaymentRequests,
752
+ options,
753
+ // @ts-ignore
754
+ { httpClient }
755
+ );
756
+ }
660
757
  function getOrderPaymentRequest3(httpClient) {
661
758
  return (orderPaymentRequestId) => getOrderPaymentRequest2(
662
759
  orderPaymentRequestId,
@@ -858,6 +955,7 @@ function customQueryOrderPaymentRequests(httpClient) {
858
955
  return overloadedQuery;
859
956
  }
860
957
  var createOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(createOrderPaymentRequest3);
958
+ var bulkCreateOrderPaymentRequests4 = /* @__PURE__ */ createRESTModule(bulkCreateOrderPaymentRequests3);
861
959
  var getOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(getOrderPaymentRequest3);
862
960
  var updateOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(updateOrderPaymentRequest3);
863
961
  var deleteOrderPaymentRequest4 = /* @__PURE__ */ createRESTModule(deleteOrderPaymentRequest3);
@@ -888,6 +986,7 @@ export {
888
986
  SortOrder,
889
987
  Status,
890
988
  WebhookIdentityType,
989
+ bulkCreateOrderPaymentRequests4 as bulkCreateOrderPaymentRequests,
891
990
  createOrderPaymentRequest4 as createOrderPaymentRequest,
892
991
  deleteOrderPaymentRequest4 as deleteOrderPaymentRequest,
893
992
  getOrderPaymentRequest4 as getOrderPaymentRequest,